









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










Learning goals for this chapter:
Identify categorical and quantitative variables. Interpret, create (by hand and with SPSS), and know when to use: bar graphs, pie charts, stemplots (standard, back-to-back, split), histograms, and boxplots (regular, modified, side-by-side). Describe the shape, center, and spread of data distributions. Define, calculate (by hand and with SPSS), and know when to use measures of center (mean vs. median) and spread (range, 5-number summary, IQR, variance, standard deviation). Understand what a resistant measure of center and spread is and when this is important. Use the 1.5IQR rule to look for outliers. Draw a Normal curve in correct proportions and identify the mean/median, standard deviation, middle 68%, middle 95%, and middle 99.7%. Perform calculations with the empirical rule, both backwards and forwards. Understand the need for standardization.
Big picture: what do we learn in this chapter?
Individuals vs. Variables
Categorical vs. Quantitative Variables
Bar graphs and pie charts (categorical variables) Histograms and stemplots (quantitative variables—good for checking for symmetry and skewness) Boxplots (quantitative variables—graphical display of the 5 # summary, modified boxplots show outliers)
Shape (symmetric/skewed, unimodal/bimodal/multimodal) Center (mean or median) Spread (usually standard deviation/variance or IQR from the 5 # summary) Outliers If you have a symmetric distribution with no outliers, use the mean and standard deviation. If you have a skewed distribution and/or you have outliers, use the 5 # summary instead.
2 components in describing data or information:
Individuals : objects being described by a set of data (people, households, cars, animals, corn, etc.)
Variables : characteristics of individuals (height, yield, length, age, eye color, etc.) Categorical : places an individual into one of several groups (gender, eye color, college major, hometown, etc.) Quantitative : Attaches a numerical value to a variable so that adding or averaging the values makes sense (height, weight, age, income, yield, etc.)
Distribution of a variable : describes what values a variables takes and how often it takes those values
If you have more than one variable in your problem, you should look at each variable by itself before you look at relationships between the variables.
Example: Identify whether the following questions would give you categorical or quantitative data.
a) What letter grade did you get in your Calculus class last semester?
b) What was your score on the last exam?
c) Who will you vote for in the next election?
d) How many votes did George W. Bush get?
e) How many red M&Ms are in this bag?
f) Which type of M&Ms has more red ones: peanut or plain?
It’s always a good idea to start by displaying variables graphically before you do any other statistical analysis. What kind of graph should you use? That depends on whether you have a categorical or quantitative variable.
Categorical Variables: Bar graphs or pie charts Messy room example: In a poll of 200 parents of children ages 6 to 12, respondents were asked to name the most disgusting things ever found in their children’s rooms. The results are below (J&C 2005)
Most disgusting thing # of parents % of parents Food-related 106 53%
Quantitative Variables: Stemplots, histograms, and boxplots (discussed a little later) Example: You investigate the amount of time students spend online (in minutes). You study 28 students, and their times are listed below. Show the distribution of times with a stemplot.
To create a stemplot by hand,
Stemplot 0 | 7 1 | 2 | 0 4 5 5 8 8 3 | 0 2 5 4 | 2 3 4 5 6 7 8 8 5 | 0 1 6 | 7 | 2 5 7 8 9 8 | 3 7 8
A split stemplot just has more stems. There are several ways to split the stems. Here they are split by fives. 0 | 7 1 | 1 | 2 | 0 4 2 | 5 5 8 8 3 | 0 2 3 | 5 4 | 2 3 4 4 | 5 6 7 8 8 5 | 0 1 5 | 6 | 6 | 7 | 2 7 | 5 7 8 9 8 | 3 8 | 7 8
Why do we need split stemplots? Sometimes it is easier to see the shape of the data with more stems. Sometimes a regular stemplot is better. If you’re not sure, try it both ways and see if a pattern appears.
Try a stemplot and a split stemplot with this data (use the hundreds place for stems):
3, 4, 17, 18, 39, 93, 102, 110, 143, 178, 250, 278, 299, 300.
Histograms
Sorting the quantitative data into bins. How many bins?
Not too many bins with either 0 or 1 counts. Not overly summarized so that you lose all the information Not so detailed that it is no longer a summary
Too few bins OK Too many bins
You’ve drawn your graph (histogram or stemplot). Now what?
Look for overall pattern and any outliers.
The pattern is described by shape , center , and spread.
Left skewed (long tail on the left)
Median Mean Median < Mean^ Median > Mean
To describe the shape, use a histogram with a smoothed curve highlighting the overall pattern of the distribution (don’t get overly detailed).
a) Mean : arithmetic average, 1
1 n i i
x x n
Where n = the total # of observations And xi = an individual observation
b) Mode: the most common number, biggest peak
c) Median : M, midpoint of the distribution such that ½ the observations are smaller and ½ the observations are larger. The median is not as affected by outliers as the mean is; the median is resistant to outliers.
To find the median : i. Order the data form smallest to largest ii. Count the # of observations ( n )
iii. Calculate
n to find the center of the data set.
iv. If n is odd , M is the data point at the center of the data set.
v. If n is even ,
n falls between 2 data points, called the
―middle pair.‖ M = the average of the middle pair
Examples of center: Find the mean and median of the following 7 numbers in Dataset A:
23 25 32.5 33 67 1 -
Find the mean and median of the following 8 numbers in Dataset B:
b) Variance : s^2 , average of the square of deviations of observations from the mean 2 2 1
n i i
s x x n c) Standard Deviation : s , square root of the variance, common way for measuring how far observations are from the mean
Example of finding the standard deviation by hand: 0, 2, 4
For the online time example (with 2 additional data points added in), list the 5-number summary, find any outliers present, and show a boxplot and modified boxplot.
Boxplot for Dataset A with 5- number summary: -20, 1, 25, 33, 67
Since there were no outliers in this dataset, a regular boxplot and a modified boxplot look exactly the same for this data.
How do you know which method is best for determining center and spread?
5-Number Summary : better for skewed distributions or distribution with outliers
Mean and Standard Deviation : good for reasonably symmetric distributions free of outliers.
Always start with a graph!
In the internet time example, here are how the mean/standard deviation and 5-number summary are affected by the outlier:
With outlier (151) With outlier removed from dataset Mean 54.77 51. Standard Deviation 32.647 27. 5-number summary 7, 30, 46.5, 77, 151 7, 29, 46, 76, 135
―The Median vs. the Mean in the Age of Average‖ by Mike Pesca on NPR’s Day-to-Day 7/19/06: http://www.npr.org/templates/story/story.php?storyId=
Do you always have to do all of this by hand? NO! Statistical software packages like SPSS can make life much easier for you, but it’s a good idea to know how to do these by hand so you can make sense of your output. Also, on the exam, you won’t have access to a computer.
Read over your SPSS manual and get comfortable with using SPSS. You will have a chance to practice on the HW for this week, and you will work on it in lab on Friday.
Enter your data, then Analyze--> Descriptive Statistics--> Explore. Follow the instructions on p. 48 of the SPSS manual.
The output from SPSS for the internet time problem looks like:
Descriptive s
54.77 5.
7 151 144 48 1.314. 1.977.
Mean Lower Bound Upper Bound
95% Confidence Interval for Mean
5% Trimmed Mean Median Variance Std. Deviat ion Minimum Max imum Range Interquartile Range Skewness Kurt osis
Time spent on the web
Stat istic Std. Error
What if you want to compare the results from two or more different groups? Use side-by-side boxplots or back-to-back stemplots for your graphs.
Female Male 9 2 8 1 (^) 3 6 4 5 0 3 3 0 (^) 6 8 8 8 1 1 0 7 0 8 6 5 2 8 3 4 5 9 9 9 9 9 2 2 4 5 6
Preview of Section 1.3 (from Section 1.3)
A z -score tells us how many standard deviations away from the mean an observation is.
x z
This is also called getting a standardized value.
Why is standardization useful? For comparing apples to oranges.
Example: (p. 88, Problem 1.99) Jacob scores 16 on the ACT. Emily scores 670 on the SAT. Assuming that both tests measure scholastic aptitude, who has the higher score? The SAT scores for 1.4 million students in a recent graduating class were roughly normal with a mean of 1026 and standard deviation of 209. The ACT scores for more than 1 million students in the same class were roughly normal with mean of 20.8 and standard deviation of 4.8.
Example: Checking account balances are approximately Normally distributed with a mean of $1325 and a standard deviation of $25.
a) Between what numbers do 68% of the balances fall?
b) Above what number do 2.5% of the balances lie?
c) Approximately what percent of balances are between 1250 and 1400?