ch. 1 notes 2019-2020 (blank) · storage (gb) expandable storage rear camera (megapixels) battery...

18
AP Statistics – Ch. 1 Notes Exploring Data Statistics is the art and science of learning from data. This may include: Designing appropriate tools to collect data. Organizing data in a meaningful way. o Displaying data with appropriate graphs. o Summarizing data with numbers. Using data to draw conclusions and make predictions. Data are information in context. Individuals are the objects described by a set of data. They may be people, animals, or things. A variable is any attribute that can take different values for different individuals. A categorical (or qualitative) variable assigns labels that place each individual into a particular group or category. A quantitative variable takes number values that are quantities – counts or measurements – for which it makes sense to find an average. Not every variable with a number value is quantitative! Examples: The distribution of a variable shows what values the variable takes and how often it takes each value. Distributions are summarized in tables and displayed in graphs. How to Explore Data Begin by examining each variable by itself. Then move on to study relationships among the variables. Start with a graph or graphs. Then add numerical summaries. Example: The following table shows information about several popular cell phone models. Phone Operating System Screen Size (inches) Internal Storage (GB) Expandable Storage Rear Camera (megapixels) Battery Life (Talk Time) (hours) Apple iPhone 6S Plus iOS 9 5.5 16 No 12 24 Apple iPhone 6s iOS 9 4.7 16 No 12 14 Apple iPhone 6 iOS 8 4.7 16 No 8 14 BlackBerry DTEK 50 Android 6.0 5.2 16 Yes 13 17 BlackBerry Priv Android 5.1 5.4 32 Yes 18 24 BlackBerry Leap BlackBerry 10 5.0 16 Yes 8 25 LG X Skin Android 6.0 5.0 16 Yes 8 7 LG G5 SE Android 6.0 5.3 32 Yes 16 20 LG G5 Android 6.0 5.3 32 Yes 16 20 Microsoft Lumia 650 Windows 10 5.0 16 Yes 8 13 Microsoft Lumia 950 Windows 10 5.2 32 Yes 20 13 Microsoft Lumia 950 XL Windows 10 5.7 32 Yes 20 19 Samsung Galaxy Note 7 Android 6.0 5.7 64 Yes 12 24 Samsung Galaxy On 7 Pro Android 6.0 5.5 16 Yes 13 11 Samsung Galaxy S7 Edge Android 6.0 5.5 32 Yes 12 33

Upload: others

Post on 11-Oct-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Ch. 1 Notes 2019-2020 (blank) · Storage (GB) Expandable Storage Rear Camera (megapixels) Battery Life (Talk Time) (hours) Apple iPhone 6S Plus iOS 9 5.5 16 No 12 24 Apple iPhone

AP Statistics – Ch. 1 Notes

Exploring Data

Statistics is the art and science of learning from data. This may include:

• Designing appropriate tools to collect data.

• Organizing data in a meaningful way. o Displaying data with appropriate graphs. o Summarizing data with numbers.

• Using data to draw conclusions and make predictions. Data are information in context. Individuals are the objects described by a set of data. They may be people, animals, or things. A variable is any attribute that can take different values for different individuals. A categorical (or qualitative) variable assigns labels that place each individual into a particular group or category. A quantitative variable takes number values that are quantities – counts or measurements – for which it

makes sense to find an average. Not every variable with a number value is quantitative!

Examples:

The distribution of a variable shows what values the variable takes and how often it takes each value. Distributions are summarized in tables and displayed in graphs.

How to Explore Data

Begin by examining each variable by itself. Then move on to study relationships among the variables.

Start with a graph or graphs. Then add numerical summaries. Example: The following table shows information about several popular cell phone models.

Phone Operating System Screen Size

(inches)

Internal

Storage (GB)

Expandable

Storage

Rear

Camera

(megapixels)

Battery Life

(Talk Time)

(hours)

Apple iPhone 6S Plus iOS 9 5.5 16 No 12 24

Apple iPhone 6s iOS 9 4.7 16 No 12 14

