Difference between revisions of "SOCR EduMaterials Activities QQChart"
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | == | + | == [[SOCR_EduMaterials_ChartsActivities| Charts Activities]] - Quantile-Quantile Plot == |
+ | |||
+ | == Summary== | ||
+ | This activity describes the need, general methods and SOCR utilities for QQ charts. The simulated data may then be easily copied and pasted in different SOCR [http://www.socr.ucla.edu/htmls/SOCR_Analyses.html Analyses] or [http://www.socr.ucla.edu/htmls/SOCR_Charts.html Graphing] tools for further interrogation. | ||
+ | |||
+ | ==Goals== | ||
+ | The purpose of this activity is to: | ||
+ | *show users how SOCR QQ charts are plotted and what conclusions may be drawn | ||
==Background == | ==Background == | ||
− | Quantile-Quantile Charts, or QQ Charts, are plots in which observed values are plotted against theoretical quantiles. From the plotted points, a line of good fit is drawn to show the behavior of the data values against the theoretical distribution. | + | Quantile-Quantile Charts, or QQ Charts, are plots in which observed values are plotted against theoretical quantiles. From the plotted points, a line of good fit is drawn to show the behavior of the data values against the theoretical distribution. For references, visit [http://www.statsoft.com/textbook/glosq.html QQ Charts] and [http://www.dreamcalc.com/dchelp/userguide_graphing_examples.htm Examples]. |
− | For | + | If F() is a [[AP_Statistics_Curriculum_2007_Distrib_RV#Probability_density.2Fmass_and_.28cumulative.29_distribution_functions | cumulative distribution function]], then a quantile (q), also known as a percentile, is defined as a solution to the equation |
+ | : ''F(q) = p'', that is, <math>q=F^{-1}(p)</math>, | ||
+ | where p is a given probability. For instance, the median is a <math>50^{th}</math> percentile, is obtained when ''p = 0.5''. So, to generate a QQ plot, we need to invert the CDF, F. For the Normal and many other distributions, the inverse CDF is known in closed form. SOCR implements and exact and approximate methods for computing the inverse CDF function. | ||
+ | |||
+ | For a given column of data (n = sample size), the following protocol is used to check for normality using [http://socr.ucla.edu/htmls/chart/QQNormalPlotDemo1_Chart.html SOCR QQ Normal Plot]: | ||
+ | * Column 1: Sort the ''data'' from smallest to largest (column 1). | ||
+ | * Column 2: Generate the column of ''Normal'' quantiles using these n probability values: <math>{1\over n+1}, {2\over n+1}, \cdots, {n\over n+1}</math>, where n is the number of observations. | ||
+ | * Draw a scatter plot of Column 2 (X axis) vs. Column 1 (Y axis). | ||
+ | |||
+ | If the scatterplot looks linear, then the data distribution is approximately Normal, as the quantiles of the 2 distributions are linearly related. | ||
== Description == | == Description == | ||
Line 14: | Line 30: | ||
The image above is a demonstration of a simple QQ Chart. Both demonstrations are similar because they both show specific data values by plotted points and a line of good fit is drawn to show the behavior of the data. | The image above is a demonstration of a simple QQ Chart. Both demonstrations are similar because they both show specific data values by plotted points and a line of good fit is drawn to show the behavior of the data. | ||
+ | |||
+ | == Examples & Exercises== | ||
+ | *'''Exercise 1:''' What is the main difference between QQ Charts and other types of charts? | ||
+ | |||
+ | == Data Type and Format == | ||
+ | |||
+ | By clicking '''Data''' between the ''Graph'' and ''Mapping'' button, it allows users to input or vary the values of the data set. There is one type of value allowed in QQ Charts which are numerical or quantitative variables. The image below demonstrates how these values are listed to the corresponding order: | ||
+ | |||
+ | <center>[[Image:SOCR_Activities_QQCharts_Chui_090707_Fig2.jpg|400px]]</center> | ||
== Applications == | == Applications == | ||
Line 20: | Line 45: | ||
For QQ Charts, they may be applied to any data values that consist of observed values and theoretical values such as experiments. Suppose scientists developed theoretical values for water consumption among athletic males by age and weight. They then obtain a sample of the population of males and observed the water consumption for each patient. Graphing these values will allow the scientists to draw a line of good fit and help decide the acceptability of their theories. | For QQ Charts, they may be applied to any data values that consist of observed values and theoretical values such as experiments. Suppose scientists developed theoretical values for water consumption among athletic males by age and weight. They then obtain a sample of the population of males and observed the water consumption for each patient. Graphing these values will allow the scientists to draw a line of good fit and help decide the acceptability of their theories. | ||
+ | |||
+ | == See also== | ||
+ | [[SOCR_EduMaterials_Activities_PowerTransformFamily_Graphs| Power Transform Activity/Applet]]. | ||
{{translate|pageName=http://wiki.stat.ucla.edu/socr/index.php?title=SOCR_EduMaterials_Activities_BallotExperiment}} | {{translate|pageName=http://wiki.stat.ucla.edu/socr/index.php?title=SOCR_EduMaterials_Activities_BallotExperiment}} |
Latest revision as of 17:06, 1 July 2009
Contents
Charts Activities - Quantile-Quantile Plot
Summary
This activity describes the need, general methods and SOCR utilities for QQ charts. The simulated data may then be easily copied and pasted in different SOCR Analyses or Graphing tools for further interrogation.
Goals
The purpose of this activity is to:
- show users how SOCR QQ charts are plotted and what conclusions may be drawn
Background
Quantile-Quantile Charts, or QQ Charts, are plots in which observed values are plotted against theoretical quantiles. From the plotted points, a line of good fit is drawn to show the behavior of the data values against the theoretical distribution. For references, visit QQ Charts and Examples.
If F() is a cumulative distribution function, then a quantile (q), also known as a percentile, is defined as a solution to the equation
- F(q) = p, that is, \(q=F^{-1}(p)\),
where p is a given probability. For instance, the median is a \(50^{th}\) percentile, is obtained when p = 0.5. So, to generate a QQ plot, we need to invert the CDF, F. For the Normal and many other distributions, the inverse CDF is known in closed form. SOCR implements and exact and approximate methods for computing the inverse CDF function.
For a given column of data (n = sample size), the following protocol is used to check for normality using SOCR QQ Normal Plot:
- Column 1: Sort the data from smallest to largest (column 1).
- Column 2: Generate the column of Normal quantiles using these n probability values\[{1\over n+1}, {2\over n+1}, \cdots, {n\over n+1}\], where n is the number of observations.
- Draw a scatter plot of Column 2 (X axis) vs. Column 1 (Y axis).
If the scatterplot looks linear, then the data distribution is approximately Normal, as the quantiles of the 2 distributions are linearly related.
Description
Go to the SOCR Charts and select Line Charts from the items located on the left, then select the demonstration for QQ Charts:
The image above is a demonstration of a simple QQ Chart. Both demonstrations are similar because they both show specific data values by plotted points and a line of good fit is drawn to show the behavior of the data.
Examples & Exercises
- Exercise 1: What is the main difference between QQ Charts and other types of charts?
Data Type and Format
By clicking Data between the Graph and Mapping button, it allows users to input or vary the values of the data set. There is one type of value allowed in QQ Charts which are numerical or quantitative variables. The image below demonstrates how these values are listed to the corresponding order:
Applications
One of the most persuasive elements when proposing data and literature to others is a well-designed chart presentation.
For QQ Charts, they may be applied to any data values that consist of observed values and theoretical values such as experiments. Suppose scientists developed theoretical values for water consumption among athletic males by age and weight. They then obtain a sample of the population of males and observed the water consumption for each patient. Graphing these values will allow the scientists to draw a line of good fit and help decide the acceptability of their theories.
See also
Power Transform Activity/Applet.
Translate this page: