Data Analysis: Central Tendency & Spread
Data Analysis: Central Tendency & Spread
Types of Data
There are several different classifications of data: univariate versus bivariate, categorical versus quantitative.
Measures of Central Tendency are used to generalize data sets and identify common values.
Calculation: Add up all the data values and divide by the number of data values
Mean
Useful When: - Data values do not vary greatly
- No outliers
- Distribution is symmetric
Mode Definition: Value that occurs most frequently. There can be no, one, or several modes
1
FOA/Algebra 1 Unit 6: Describing Data Notes
Definition: The middle number when the values are written in numerical order
Calculation: Rewrite your data values in numerical order to find the middle number.
o If your data set is ODD, then the median will be the number that falls
directly in the middle.
Median
o If your data set is EVEN, then the median is the average of the two
middle numbers.
Definition: Quartiles are values that divide a list of numbers into quarters
First (Q1) Quartile: Median of the lower half of a data set
First and
o Calculation: Find the middle number of the values to the left of the median
Third
Quartiles
Third (Q3) Quartile: Median of the upper half of a data set
o Calculation: Find the middle number of the values to the right of the median
Example: Find the median, lower and upper quartiles of the following numbers.
a. 76 77 79 80 82 88 90 92 95 b. 15, 10, 12, 18, 10, 22
Outliers Data value that is much greater than or much less than the rest of the data in a data set
If an outlier is present, you would use the median to describe the data, NOT the mean!
Example: Identify any outliers in the data set. Then determine if the median or mean best represents the data sets.
a. 15, 10, 12, 18, 10, 22 b. 128, 152, 170, 41, 161
Measures of Spread
Measures of Spread describe the “diversity” of the values in a data set. Measures of spread are used to help
explain whether data values are very similar or very different.
Definition: Difference between the greatest and least values in the set
Range
Calculation: Subtract the smallest data value from the biggest data value
Range = Biggest # - Smallest #
2
FOA/Algebra 1 Unit 6: Describing Data Notes
Definition: The difference between the third and first quartiles (Q 3 – Q1). It finds the distance
between two data values that represent the middle 50% of the data.
Interquartile
Range (IQR)
Calculation: Subtract the first quartile value from the third quartile value (Q 3 – Q1).
Example: Find the interquartile range of the following numbers. (Use Q1 and Q3 from the previous page)
a. 76 77 79 80 82 88 90 92 95 b. 15, 10, 12, 18, 10, 22
Mean Definition: Average absolute value of the difference between each data point and the
Absolute mean. It essentially takes the average distance of the data points from the mean.
Deviation The greater the mean absolute deviation, the more the data is spread out.
X1 = data value
The formula for mean absolute deviation is:
x = mean
= sum
N = number of data values
3
FOA/Algebra 1 Unit 6: Describing Data Notes
1.) Find the mean. 2.) Find the median(Q2). 3.) Find the mode.
4.) Find the range. 5.) Find Q1. 6.) Find Q3.
4
FOA/Algebra 1 Unit 6: Describing Data Notes
Minutes 0 1 2 3 4 5 6 7 8 9 10 11 12
People 6 2 3 5 2 5 0 0 2 3 7 4 1
Disadvantages of Dot Plots: Can be time consuming with lots of data points
Have to count to get exact total
Fractions are hard to display
5
FOA/Algebra 1 Unit 6: Describing Data Notes
Practice 3: The following dot plot represents gold medals won at the Special Olympics:
d. Describe the data distribution and interpret its meaning in terms of this problem situation.
6
FOA/Algebra 1 Unit 6: Describing Data Notes
Histograms
A histogram is a bar graph used to display the frequency of data divided into equal intervals, called bins. The bars
must be of equal width and should touch, but not overlap. The height of each bar gives the frequency of the data.
How many more students read 4-7 books than 12-15 books?
Disadvantages of Histograms: Cannot read exact values because data is grouped into categories
More difficult to compare two data sets because measures of center and
spread cannot be determined
(POSITIVE The median will be shifted left and the “tail’ on the
SKEW) right. Typically the mean is greater than or to the right
of the median
Practice 1: Describe the distribution of each histogram and if the mean is less, greater, or equal to the median. Then
describe which would be a better measure of center; the median or mean.
a. b.
Practice 2: Use the histogram to answer the following questions about how long it takes students to get ready.
c. Based on the info given, could you redraw the current histogram with
intervals half their current size? Why or why not?
Practice 3: Analyze the given histogram which displays the ACT composite score of several randomly chosen
students.
8
FOA/Algebra 1 Unit 6: Describing Data Notes
Box Plots
A box plot (also called box and whisker plot) is used to show how data values are distributed. They are created
using five important numbers that show the minimum, maximum, median, lower quartile, and upper quartile.
In a box plot, a rectangle is drawn starting at the first quartile and ending at the third quartile. The rectangle shows
the middle 50% of the data set. The median is represented by a line. Whiskers are drawn from the rectangle to the
minimum and maximum data values. An example of a box plot is below:
Identifying Distributions
b.
c.
Before you can even create a box plot, you have to know how to calculate the “five number summary”, which
consists of the minimum, maximum, median, lower quartile, and upper quartile.
Using the following data set, find the five number summary:
{15, 10, 12, 18, 10, 22, 11, 17, 13}
Lower Quartile: Median of the lower half of the data set (Q1 or First Quartile) _________
Upper Quartile: Median of the upper half of the data set (Q3 or Third Quartile) _________
10
FOA/Algebra 1 Unit 6: Describing Data Notes
Example 1: Analyze the box plot below about the cost, in dollars, of 12 CD’s. Answer the questions.
E. How many CD’s cost between $14.50 F. How many CD’s cost less than $14.50?
and $26.00?
11
FOA/Algebra 1 Unit 6: Describing Data Notes
Example 2: Analyze the box plot below and answer the following questions:
A. What is the height range of the middle B. How many of the surveyed adults
50 percent of the surveyed adults? are between 72 and 79 inches?
C. What percent of the surveyed adults D. What is the height of the tallest
are 72 inches or shorter? adult surveyed?
E. About 10 people have a height below what F. About 20 people have a height
amount? above amount?
G. How many of the surveyed adults are H. Describe the distribution. Is the median
at least 58 inches tall? or mean best describe the data?
12
FOA/Algebra 1 Unit 6: Describing Data Notes
Example 1: Which data set will have the greater mean absolute deviation? Why?
Example 2: The following data represents test scores from Unit 11 test.
Unit 11 Test Scores: 81, 41, 89, 92, 80, 86, 77, 66, 84, 92, 97, 88, 77, 38
b. What type of distribution does the data create? What does this mean?
13
FOA/Algebra 1 Unit 6: Describing Data Notes
Example 3: The histograms below show the scores of Mrs. Smith’s first and second block class at Red Rock High
School.
1. How many students are in her 1st and 2nd block class?
14
FOA/Algebra 1 Unit 6: Describing Data Notes
Example 4: Each girl in Mrs. Washington’s class and Mrs. Wheaton’s class measured their own height. The heights
were plotted on the dot plots below. Use the dot plots to compare the heights of the girls in the two classes.
a.
Describe the distribution for each class. c. What is the mean and median for each class?
b. Which teacher’s girls appear to be taller and why? d. How tall are the majority of the girls in each class?
Example 5: The following box plots show the average monthly high temperatures for Milwaukee and Honolulu. Use
the box plots to answer the following questions.
Honolulu Milkwaukee
A. What was the median temperature for both cities? B. What was the range for both cities?
D. Interpret what the 1st and 3rd quartiles mean for both cities.
15
FOA/Algebra 1 Unit 6: Describing Data Notes
Frequency Tables
A relative frequency is the frequency that an event occurs divided by the total number of events.
Example: If your team has won 9 games from a total of 12 games played:
The frequency of winning is 9 The relative frequency of winning is 9/12 = 75%.
A two way table is a useful way to organize data that can be categorized by two variables (bi-variate). The
following table shows the results of a poll of randomly selected high school students and their preference for either
math or English. Joint frequencies are the number of times a response was given for a certain characteristic.
Marginal frequencies is the total number of times a response is given for a certain characteristic. Marginal
frequencies are found in the margins of the table.
Example 1: Fill in the missing values into the table below and then answer the following questions:
16
FOA/Algebra 1 Unit 6: Describing Data Notes
Joint and Marginal Relative Frequencies
The joint relative frequencies are the values in each category divided by the total number of values and
written as percents (or decimals).
The marginal relative frequencies are found by adding the joint relative frequencies in each row and
column (totals) and are written as percents (or decimals). Marginal frequencies are written in the MARGINS.
The marginal frequency totals in each row and column should always total 1 or 100%.
Calculate the joint and marginal relative frequencies for the table:
Math
English
Total
c. What percent of students like Math? d. What percent of those surveys were seniors?
Example 3: One hundred people who frequently get migraine headaches were chosen to participate in a study of
new anti-headache medicine. Some of the participants were given the medicine; others were not. After one
week, the participants were asked if they got a headache during the week. The two way frequency table
summarizes the results. Fill in the missing value and then create a joint and marginal relative frequency table.
Did NOT Take
Took Medicine TOTAL
Medicine
Headache 12 27
No Headache 48 25
TOTAL 40
Headache
No Headache
TOTAL
17
FOA/Algebra 1 Unit 6: Describing Data Notes
Conditional Frequencies
No Headache 48 25 73
TOTAL 60 40 100
1. What is the probability that a participant did not get a headache if they took the medicine?
2. What is the probability that a participant took medicine given they did not have a headache?
3. What is the probability that a participant took medicine given they did have a headache?
4. Calculate the joint and marginal frequencies from the table above.
No Headache
TOTAL
5. What is the probability that a participant who did not get a headache took the medicine?
6. What is the probability that a participant took medicine given they did not have a headache?
7. What is the probability that a participant took medicine given they did have a headache?
8. What do you notice about the answers from problems 1 – 3 and problems 5 – 7?
18
FOA/Algebra 1 Unit 6: Describing Data Notes
Example 5: Students were surveyed about whether or not they have a pet and if they are allergic or not to animals.
The results are below:
a. What percent of those surveyed who are allergic to animals have a pet?
b. What percent of those surveyed who are not allergic to animals have a pet?
d. What percent of those who have a pet are not allergic to animals?
Example 6: The following contains the scores of the latest math project. Use the table to answer the following
questions:
19
FOA/Algebra 1 Unit 6: Describing Data Notes
Scatterplots
A scatterplot is a graph of data pairs (x, y).
Scatterplots are typically used to describe relationships, called correlations, between two variables (bi-
variate).
The correlation coefficient describes how well a line fits the data. A trend line can be drawn to help
determine correlation.
Correlation Coefficients
0.00 to 0.29 None to Weak Positive 0.00 to 0.29 None to Weak Negative
Example: Determine if the following graphs have positive, negative, or no correlations. Then tell if the correlation
coefficient is strong, moderate, or weak positive or negative.
a. b. c. d. e.
20
FOA/Algebra 1 Unit 6: Describing Data Notes
Example: Describe the scatterplot that best describes the scenario below and explain why:
The relationship between the number of days since a sunflower seed was planted and the height of the plant.
Example: Describe the correlation you would expect to see between each pair of data sets. Explain your choice:
a. The number of hours you work vs the amount of money in your bank account:
b. The number of hours workers receive safety training vs the number of accidents on the job:
d. The number of heaters sold versus the months in order from April to September:
e. The number of rice dishes eaten vs the number of cars on I-75 throughout the day:
f. The number of calories burned/lost vs the amount of hours you worked out:
21
FOA/Algebra 1 Unit 6: Describing Data Notes
Correlation vs Causation
Correlation: implies a mutual relationship between two or more things. It is very IMPORTANT to understand that just
because two variables are strongly correlated does NOT imply a cause and effect relationship. A strong
relationship between two variables could be a coincidence or caused by additional factors. Typically, correlations
use the words noticed and showed.
Causation: implies a relationship in which one action or event is the direct consequence of another (cause and
effect).
Correlation Causation
Smoking is correlated with alcoholism (but it The more you smoke, the chances of
doesn’t cause it). developing lung cancer increase. (Does
The more ice cream consumed on a beach, smoking cause lung cancer?)
the increased number of people who go in The less calories you eat, the more weight you
the water (eating ice cream doesn’t cause lose (Does eating less cause you to lose
you to go in the water more). weight?)
A. A recent study showed that college students were more likely to vote than their peers who were not in
school.
B. Dr. Shaw noticed that there was more trash in the hallways after 2nd period than 1st period.
D. The number of miles driven and the amount of gas used on your trip to Disneyworld.
F. The amount of cars a salesman sells and the amount of commission he makes during the month of July.
22
FOA/Algebra 1 Unit 6: Describing Data Notes
1. Once your data is entered into a list, Press [STAT] [CALC] and choose your regression.
4: LinReg – Linear Regression y = mx + b (a = m)
5: QuadReg – Quadratic Regression y = ax2 + bx + c
0: ExpReg – Exponential Regression y = abx
2. If you want your graphing calculator to automatically input the equation into y = , do the following:
On the 2nd screen, hit ENTER until STORE REGEQ is highlighted.
Hit Vars Y-VARS 1: Function 1: Y1
3. Hit ENTER until CALCULATE is highlighted. You should see your variables (a, b, and possibly c) unless with r 2 and r.
R: correlation coefficient – this tells you how much correlation exists between your data
R2: this tells you how well the equation fits your data. The closer to 1, the better the fit.
23
FOA/Algebra 1 Unit 6: Describing Data Notes
3. Make a scatterplot for each data set. Then find the correlation coefficient using your calculator.
a. b.
Linear Regression
Yesterday, we drew trend lines to help us see if a scatter plot had any types of correlation. A trend line is a line that
closely models the data. A line of best fit is the line that comes closest to all of the points in the data set. The line of
best fit provides the predicted values for a set of data.
If a line is a good line of best fit, it will have data points above and below the line.
24
FOA/Algebra 1 Unit 6: Describing Data Notes
Example: The table shows test averages of eight students. The equation that best models the data is
y = 0.77x + 18.12 and the correlation coefficient is 0.87. Discuss correlation and causation for the data set.
Example: Eight adults were surveyed about their education and earnings. The table shows the survey results. The
equation that models the data Is y = 0.59x + 30.28 and the correlation coefficient is 0.86. Discuss correlation and
causation for the data set.
Scenario 1: A weather team records the weather each hour after sunrise one morning in May. The hours after
sunrise and the temperature in degrees Fahrenheit are in the table below. Create a graph to represent the data
and calculate a linear equation to represent the table.
25
FOA/Algebra 1 Unit 6: Describing Data Notes
a:
Step 2: Estimate/determine the y-intercept:
b:
r:
3. Enter into y = mx + b
a. Interpret what the slope of each equation means in terms of the problem context.
b. Interpret what the y-intercept of each equation means in terms of the problem context.
26