Apple iPhone 6 iOS 8 4.7 16 No 8 14

BlackBerry DTEK 50 Android 6.0 5.2 16 Yes 13 17

BlackBerry Priv Android 5.1 5.4 32 Yes 18 24

BlackBerry Leap BlackBerry 10 5.0 16 Yes 8 25

LG X Skin Android 6.0 5.0 16 Yes 8 7

LG G5 SE Android 6.0 5.3 32 Yes 16 20

LG G5 Android 6.0 5.3 32 Yes 16 20

Microsoft Lumia 650 Windows 10 5.0 16 Yes 8 13

Microsoft Lumia 950 Windows 10 5.2 32 Yes 20 13

Microsoft Lumia 950 XL Windows 10 5.7 32 Yes 20 19

Samsung Galaxy Note 7 Android 6.0 5.7 64 Yes 12 24

Samsung Galaxy On 7 Pro Android 6.0 5.5 16 Yes 13 11

Samsung Galaxy S7 Edge Android 6.0 5.5 32 Yes 12 33

Page 2: Ch. 1 Notes 2019-2020 (blank) · Storage (GB) Expandable Storage Rear Camera (megapixels) Battery Life (Talk Time) (hours) Apple iPhone 6S Plus iOS 9 5.5 16 No 12 24 Apple iPhone

AP Statistics – Ch. 1 Notes

a) Who/what are the individuals in this data set?

b) What variables are measured? Identify each as categorical or quantitative. In what units were the quantitative variables measured?

c) Give the distributions of the following for the data set: screen size, internal storage, and presence of expandable memory.

Analyzing Categorical Data

The values of a categorical variable are labels for the categories, such as “male” or “female”. The distribution of a categorical variable gives the categories and either the count or proportion of individuals who fall into each category. Proportion: The fraction of the total that possesses a certain attribute. Proportions can be expressed as fractions, decimals, or percentages. Frequency: The number (count) of individuals in each category. Relative Frequency: The proportion of individuals in each category. Often, we organize categorical data into either a frequency table or a relative frequency table. (These are sometimes called frequency distributions and relative frequency distributions.) Example: The following is a frequency table showing the distribution of responses to the question, “How do you eat corn on the cob?” Find the relative frequency distribution.

How do you eat corn on the cob? Frequency Relative Frequency

In rows 24

In circles 12

Bite wherever 6

Cut the corn off the cob 3

Total

Page 3: Ch. 1 Notes 2019-2020 (blank) · Storage (GB) Expandable Storage Rear Camera (megapixels) Battery Life (Talk Time) (hours) Apple iPhone 6S Plus iOS 9 5.5 16 No 12 24 Apple iPhone

AP Statistics – Ch. 1 Notes

Categorical data is often displayed using bar graphs and pie charts.

A bar graph shows each category as a bar. The heights of the bars correspond to the frequencies or relative frequencies of the categories. A pie chart shows each category as a sector or “slice” of a circle or “pie”. The areas of the slices are proportional to the category frequencies or relative frequencies. A segmented bar graph displays the distribution of a categorical variable as a single bar divided into segments. The height of each segment corresponds to the proportion of individuals in the category it represents. Segmented bar graphs use relative frequencies on the vertical axis. Example: Draw a well-labeled segmented bar graph of the corn data from the previous example. Bar graphs can be used in more situations than pie charts and segmented bar graphs! Pie

charts and segmented bar graphs can only be used in situations when the data includes all

parts of a single whole! o Bar graphs can compare proportions of different groups who share some trait. For example,

what proportions of sophomores, juniors, and seniors approve of Bingham’s parking policy? A pie chart or segmented bar graph couldn’t show this, because these are proportions of different groups, not proportions of the same whole.

o Bar graphs can compare proportions in cases where individuals might fall into multiple categories. For example, what percent of students like pizza, what percent like spaghetti, and what percent like pancakes? Students could easily fall into multiple categories, so the percentages would add up to more than 100%. This data couldn’t be displayed on a pie chart or segmented bar graph, but could still be displayed on a bar graph.

