IB Standard level stats

Slides:



Advertisements
Similar presentations
AGVISE Laboratories %Zone or Grid Samples – Northwood laboratory
Advertisements

5.1 Rules for Exponents Review of Bases and Exponents Zero Exponents
Measures of Location and Dispersion
Statistics Part II Math 416. Game Plan Creating Quintile Creating Quintile Decipher Quintile Decipher Quintile Per Centile Creation Per Centile Creation.
Worksheets.
Copyright © 2014 by McGraw-Hill Higher Education. All rights reserved.
STATISTICS INTERVAL ESTIMATION Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National Taiwan University.
Addition and Subtraction Equations
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 5- 1.
Describing Data: Measures of Dispersion
Describing Data: Measures of Central Tendency
Continuous Numerical Data
Whiteboardmaths.com © 2004 All rights reserved
4-4 Variability Objective: Learn to find measures of variability.
Math 6 SOL Review Pt Released Test 26. Which solid could not have two parallel faces? A. A. Cube B. B. Rectangular prism C. C. Pyramid D. D.
12.3 – Analyzing Data.
CALENDAR.
Outliers. Do Now Bill Gates makes $100 thousand a year. He s in a room with 9 teachers, 4 of whom make $40k, 3 make $45k, and 2 make $55k a year. What.
Lecture Slides Elementary Statistics Tenth Edition
Frequency Tables, Stem-and-Leaf Plots, and Line Plots 7-1
Lecture 7 THE NORMAL AND STANDARD NORMAL DISTRIBUTIONS
Lecture 2 ANALYSIS OF VARIANCE: AN INTRODUCTION
CS1512 Foundations of Computing Science 2 Lecture 20 Probability and statistics (2) © J R W Hunter,
Multiple-choice example
Multiple-choice example
S1 Averages and Measures of Dispersion
Chapter 7 Sampling and Sampling Distributions
The 5S numbers game..
Box and Whiskers with Outliers. Outlier…… An extremely high or an extremely low value in the data set when compared with the rest of the values. The IQR.
Biostatistics Unit 5 Samples Needs to be completed. 12/24/13.
St. Edward’s University
1 1 Slide © 2003 South-Western/Thomson Learning TM Slides Prepared by JOHN S. LOUCKS St. Edwards University.
1 1 Slide © 2014 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
Break Time Remaining 10:00.
The basics for simulations
Factoring Quadratics — ax² + bx + c Topic
Box and Whisker Plots.
PP Test Review Sections 6-1 to 6-6
Jeopardy $100 $100 $100 $100 $100 $200 $200 $200 $200 $200 $300 $300
Frequency Tables and Stem-and-Leaf Plots 1-3
Data Distributions Warm Up Lesson Presentation Lesson Quiz
BPS - 5th Ed. Chapter 21 Describing Distributions with Numbers.
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
Introduction Our daily lives often involve a great deal of data, or numbers in context. It is important to understand how data is found, what it means,
Quantitative Analysis (Statistics Week 8)
Adding Up In Chunks.
` Cumulative Frequency How to draw a cumulative frequency graph.
2011 WINNISQUAM COMMUNITY SURVEY YOUTH RISK BEHAVIOR GRADES 9-12 STUDENTS=1021.
Before Between After.
2011 FRANKLIN COMMUNITY SURVEY YOUTH RISK BEHAVIOR GRADES 9-12 STUDENTS=332.
Statistical Inferences Based on Two Samples
© The McGraw-Hill Companies, Inc., Chapter 10 Testing the Difference between Means and Variances.
12-2 Conditional Probability Obj: To be able to find conditional probabilities and use formulas and tree diagrams.
Converting a Fraction to %
Chapter 8 Estimation Understandable Statistics Ninth Edition
Clock will move after 1 minute
Experimental Design and Analysis of Variance
Simple Linear Regression Analysis
Select a time to count down from the clock above
A Data Warehouse Mining Tool Stephen Turner Chris Frala
REPRESENTATION OF DATA.
Aims: To be able to find the smallest & largest values along with the median, quartiles and IQR To be able to draw a box and whisker plot To be able to.
Descriptive Statistics SL
Presentation transcript:

IB Standard level stats Part 2

Statistics Topics left Standard deviation – a recap Cumulative frequency- medians, quartiles IQR, deciles, percentiles and box whisker plots Histograms Random variables- probability distributions, expectation Binomial distribution Normal distribution

This symbol means the total of all the x values The mean is the most widely used average in statistics. It is found by adding up all the values in the data and dividing by how many values there are. Notation: If the data values are , then the mean is This symbol means the total of all the x values This is the mean symbol Note: The mean takes into account every piece of data, so it is affected by outliers in the data. The median is preferred over the mean if the data contains outliers or is skewed.

Mean If data are presented in a frequency table: then the mean is Value Frequency … then the mean is

Mean Example: The table shows the results of a survey into household size. Find the mean size. Household size, x Frequency, f 1 20 2 28 3 25 4 19 5 16 6 x × f 20 56 75 76 80 36 TOTAL 114 343 To find the mean, we add a 3rd column to the table. Mean = 343 ÷ 114 = 3.01

Standard deviation There are three commonly used measures of spread (or dispersion) – the range, the inter-quartile range and the standard deviation. The standard deviation is widely used in statistics to measure spread. It is based on all the values in the data, so it is sensitive to the presence of outliers in the data. The variance is related to the standard deviation: variance = (standard deviation)2 Note: In the MEI S1 syllabus, these quantities are referred to as the mean squared deviation (msd) and the root mean squared deviation (rmsd). This is to distinguish them from the sample variance and the sample standard deviation. The following formulae can be used to find the variance and s.d.

Standard deviation Example: The mid-day temperatures (in ˚C) recorded for one week in June were: 21, 23, 24, 19, 19, 20, 21 First we find the mean: ˚C 21 23 2 4 24 3 9 19 -2 20 -1 1 So variance = 22 ÷ 7 = 3.143 So, s.d. = 1.77 ˚C (3 s.f.) Total: 22

Standard deviation There is an alternative formula which is usually a more convenient way to find the variance: Therefore, and

Standard deviation Example (continued): Looking again at the temperature data for June: 21, 23, 24, 19, 19, 20, 21 We know that ˚C Also, = 3109 So, ˚C Note: Essentially the standard deviation is a measure of how close the values are to the mean value.

Calculating standard deviation from a table When the data is presented in a frequency table, the formula for finding the standard deviation needs to be adjusted slightly: Example: A class of 20 students were asked how many times they exercise in a normal week. Find the mean and the standard deviation. Number of times exercise taken Frequency 5 1 3 2 4

Calculating standard deviation from a table No. of times exercise taken, x Frequency, f 5 1 3 2 4 x × f x2 × f 3 10 20 12 36 8 32 5 25 TOTAL: 20 38 116 The table can be extended to help find the mean and the s.d.

Calculating standard deviation from a table If data is presented in a grouped frequency table, it is only possible to estimate the mean and the standard deviation. This is because the exact data values are not known. An estimate is obtained by using the mid-point of an interval to represent each of the values in that interval. Example: The table shows the annual mileage for the employees of an insurance company. Estimate the mean and standard deviation. Annual mileage, x Frequency 0 ≤ x < 5000 7 5000 ≤ x < 10,000 18 10,000 ≤ x < 15,000 14 15,000 ≤ x < 20,000 4 20,000 ≤ x < 30,000 2

Calculating standard deviation from a table Mileage Frequency, f Mid-point, x f × x f × x2 0 – 5000 6 2500 15000 37,500,000 5000 – 10,000 17 7500 127,500 956,250,000 10,000 – 15,000 14 12,500 175,000 2,187,500,000 15,000 – 20,000 5 17,500 87,500 1,531,250,000 20,000 – 30,000 3 25,000 75,000 1,875,000,000 TOTAL 45 480,000 6,587,500,000 miles miles

Notes about standard deviation Here are some notes to consider about standard deviation. In most distributions, about 67% of the data will lie within 1 standard deviation of the mean, whilst nearly all the data values will lie within 2 standard deviations of the mean. Values that lie more than 2 standard deviations from the mean are sometimes classed as outliers – any such values should be treated carefully. Standard deviation is measured in the same units as the original data. Variance is measured in the same units squared. Most calculators have built-in functions which will find the standard deviation for you. Learn how to use this facility on your calculator.

Examination style question Examination style question: The ages of the people in a cinema queue one Monday afternoon are shown in the stem-and-leaf diagram: Explain why the diagram suggests that the mean and standard deviation can be sensibly used as measures of location and spread respectively. Calculate the mean and the standard deviation of the ages. The mean and the standard deviation of the ages of the people in the queue on Monday evening were 29 and 6.2 respectively. Compare the ages of the people queuing at the cinema in the afternoon with those in the evening.

Examination style question a) The mean and the standard deviation are appropriate, as the distribution of ages is roughly symmetrical and there are no outliers. b) The cinemagoers in the evening had a smaller mean age, meaning that they were, on average, younger than those in the afternoon. The standard deviation for the ages in the evening was also smaller, suggesting that the evening audience were closer together in age.

Combining sets of data Sometimes in examination questions you are asked to pool two sets of data together. Example: Six male and five female students sit an A level examination. The mean marks were 52% and 57% for the males and females respectively. The standard deviations were 14 and 18 respectively. Find the combined mean and the standard deviation for the marks of all 11 students.

Combining sets of data Let be the marks for the 6 male students. Let be the marks of the 5 female students. To find the overall mean, we first need to find the total marks for all 11 students. Therefore So the combined mean is:

Combining sets of data To find the overall standard deviation, we need to find the total of the marks squared for all 11 students. Notice that the formula rearranges to give Therefore, So the combined s.d. is: to 3 s.f.

VARIANCE - you consider how the values are spread about the mean To calculate VARIANCE, δ2, for a POPULATION For a list of data: δ2 = Σ x2 _ μ2 n For grouped data: δ2 = Σ fx2 _ μ2 Σf Remember - μ is the mean of the population As this is measured in terms of x2 then the units would be x2 - a bit strange when comparing with original values So to measure in terms of x we often calculate the STANDARD DEVIATION

STANDARD DEVIATION - the positive square root of the variance Therefore STANDARD DEVIATION, δ, of a POPULATION For a list of data: δ = Σ x2 _ μ2 n For grouped data: δ = Σ fx2 _ μ2 Σf √ √

δ2 = Σ x2 _ μ2 n This is the whole POPULATION δ2 = 4 6 7 5 9 10 8 For a list of data: δ2 = Σ x2 _ μ2 n Σ x2 = Σ x = n = So μ = Σ x n δ2 =

δ2 = Σ fx2 _ μ2 Σf Mid pt(x) So μ = 8.93 ∑ fx2 = 17560 Visits f 0 – 4 32 5 – 9 71 10 – 14 20 15 – 19 14 20 – 24 10 25 - 29 3 Total 150 Mid pt(x) 2 7 12 17 22 27 ∑ fx = 1340 ∑ f = 150 So μ = 8.93 ∑ fx2 = 17560 δ2 = Σ fx2 _ μ2 Σf δ 2 = 17560 _ 8.93 2 150 = 37.32 δ = 6.11

Quartiles and box plots A set of data can be summarised using 5 key statistics: the median value (denoted Q2) – this is the middle number once the data has been written in order. If there are n numbers in order, the median lies in position ½ (n + 1). the lower quartile (Q1) – this value lies one quarter of the way through the ordered data; the upper quartile (Q3) – this lies three quarters of the way through the distribution. the smallest value and the largest value.

Quartiles and box plots These five numbers can be shown on a simple diagram known as a box-and-whisker plot (or box plot): Smallest value Q1 Q2 Q3 Largest value Note: The box width is the inter-quartile range. Inter-quartile range = Q3 – Q1 The inter-quartile range is a measure of spread. The semi-inter-quartile range = ½ (Q3 – Q1).

Quartiles and box plots Example: The (ordered) ages of 15 brides marrying at a registry office one month in 1991 were: 18, 20, 20, 22, 23, 23, 25, 26, 29, 30, 32, 34, 38, 44, 53 The median is the ½(15 + 1) = 8th number. So, Q2 = 26. The lower quartile is the median of the numbers below Q2, So, Q1 = 22 The upper quartile is the median of the numbers above Q2, So, Q3 = 34. The smallest and largest numbers are 18 and 53.

Quartiles and box plots The (ordered) ages of 12 brides marrying at the registry office in the same month in 2005 were: 21, 24, 25, 25, 27, 28, 31, 34, 37, 43, 47, 61 Q2 is half-way between the 6th and 7th numbers: Q2 = 29.5. Q1 is the median of the smallest 6 numbers: Q1 = 25 Q3 is the median of the highest 6 numbers: Q3 = 40. The smallest and highest numbers are 21 and 61.

Quartiles and box plots A box plot to compare the ages of brides in 1991 and 2005 It is important that the two box plots are drawn on the same scale. We can use the box plots to compare the two distributions. The median values show that the brides in 1991 were generally younger than in 2005. The inter-quartile range was larger in 2005 meaning that that there was greater variation in the ages of brides in 2005. Note: When asked to compare data, always write your comparisons in the context of the question.

Cumulative frequency diagrams A cumulative frequency diagram is useful for finding the median and the quartiles from data given in a grouped frequency table. There are some important points to remember: the cumulative frequencies should be plotted above the upper class boundaries of the intervals – don’t use the mid-point. points can be joined by a straight line (for a cumulative frequency polygon) or by a curve (for a cumulative frequency curve). A cumulative frequency polygon

Cumulative frequency diagrams Example: A survey was carried out into the number of hours a group of employees worked. Hours worked Frequency 1 – 9 3 10 – 19 5 20 – 29 30 – 39 35 40 – 49 65 50 – 59 27 The upper class boundary (u.c.b.) of the first interval is actually 9.5 (as it contains all values from 0.5 up to 9.5). The table below shows the cumulative frequencies: u.c.b 9.5 19.5 29.5 39.5 49.5 59.5 c.f. 3 8 13 48 113 140

Cumulative frequency diagrams As well as plotting the points given in the previous table, we also plot the point (0.5, 0) – no one worked less than 0.5 hours. We can estimate the median by drawing a line across at one half of the total frequency, i.e. at 70. We see that Q2 ≈ 43. For the lower quartile, a line is drawn at 0.25 × 140 = 35. This gives Q1 ≈ 36. Drawing a line at 0.75 × 140 = 105, we see that Q3 ≈ 48. You don’t need to add 1 before halving the frequency when the data is cumulative So the inter-quartile range is 48 – 36 = 12.

Cumulative frequency diagrams Percentiles and deciles Instead of looking at quartiles we can also split the data up in terms of tenths (deciles) and hundredths (percentiles) We can estimate the 3rd decile by drawing a line across at 3/10 of the total frequency, i.e. at 42. We see that D3 ≈ . For the 7th decile, a line is drawn at 0.7 × 140 = 98. This gives D7 ≈ . .

Cumulative frequency diagrams Examination style question: The cumulative frequency diagram shows the marks achieved by 220 students in a maths examination. a) Estimate the median and the 95th percentile. b) Where should the pass mark of the examination be set if the college wishes 70% of candidates to pass?

Cumulative frequency diagrams a) The median will be approximately the 220 ÷ 2 = 110th value. This is about 61%. The 95th percentile lies 95% of the way through the data. A line is drawn across at 0.95 × 220 = 209. This gives a mark of 84%.

Cumulative frequency diagrams The college wants 70% of 220 = 154 students to pass. Therefore 66 students will get a mark below the pass mark. Drawing a line across at 66 gives a pass mark of about 55%.

Histograms A histogram can be used to display grouped continuous data. There are some important points to remember: The area of each bar in a histogram should be in proportion to the frequency. When the class widths are not all equal, proportional areas can be achieved by plotting the frequency density on the vertical axis, where The class width of an interval is calculated as the difference between the smallest and largest values that could occur in that interval. Upper class boundary minus lower class boundary

class widths are not all Histograms Example: 50 overweight adults tested a new diet. The table shows the amount of weight they lost (in kg) in 6 months. Notice that the class widths are not all equal – frequency densities need to be used. Weight loss (kg) Frequency 0 – 4 12 4 – 6 13 6 – 8 11 8 – 10 7 10 – 15 5 15 – 25 2 Class width Frequency density 4 3.0 2 6.5 5.5 3.5 5 1 10 0.2

Histogram to show weight loss Histograms Weight loss (kg) 0 – 4 4 – 6 6 – 8 8 – 10 10 – 15 15 – 25 Frequency density 3.0 6.5 5.5 3.5 1 0.2 Histogram to show weight loss When you draw a histogram, remember to: plot the frequency densities on the vertical axis; choose sensible scales for your axes; label both your axes; give the histogram a title.

Histogram to show weight loss Histograms Histogram to show weight loss We can use the histogram to estimate, for example, the number of people who lost at least 12kg: There were 2 people who lost between 15 and 25 kg. To estimate how many people lost between 12 and 15 kg, times this new class width by the frequency density for that class: 3 × 1 = 3. That means that about 5 people lost at least 12 kg.

Histograms Example: An ornithologist measures the wing spans (to the nearest mm) of 40 adult robins. Her results are shown below. The measurements are to the nearest millimetre. The first interval contains all wing spans between 194.5 and 204.5 mm The first interval actually contains Wing span (mm) Frequency 195 - 204 8 205 – 209 9 210 – 214 11 215 – 224 225 or over 3 Actual interval Freq. density 194.5 – 204.5 0.8 204.5 – 209.5 1.8 209.5 – 214.5 2.2 214.5 – 224.5 0.9 224.5 – 244.5 0.15 The last interval is open-ended. We assume that its width is twice that of the previous interval.

Histograms Example (continued) Interval 194.5 – 204.5 204.5 – 209.5 209.5 – 214.5 214.5 – 224.5 224.5 – 244.5 Freq. density 0.8 1.8 2.2 0.9 0.15 A histogram showing the wing spans of robins Freq. density Wing span (mm)