Download Exploring Data: Types, Graphical Summaries, Center & Spread and more Study notes Statistics in PDF only on Docsity!
Chapter 2
Exploring Data with
Graphs and Numerical
Summaries
2.1 What are the Types of Data?
A. Variable Any characteristic that is recorded for sub- jects in a study.
- Examples: hair color of a person, height of a per- son, crime rate of a city
B. Categorical versus Quantitative Variables
- A variable is categorical if each observation be- longs to one of a set of categories
- A variable is quantitative if observations take on numerical values that represent different magni- tudes of the variable
C. Discrete versus Continuous Quantitative Vari- ables 1
- A discrete quantitative variable is one whose pos- sible values form a set of separate numbers such as 0,1,2,3, ...
- A continuous quantitative variable is one whose possible values form an infinite continuum in some interval
D. Frequency Table. A listing of possible values for a variable, together with the number of observations of each value
2.2 How Can We Describe Data Using Graphi- cal Summaries?
A. Graphs for Categorical Variables
C. Which graph for quantitative variable should be used?
D. Describing the “Distribution” of a Quantitative Vari- able
- Graph of a quantitative variable shows the “dis- tribution” of the variable
- Overall Pattern of Distribution - values cluster together or are there “outliers”?
- Distribution has single mound (unimodal) or two mounds (bimodal)?
- Shape of Distribution?
- Symmetric
- Skewed to the Left
- Skewed to the Right
Example: Numer of Calories Consume - x = Σx 29 =^
54700 29 = 1886.^2 Example: Miles Hometown from Harrisonburg - x = Σ 28 x = 964328 = 344. 4 Basic Properties of Mean:
- Mean is balance point of data
- Mean pulled in direction of skew for skewed distributions
- Mean highly influenced by outliers Outlier, page 50: A value that falls well above or below the bulk of the data
- Median Let n be the number of values in the data set. Put the data set in increasing order. The me- dian is the middle value if n is odd and the mean of the two middle values if n is even. Example: Number of Calories Consume: n = 29, Median = 1800. Example: Miles Hometown from Harrisonburg: n = 28, Median = 153. Median is resistant to outliers
- Mode That value that occurs most often Most often used with categorical data For quantitative variables, most useful with dis- crete values taking on only a few values Example: Number of Siblings: Mode = 1 sibling
C. Comparing the Mean and Median
- Mean and Median about the same for roughly symmetric distributions
- Mean larger than median for right skewed distri- butions
- Mean smaller than median for left skewed distri- butions
2.4 How Can We Describe the Spread of Quan- titative Data?
A. Measuring the Spread: Range of the Data B. Measuring the Spread: Standard Deviation of the Data
- Standard Deviation gives typical distance of an observation from the mean
- Based on deviations x − x from the mean
- Example. Suppose that the total number of runs scored by both baseball teams in n = 5 games are 1,8,6,3, Mean x = 20/5 = 4 Value Deviation Squared Deviation 1 (1-4) = -3 9 8 (8-4) = 4 16 6 (6-4) = 2 4 3 (3-4) = -1 1 2 (2-4) = -2 4
The sum of squared deviations is
C. Empirical Rule: Applying the Standard Deviation
- Empirical Rule. For bell-shaped distributions then approximately - 68% of the observations fall within 1 standard deviations of the mean, that is, between x− and x + s - 95% of the observations fall within 2 standard deviations of the mean, that is, between x− 2 s and x + 2s - All or almost all of the observations fall within 3 standard deviations of the mean, that is, between x − 3 s and x + 3s
- Example - Dad’s Ages Data:
41,42,45,46,46,46,47,47,48,49,49,50,50,51,51,51, 52,52,52,52,52,53,53,57,58,58,58,59,60,
- Caution, pge 63. Empirical Rule may not work well if the distribution is highly skewed or highly discrete with the variable taking relatively few values
2.5 How Can Measures of Position Describe Spread?
A. Measures of Position for Describing Spread. Mea- sures spread by giving the relative position of an ob- servation in the data set.
B. Two types of measures of position
C. Percentiles as Measures of Position
- Low Side: x < Q 1 − 1 .5(IQR)
- High Side: x > Q3 + 1.5(IQR)
Miles Data: Potential Outliers
Low Side: x < − 65
High Side: x > 415
600, 2000, 3000 potential outliers
- Five Number Summary: Min, Q1, Median, Q3, Max
Min, Q1, Q3, Max describe spread
Median describes center
Hometown from Harrisonburg Data:
- Boxplot - Graphical depiction of Five Number Summary
D. Z-Scores as Measures of Spread
- z-score, page 71 The z-score for an observation is the number of standard deviations that it falls from the mean. For sample data, the z-score is calculated as
z = observation − mean standard deviation
- Example - Dad’s Ages Data:
41,42,45,46,46,46,47,47,48,49,49,50,50,51,51,51, 52,52,52,52,52,53,53,57,58,58,58,59,60, x = 51.2 years s = 5.3 years Age = 58, z = ??? Age = 47, z = ???
- Mean and Standard Deviation of Z Distribution Mean of Z-scores equals 0 Standard Deviation of z-scores = 1
- Empirical Rule for Z-scores If x distribution is bell shaped then z distribution is also bell shaped and - About 68% of z-scores are between -1 and 1 - About 95% of z-scores are between -2 and 2 - About 100% of z-scores are between -3 and 3
- Example (Source: Peck, Olsen, Devore, page 186)
SPSS for Chapter 2
- Frequency Table for Categorical Variable (or Quantitative Discrete Variable); Bar Chart or Pie Chart for Categorical Data Analyze −→ Descriptive Statistics −→ Frequencies Move your variable into VARIABLES box. Click on CHARTS and BARCHART OR PIE CHART, fol- lowed by CONTINUE if you want a bar chart or pie chart. Click on OK.
- Stem and Leaf, Histogram, Boxplot, or Nu- merical Summaries of Quantitative Variable Analyze −→ Descriptive Statistics −→ Explore Move variable into DEPENDENT LIST box. Click on STATISTICS, PERCENTILES, AND CONTINUE if you want percentiles. Click on PLOTS and HIS- TOGRAM if want a histogram. Click on OK.
- Histogram for Quantitative Data (another way)
Graph −→ Legacy Dialogs −→ Histogram Move your variable into VARIABLE box. Click on OK.
- Bar Chart for Categorical Data (another way)
Graph −→ Legacy Dialogs −→ Bar Click on SIMPLE and DEFINE. Move your variable into CATEGORICAl AXIX box. Click on OK.
- Dot Plot for Quantitative Data
Graph −→ Legacy Dialogs −→ Scatter/Dot
Click on SIMPLE DOT and DEFINE. Move your variable into X-AXIS VARIABLE box. Click on OK.