o Bar graphs can be used in cases where information is missing. For example, we might know what category some of the individuals fall into, but not others. To display this kind of data in a pie chart or segmented bar graph, it would be necessary to add an “other” category.

Page 4: Ch. 1 Notes 2019-2020 (blank) · Storage (GB) Expandable Storage Rear Camera (megapixels) Battery Life (Talk Time) (hours) Apple iPhone 6S Plus iOS 9 5.5 16 No 12 24 Apple iPhone

AP Statistics – Ch. 1 Notes

Deceptive Graphs:

• Watch out for graphs in which the width changes in addition to the height. The eye responds to area, so this makes the graph misleading. This happens a lot in pictographs.

• Watch out for graphs where the axes don’t start at zero (and/or are missing).

Page 5: Ch. 1 Notes 2019-2020 (blank) · Storage (GB) Expandable Storage Rear Camera (megapixels) Battery Life (Talk Time) (hours) Apple iPhone 6S Plus iOS 9 5.5 16 No 12 24 Apple iPhone

AP Statistics – Ch. 1 Notes

30%

20%

20%30%

Perception of 3D Pie Charts

Cool Confusing Misleading Unreadable

• Watch out for unequally-spaced intervals.

• Watch out for pie charts or segmented bar graphs where the percentages don’t add to 100%. This is a tip-off that they don’t represent all the parts of a single whole.

• Watch out for 3D graphs or graphs set at an angle. This distorts the sizes of sections of a graph so they are not proportional to the values they represent.

Page 6: Ch. 1 Notes 2019-2020 (blank) · Storage (GB) Expandable Storage Rear Camera (megapixels) Battery Life (Talk Time) (hours) Apple iPhone 6S Plus iOS 9 5.5 16 No 12 24 Apple iPhone

AP Statistics – Ch. 1 Notes

A two-way table (or contingency table) summarizes the relationship between two categorical variables for some group of individuals. The rows represent values of one variable and the columns represent values of the other variable. A marginal relative frequency gives the percent or proportion of individuals that have a specific value for one categorical variable (ignoring the information about the other variable). It is calculated using the information in a margin of the table and dividing by the overall total number of individuals. A marginal

distribution gives the marginal relative frequencies for each of the values of a categorical variable. Example: The Pew Research Center asked a random sample of 2024 adult cell-phone owners from the United States which type of cell phone they own: iPhone, Android, or other (including non-smartphones.) Here are the results, broken down by age category. Calculate the marginal distribution of phone type. Draw a graph of the results. Describe what you see. We can also answer questions involving both categorical variables. A joint relative frequency is an “and” relative frequency. It gives the proportion of individuals that fall in a specific category of one variable and a specific category of another variable. Joint relative frequencies are proportions of the overall total. Example: What proportion of the adults in the sample are 18-34 and have an Android? Example: What percent of the adults in the sample are 55+ and have an iPhone? To examine the relationships between variables, we need to calculate some well-chosen proportions from the counts in the table. A conditional relative frequency gives the proportion of individuals with a specific value of one categorical variable among individuals who share a specific value of another categorical variable (the condition). Example: What percent of the 18-34-year-olds in the sample have an Android?

Example: What proportion of the people who have an iPhone are 55+?

Age

18-34 35-54 55+ Total

Type

of

Phone

iPhone 169 171 127 467 Android 214 189 100 503

Other 134 277 643 1054

Total 517 637 870 2024

Page 7: Ch. 1 Notes 2019-2020 (blank) · Storage (GB) Expandable Storage Rear Camera (megapixels) Battery Life (Talk Time) (hours) Apple iPhone 6S Plus iOS 9 5.5 16 No 12 24 Apple iPhone

AP Statistics – Ch. 1 Notes

