260 likes | 473 Views
Week 3. Chapters 5, 7, 12. Chapter 5. Outliers, Fences, Box plots. Outliers (p.95). An outlier is a value that is located very far away from almost all of the other values. An observation that is unusually large or small relative to the other values in a data set is called an outlier.
E N D
Week 3 Chapters 5, 7, 12
Chapter 5 Outliers, Fences, Box plots
Outliers (p.95) • An outlier is a value that is located very far away from almost all of the other values. • An observation that is unusually large or small relative to the other values in a data set is called an outlier. Outliers occur by: 1. Being observed, recorded, or entered into the computer incorrectly. 2. The data value is correct and represents a rare event.
Detecting Outliers • If a data value is less than the lower fence or greater than the upper fence, it is considered an outlier. • Example • The following data represent income (in thousands of dollars) for a sample of 12 students from Cornell University – 5 years after graduation. • 35 29 44 72 34 64 41 50 54 104 39 58 Determine the fences. Fences are cutoff points for outlier. Lower Fence = Q1 – 1.5(IQR) Upper Fence = Q3 + 1.5(IQR)
Cont. Example Median=(44+50)/2=47 Min Max Q3=61 Q1=37 2934353941445054586472104 Lower Fence = Q1 – 1.5 x IQR = 37-1.5(61-37)=1 Upper Fence = Q3 +1.5 x IQR= 61 +1.5(61-37)= 97 Outlier: 104
Cont. Example Median=(44+50)/2=47 Min Max Q3=61 Q1=37 LF Q1 M UF Q3 0 20 40 60 80 100 120 2934353941445054586472104 Lower Fence = Q1 – 1.5 x IQR = 37-1.5(61-37)=1 Upper Fence = Q3 +1.5 x IQR= 61 +1.5(61-37)= 97 Outlier: 104
Cont. Example Median=(44+50)/2=47 Min Max Q3=61 Q1=37 Represents the highest and lowest values within LF, UF LF Q1 M UF Q3 0 20 40 60 80 100 120 2934353941445054586472104 Lower Fence = Q1 – 1.5 x IQR = 37-1.5(61-37)=1 Upper Fence = Q3 +1.5 x IQR= 61 +1.5(61-37)= 97 Outlier: 104
Cont. Example Median=(44+50)/2=47 Min Max Q3=61 Q1=37 Represents any outliers LF Q1 M UF Q3 0 20 40 60 80 100 120 2934353941445054586472104 Lower Fence = Q1 – 1.5 x IQR = 37-1.5(61-37)=1 Upper Fence = Q3 +1.5 x IQR= 61 +1.5(61-37)= 97 Outlier: 104
Cont. Example Median=(44+50)/2=47 Min Max Q3=61 Q1=37 “Whiskers” “Box plot” LF Q1 M UF Q3 0 20 40 60 80 100 120 2934353941445054586472104 Lower Fence = Q1 – 1.5 x IQR = 37-1.5(61-37)=1 Upper Fence = Q3 +1.5 x IQR= 61 +1.5(61-37)= 97 Outlier: 104
Box Plots and Skewness (p.91) NOTE: Often statisticians will represent box plots vertically. (this may happen on your test) Remember: Q1 is at the bottom, Q3 is at the top Which of the vertical box plots is skewed right? #3 Which of the vertical box has the highest median? #1 Which of the vertical box has the biggest range? All the same Which of the vertical box has the lowest IQR? #2
Chapter 7 Scatterplots, Association, and Correlation
Scatter plot • A scatter plot is the most common display for comparing two quantitative variables . • By just looking at them, you can see patterns, trends, and relationships.
Direction of the relationship A pattern like this (runs from the upper left to the lower right) is said to be negative. A pattern running the other way is called positive.
Strength of relationship Strength: how much scatter. Weak relationship Strong relationship
Correlation coefficient Correlation coefficient (r) is a measure of relationship between two qualitative variables. It determines the degree of association. The correlation coefficient will vary from -1 to 1. A -1 indicates perfect negative correlation, and +1 indicates perfect positive correlation.
Sample VS Population “We’d like to know about an entire population of individuals, but examining all of them is usually impractical, if not impossible. So we settle for examining a smaller group of individuals—a sample—selected from the population” --Page 303 & 304 Sample Survey: “…ask questions of a small group of people in the hope of learning something about the entire population.” Example: You’re bringing pizza to a party, and you have two options – Pizza Hut or Papa Johns. Instead of calling the 100 friends that might show up, you decide to call 5 and ask for their preference.
Sample VS Population “We’d like to know about an entire population of individuals, but examining all of them is usually impractical, if not impossible. So we settle for examining a smaller group of individuals—a sample—selected from the population” --Page 303 & 304 Biased Survey – “Sampling methods that tend to over- or underemphasize some characteristics of the population” Example: If you want to know the proportion of Americans that consider themselves Republican, it would be a bad idea to survey people in Utah alone. Recent polls show that Utah is the most Republican state in the country.
Sample VS Population “We’d like to know about an entire population of individuals, but examining all of them is usually impractical, if not impossible. So we settle for examining a smaller group of individuals—a sample—selected from the population” --Page 303 & 304 Randomizing – “[Protects us from bias, by] making sure that , on average, the sample looks like the rest of the population” Example: It’s final exam week at Cornell University, and 1,200 calculus students are taking a standardized test in the library at 4pm. You want to sample 30 students to find out if the test was easier or harder than expected. What is a better idea (with respect to eliminating bias) – sampling the first 30 students to finish or randomly choosing the students selected for the survey? Why?
4 Types of Random Samples Type 1: Simple Random Sample (SRS) When choosing a sample of size n from a given population,the sample is called a simple random sample if every possible sample of size n has an equal chance to be selected In a SRS, every person is equally likely to be chosen However, if you choose a sample such that everyone is equally likely to be chosen, it is not necessarily SRS. Example 1: Suppose you want to select a sample of 100 students from a school where there are 100 males and 100 females. Choose your sample this way: flip a coin, if heads choose all the males, if tails, choose all the females. Every person has an equally likely chance of being selected (50%), BUT THIS IS NOT SRS!!! Why?
4 Types of Random Samples Type 1: Simple Random Sample (SRS) When choosing a sample of size n from a given population,the sample is called a simple random sample if every possible sample of size n has an equal chance to be selected In a SRS, every person is equally likely to be chosen However, if you choose a sample such that everyone is equally likely to be chosen, it is not necessarily SRS. Example 2: A better way to sample 100 students from a school with 200 students: Use Minitab to assign a unique random number to each student (1, 2, 3,… 200), then choose the first 100 numbers to be in your sample.
4 Types of Random Samples Type 2: Stratified Sample “First [slice the population] into homogeneous groups, called strata, before the sample is selected. Then SRS is used within each stratum; combine the selections from each stratum into one large sample.” -- page 310 Example from book: page 310 – football example Idea: Suppose we want to know how Akron University feels about using funds to support the football team. Men and women feel differently about using funds in this way. If the school is 60% men and 40% women, we want our sample to represent this. So, if we are going to sample 100 people, we should separate the men and women, then randomly sample exactly 40 women (40% of 100) and 60 men (60% of 100)
4 Types of Random Samples Type 3: Cluster Sample “Splitting the population into representative clusters can make sampling more practical. Then we could simply select one or a few clusters at random and [include all observations in these clusters in our sample].” Example from book: page 311 – Sentence Length Idea: Suppose we want to know the length of the average sentence in the textbook. SRS is complicated in this case, because we would have to count each sentence individually. However, if we believe each page is “representative” of the entire book, then we can just choose a few pages at random and combine the sentences found on these pages as one sample. Each page is a “cluster” of “representative” sentences.
4 Types of Random Samples Type 3: Cluster Sample “Splitting the population into representative clusters can make sampling more practical. Then we could simply select one or a few clusters at random and [include all observations in these clusters in our survey].” IN CLUSTER SAMPLE: divide population into representative “clusters” main goal: makes sampling easier IN STRATIFIED SAMPLE: divide population into nonrepresentative “stratum” main goal: gives a more representative sample
4 Types of Random Samples Type 4: Systematic Sample Some samples select individuals systematically – for example: choose every 10th person in an alphabetical list. This is not SRS (why?), but it is still representative as long as the order you choose observations is not related to the variable(s) you’re measuring.