A conditional distribution gives the conditional relative frequencies for each of the values of a categorical variable among individuals with a specific value of another categorical variable. Example: Using the data above, calculate the conditional distribution of phone type for each age group. (This means look at each age group separately and figure out the proportion of the age group with each type of phone.) To compare the conditional distributions of a categorical variable, we use side-by-side bar graphs (or

comparative bar graphs). These display the distribution of a categorical variable for each value of another categorical variable. The bars are grouped together based on the values of one of the categorical variables and multiple distributions are placed side by side. Color-coding or keys are often used. There is an association (or relationship) between two variables if knowing the value of one variable helps us predict the value of the other. If knowing the value of one variable does not help us predict the value of the other, then there is no association between the variables.

• If the values of one variable are really different for different values of the other variable, then there is an association between the variables.

• If the values of one variable are really similar for different values of the other variable, then there isn’t an association between the variables.

Do not use the word correlation when you mean association. Correlation has a very specific

meaning in statistics, which we will talk about later in the year. Example: Draw a side-by-side bar graph comparing the distributions of phone types for the three age groups. Then draw a segmented bar graph. Describe what you see. Does there appear to be an association between age group and type of phone? Explain.

Page 8: Ch. 1 Notes 2019-2020 (blank) · Storage (GB) Expandable Storage Rear Camera (megapixels) Battery Life (Talk Time) (hours) Apple iPhone 6S Plus iOS 9 5.5 16 No 12 24 Apple iPhone

AP Statistics – Ch. 1 Notes

A mosaic plot is a modified version of a segmented bar graph in which the widths of the bars are proportional to the numbers of individuals in each group. This makes it possible to not only compare conditional distributions, but to gain an understanding of the relative sizes of the groups. Example: Below is a mosaic plot of the cell phone data from the previous examples. Describe what information the mosaic plot shows that the segmented bar graph did not.

Page 9: Ch. 1 Notes 2019-2020 (blank) · Storage (GB) Expandable Storage Rear Camera (megapixels) Battery Life (Talk Time) (hours) Apple iPhone 6S Plus iOS 9 5.5 16 No 12 24 Apple iPhone

AP Statistics – Ch. 1 Notes

Displaying Quantitative Data with Graphs One of the most common parts of a statistical problem is finding an appropriate way to display data. Quantitative data can’t be displayed the same way as categorical data (bar graphs and pie charts don’t work). The most common ways to display quantitative data are dotplots, stemplots, histograms, and boxplots. How to Examine the Distribution of a Quantitative Variable

• Describe the overall pattern of a distribution by describing its shape, center, and variation.

• Point out any outliers (unusually small or unusually large data values).

• Always put your descriptions in context! Describing Shape:

• How many peaks does the distribution have? Don’t count minor ups and downs, only major peaks. Ask yourself if there are distinct groups of individuals visible in the graph.

o Unimodal: One peak (group). o Bimodal: Two peaks (groups). o Multimodal: Three or more peaks (groups). o Approximately Uniform: All values have similar

frequencies.

• If there are any major gaps between groups, describe their locations.

• Is the distribution approximately symmetric or skewed? o If the right and left sides of the graph are close to mirror images of each other, describe

the distribution as “approximately symmetric.” Always use the words “approximately” or “roughly”, because real-life distributions of data won’t be perfectly symmetric.

o If the right side of the graph is much longer than the left side (tail to the right), describe the distribution as “skewed to the right” or “skewed to positive values” or “positively

skewed.” o If the left side of the graph is much longer than the right side (tail to the left), describe the

distribution as “skewed to the left” or “skewed to negative values” or “negatively

skewed.”

Tip: If you can’t decide in which direction the distribution is skewed, go with “approximtely symmetric”!

Don’t used “skew” as a verb! Don’t say something “skews the data”. “Skewed” is an

adjective that describes the shape of a distribution!

Page 10: Ch. 1 Notes 2019-2020 (blank) · Storage (GB) Expandable Storage Rear Camera (megapixels) Battery Life (Talk Time) (hours) Apple iPhone 6S Plus iOS 9 5.5 16 No 12 24 Apple iPhone

AP Statistics – Ch. 1 Notes

Describing Center: Use the location of the peak or peaks, median (middle value) or the mean (average). Describing Variation: Use the range, interquartile range, or standard deviation, or say something like, “The [values in context] vary from a low of _____ to a high of _____.”

Dotplots: 1. Draw a horizontal line, label it with the name of the quantitative variable and the units of

measurement, and place tick marks at equal intervals. 2. Locate each value in the data set along the measurement scale and represent it by a dot above the

line. If there are two or more observations with the same value, stack the dots vertically. Try to make all the dots the same size and space them out equally as you stack them.

To compare two distributions, stack the dotplots on top of each other, using the same scales. Make sure to label the two groups being compared.

Example: Below is a dotplot showing the sugar content (as a percent of weight) of 49 brands of breakfast cereals. Describe the distribution in context. What do you think might account for the shape of the distribution?

Stemplots (or Stem-and-Leaf Plots):

Each number in the data set is broken into two pieces—a stem and a leaf. The stem is the first part of the number and consists of the beginning digits. The leaf is the last part of the number and consists of the final digit(s).

1. Choose stems (one or more of the leading digits) that divide the data into a reasonable number of groups (at least 5, but not too many). List possible stem values (not just those that actually appear in the data set—don’t skip stems) in a vertical column. Draw a vertical line to the right of the stems.

2. The next digit(s) after the stem become(s) the leaf. List the leaf for every observation to the right of the corresponding stem.

3. Include a key explaining what the stems and leaves represent, e.g., “2 | 5 represents 2.5 seconds”

Page 11: Ch. 1 Notes 2019-2020 (blank) · Storage (GB) Expandable Storage Rear Camera (megapixels) Battery Life (Talk Time) (hours) Apple iPhone 6S Plus iOS 9 5.5 16 No 12 24 Apple iPhone

AP Statistics – Ch. 1 Notes

It is common to round and/or truncate (leave off) the remaining digits. For example, in a stemplot of annual salary, we might represent $35,360 as 35 | 3, 35 | 4, or as 3 | 5, depending on our data set.

If necessary, consider using split stems. Write each stem more than once, and assign the lower

group of leaves to the first stem and the higher group of leaves to the next. For example, put the leaves 0-4 with the first stem and the leaves 5-9 with the second. If you do this, be sure that each stem is assigned an equal number of possible leaf digits (two stems, with five possible leaves each; or five stems, with two possible leaves each).

To compare two groups, make a back-to-back stemplot. Use the same set of stems and write the leaves for one group to the right and for the other group to the left. Be sure to label each side to indicate which group is being represented.

Example: The data below shows the number of pairs of shoes owned for male and female AP Statistics students. Make a back-to-back stemplot of the data using split stems. Comment on the main differences between the two data sets.

Female 6 7 7 8 9 9 10 10 10 10 11 12 15

15 20 20 20 20 21 22 25 30 30 64 87

Male 3 4 4 4 4 4 5 6 6 7 8 8 10

12 12 12

Histograms: 1. Divide the range of the data into intervals of equal width. The intervals are called “bins.” The

low value in each bin is included in the bin, but the high value is not. For example, the bins might be 0 to < 3, 3 to < 6, 6 to < 9, etc.

If the data are discrete (the observations take only whole number values) and are tightly packed, the bins can be centered at the integer values with a width of one unit, so the rectangle for 1 is centered at 1 (0.5 to < 1.5), the rectangle for 2 is centered at 2 (1.5 to < 2.5), etc. with tick marks placed in the middle of the bins instead of on the boundaries.

There are no set-in-stone rules for how many bins to use (although n for n observations

is a common rule of thumb). It is a good idea to see what the graph looks like with different bin widths and starting points. It can change quite a bit!

Page 12: Ch. 1 Notes 2019-2020 (blank) · Storage (GB) Expandable Storage Rear Camera (megapixels) Battery Life (Talk Time) (hours) Apple iPhone 6S Plus iOS 9 5.5 16 No 12 24 Apple iPhone

AP Statistics – Ch. 1 Notes

2. Find the frequency (count) or relative frequency (proportion) of individuals in each interval. Put values that fall on a boundary in the interval containing larger values.

3. Label and scale your axes. Place equally spaced tick marks at the boundaries of each interval along the horizontal axis (or in the middle of each interval if the data are discrete). Use either frequency (count) or relative frequency (proportion) on the vertical axis.

4. Draw a rectangle for each interval. Make the bars equal width and leave no gaps between them. The height should correspond to the frequency or relative frequency of individuals in that interval.

Histograms and bar graphs are different!

o Bar graphs are used for categorical data. Histograms are used for quantitative data. o The bars in bar graphs can be rearranged because the order of the categories shouldn’t

matter. The bars in histograms can’t be rearranged because intervals must be in numerical order.

o The bars in bar graphs are generally unconnected. The bars in histograms are connected. Example: The following data gives the average points scored per game (PTSG) for the 30 NBA teams in the 2018-2019 regular season. (The Utah Jazz scored an average of 111.7 points per game). Draw two relative frequency histograms using different bin widths. Describe the distribution.

103.5 104.5 104.6 104.9 105.7 107.0 107.3 107.5 108.0 108.9

110.7 110.7 111.7 111.7 111.8 112.2 112.4 112.5 113.3 113.9

114.0 114.2 114.4 114.5 114.7 115.1 115.2 115.4 117.7 118.1

Page 13: Ch. 1 Notes 2019-2020 (blank) · Storage (GB) Expandable Storage Rear Camera (megapixels) Battery Life (Talk Time) (hours) Apple iPhone 6S Plus iOS 9 5.5 16 No 12 24 Apple iPhone

AP Statistics – Ch. 1 Notes

Describing Quantitative Data with Numbers Population: The entire collection of individuals or objects that you want to learn about. Sample: A part of the population that is selected for study. Resistant Measure: A measure that is not influenced very much by strong skewness or extreme values.

Measures of Center: The most common measures of center are the mean and the median.

Mean: The sum of the values divided by the number of observations.

• If the n observations in a sample are 1 2, ,..., ,n

x x x the mean is 1 2 ....n ix x x x

xn n

+ + + ∑= =

• The mean can be thought of as the “average” value, the “fair share” value, or the “balance point” of a distribution.

• The mean is not a resistant measure. It is very sensitive to outliers and skewness. The mean of a sample is abbreviated x (pronounced “x-bar”) and the mean of a population is

abbreviated xμ (the Greek letter mu, pronounced “myoo”). They are both calculated the same way. The

distinction will be important later in the year. If the problem doesn’t specify whether the data represent a population or a sample, assume you are dealing with a sample and use .x Median (M): The midpoint of a distribution. Half of the observations are smaller than the median and half of the values are larger than the median. To find the median:

1. Put the n observations in order from smallest to largest. 2. If the number of observations, n, is odd, the median is the middle observation of the ordered list. 3. If the number of observations, n, is even, the median is the average (mean) of the two middle

observations in the ordered list.

• The median can be thought of as the “typical” value of a variable.

• The median is a resistant measure. It is not changed greatly by strong skewness or outliers. Comparing the Mean and the Median: The mean and median of a roughly symmetric distribution are close together. If the distribution is exactly symmetric, they are equal. However, outliers and other extreme values drag the mean toward them without having much effect on the median. As a result, in

skewed distributions, the mean will be further out in the long tail than is the median.

Page 14: Ch. 1 Notes 2019-2020 (blank) · Storage (GB) Expandable Storage Rear Camera (megapixels) Battery Life (Talk Time) (hours) Apple iPhone 6S Plus iOS 9 5.5 16 No 12 24 Apple iPhone

AP Statistics – Ch. 1 Notes

300250200150100500

Number of Visits to Class Website

Example: Here are the amounts of fat (in grams) in McDonald’s beef sandwiches. Make a stemplot of the distribution and comment on its shape. Then calculate the mean and the median amount of fat. Example: Forty students were enrolled in a statistical reasoning course at a California college. The instructor made course materials, grades, and lecture notes available to students on a class web site, and course management software kept track of how often each student accessed any of these web pages. One month after the course began, the instructor requested a report of how many times each student had accessed a class web page. The 40 observations are below. Wasn’t it nice of me to put them in order? 0 0 0 0 0 0 3 4 4 4 5 5 7 7 8 8 8 12 12 13 13 13 14 14 16 18 19 19 20 20 21 22 23 26 36 36 37 42 84 331 (not a typo) Here is a dotplot of the data. Describe the distribution. Based on the graph, do you expect the mean or the median to be higher? Calculate the mean and the median to see if you were right. Which measure would be the best choice to describe center in this situation?

Sandwich Fat (g) Sandwich Fat (g)

Hamburger 9 Big N’ Tasty 24

Cheeseburger 12 Big N’ Tasty with Cheese 28

Double Cheeseburger 23 McRib 26

McDouble 19 Mac Snack Wrap 19

Quarter Pounder 19 Angus Bacon & Cheese 39

Quarter Pounder with Cheese 26 Angus Deluxe 39

Double Quarter Pounder with Cheese 42 Angus Mushroom & Swiss 40

Big Mac 29

Page 15: Ch. 1 Notes 2019-2020 (blank) · Storage (GB) Expandable Storage Rear Camera (megapixels) Battery Life (Talk Time) (hours) Apple iPhone 6S Plus iOS 9 5.5 16 No 12 24 Apple iPhone

AP Statistics – Ch. 1 Notes

Measures of Variability: Numbers that describe how spread out the data are. The most common are the range, the interquartile range, and the standard deviation. Range: The difference between the maximum and minimum values. Standard Deviation: The most common measure of spread is the standard deviation. It measures the “typical” or “average” distance of the observations from the mean. Example: Each of these distributions has a mean of 5. Rank the standard deviations from lowest to highest. Explain your answer.

The formula for standard deviation is slightly different depending on whether you have all the data for the entire population or are dealing with a sample from the population. For a Sample:

If the n observations in a sample are 1 2, ,..., ,n

x x x and the mean is ,x the standard deviation is given by:

( ) ( ) ( ) ( )2 2 2 2

1 2 ...

1 1

n i

x

x x x x x x x xs

n n

− + − + + − −= =

− −

The sample standard deviation is abbreviated .x

s

Variance: The square of the standard deviation is called the variance, abbreviated 2 .x

s

For the Population:

The standard deviation of a population of size N with mean μ and observations 1 2, ,...,n

x x x is given by:

( ) ( ) ( ) ( )2 2 2 2

1 2 ... n i

x

x μ x μ x μ x μσ

N N

− + − + + − −= =

The population standard deviation is abbreviated xσ (the Greek letter sigma). The population variance is

abbreviated 2.xσ

The reason that we divide by 1n− in a sample is complicated. We’ll discuss it later in the year.

Always use x

s rather than xσ unless you know that the data represent the entire population, which is

rare!

1086420

1086420

1086420

Page 16: Ch. 1 Notes 2019-2020 (blank) · Storage (GB) Expandable Storage Rear Camera (megapixels) Battery Life (Talk Time) (hours) Apple iPhone 6S Plus iOS 9 5.5 16 No 12 24 Apple iPhone

AP Statistics – Ch. 1 Notes

Calculating the standard deviation by hand: 1. Calculate the mean, .x 2. Find the distance of each observation from the mean (the deviations). 3. Square each of these distances to eliminate negative numbers.

4. “Average” the squared distances by adding them together and dividing by 1.n− This gives the

variance, 2 .x

s

5. Take the square root of the variance to get the standard deviation, .x

s

6. Interpret your result. The standard deviation is the “average” or typical distance of the observations from the mean.

Example: The table below shows the sugar content in several types of candy bar. Find the mean and standard deviation of the data. Interpret your result in context.

Properties of the Standard Deviation

• The standard deviation measures variation around the mean. It should only be used when the mean is chosen as the measure of center.

• The standard deviation is always greater than or equal to zero. If there is no variability (all observations have the same value), the standard deviation is zero. Larger standard deviations indicate greater variation from the mean.

• The standard deviation has the same units of measurement as the original observations. This is one reason we usually interpret the standard deviation and not the variance.

• The standard deviation is not a resistant measure. A few outliers can change its value dramatically.

Candy Bar Sugar (grams)

ix

Deviations

ix x−

Squared

Deviations

( )2

ix x−

Hershey’s Milk Chocolate 31

Kit Kat 22

York Peppermint Pattie 25

Reese’s Peanut Butter Cups 25

Snickers 30

Milky Way 35

Twix 27

3 Musketeers 40

Mr. Goodbar 22

Baby Ruth 33

Page 17: Ch. 1 Notes 2019-2020 (blank) · Storage (GB) Expandable Storage Rear Camera (megapixels) Battery Life (Talk Time) (hours) Apple iPhone 6S Plus iOS 9 5.5 16 No 12 24 Apple iPhone

AP Statistics – Ch. 1 Notes

Interquartile Range (IQR): First, calculate the quartiles:

1. Arrange the data in increasing order and locate the median, M. (The median is sometimes called the second quartile, or Q2).

2. The first quartile (Q1) is the median of all the observations lower than the median. 3. The third quartile (Q3) is the median of all the observations higher than the median.

The interquartile range is calculated as follows: IQR = Q3 – Q1

The IQR is the range of the middle 50% of the data. The range and interquartile range are numbers! Don’t say “The range is 5 to 30.” In that case, the

range would be 25.

The IQR is not a location! It doesn’t make sense to say an observation is “in the IQR”. 1.5 × IQR Rule for Outliers: Any observation that falls more than 1.5 IQR× above the third quartile or

below the first quartile. Always check for outliers and examine them closely! They may be errors, or they may tell you

something important about your data that you need to pay attention to. Don’t ignore them. Boxplots (or Box and Whisker Plots):

1. Find the Five-Number Summary: Minimum Q1 M Q3 Maximum

2. Check for outliers. You must always show this step.

• Calculate the IQR.

• Find ( )1 1.5Q IQR− × and ( )3 1.5 .Q IQR+ ×

• If you have any data points outside these thresholds, they are outliers.

3. Draw the boxplot:

• Draw a central box from Q1 to Q3.

• Draw a vertical line in the box to mark the median.

• Draw the “whiskers”: lines extending from the box out to the smallest and largest observations that are not outliers.

• Mark outliers with dots in the appropriate locations.

Each section of a boxplot contains 25% of the data.

• The lower quartile is higher than 25% of the data.

• The median (or second quartile) is higher than 50% of the data.

• The upper quartile is higher than 75% of the data.

Boxplots are useful for comparing the center and spread of distributions, but you have to be careful with them. They can mask important information about the shape of a distribution. For instance, you can’t tell from a boxplot if a distribution has multiple peaks or gaps.

Page 18: Ch. 1 Notes 2019-2020 (blank) · Storage (GB) Expandable Storage Rear Camera (megapixels) Battery Life (Talk Time) (hours) Apple iPhone 6S Plus iOS 9 5.5 16 No 12 24 Apple iPhone

AP Statistics – Ch. 1 Notes

Example: The data below shows the number of text messages sent by a random sample of students in a day. Draw parallel boxplots of the number of texts sent for male and female students. You must show how you determined whether there are outliers. Compare the distributions. What conclusions can you draw about the texting habits of males and females?

Male 3 6 6 10 10 12 17 24 25 40 45 87 111

Female 7 11 20 26 38 52 59 79 90 156

Choosing Measures of Center and Spread:

• Use the median and IQR for describing a skewed distribution or a distribution with strong outliers.

• Use the mean and standard deviation for describing reasonably symmetric distributions without outliers.

ALWAYS GRAPH YOUR DATA! Numerical measures of center and spread report specific facts

about a distribution, but don’t give information about its entire shape. You may miss something important if you don’t graph the data.