Post on 12-Jan-2016
S1: Chapters 2-3Data: Location and SpreadDr J Frost (jfrost@tiffin.kingston.sch.uk)
Last modified: 5th September 2014
Types of variables
π₯In statistics, we can use a variable to represent some quantity, e.g. height, age.This could be qualitative (e.g. favourite colour) or quantitative (i.e. numerical).
Variables are often used differently in statistics than they are in algebra.
In statistics, this would mean:βSum over the values of the variable weβre collected (i.e. our data).β
2 types of variable:
Discrete variables
Has specific values.e.g. Shoe size, colour, website visits in an hour period, number of siblings, β¦
Continuous variables
Can have any value in a range.e.g. Height, distance, weight, time, wavelength, β¦
? ?
5th ?
Quartiles for large numbers of items
What item do we use for each quartile when
LQ Median UQ
31 8th 16th 24th
19 10th 15th
6 3rd and 4th 2nd 5th
14 7th and 8th 4th 11th
? ? ?
? ?
? ? ?
? ? ?
Under what circumstances do we not round?
When we have a grouped frequency table involving a continuous variable.?
Rule: Find or or of . Then:β’ If not whole, round up.β’ If whole, use this item and one after.
3
2.51.5 3.5
1.5 2 4.5
2 3.5 5
21? ? ?
? ? ?
? ? ?
? ? ?
Quickfire Quartiles
1, 2, 3
LQ Median UQ
1, 2, 3, 4
1, 2, 3, 4, 5
1, 2, 3, 4, 5, 6
Notation for quartiles/percentiles
Lower Quartile: π1
Median: π2
Upper Quartile: π3
57th Percentile: π57
?
?
?
?
Grouped Frequency Data Recap
Estimate of Mean:
What does the variable represent?
Why the βbarβ (horizontal line) over the ?
Why is our mean just an estimate?
The midpoints of each interval. Theyβre effectively a sensible single value used to represent each interval.
Itβs the sample mean of . It indicates that our mean is just based on a sample, rather than the whole population.
Because we donβt know the exact heights within each group. Grouping data loses information.
? ? ?
?
?
?
Height of bear (in metres) Frequency
This type of data is continuous.?
Grouped Frequency Data Recap
Height of bear (in metres) Frequency
Modal class interval:
Median class interval:
0.5β€h<1.2(βmodalβ means βmostβ)
0.5β€h<1.2There are 40 items, so determine where 20th item is.
?
?
Using STATS mode on your calculatorHeight of bear (in metres) Frequency
1. Go to SETUP (SHIFT MODE). Press down for the second page of menu, and select STAT. You want Frequency βONβ. (Note that you wonβt have to do this again in future)
2. MODE STAT3. Select 1-VAR (as there is only β1 variableβ here β frequency is not a variable!)4. Enter your x values, pressing = after each one. Navigate to the top of your table to
enter your frequencies.5. Press AC to βbankβ your table.6. SHIFT 1 for βSTATβ. Select each βSumβ or βVarβ. Once youβve selected a statistic to use,
itβll appear in your calculation. Once you want to calculate the value, press =. Try entering . (For this example: 1.16875)
7. MODE COMP to go back to normal computation mode.
Warning: You still need to show working in the exam.
Work out the mean for this example first using proper workings.
Important note: Confusingly, your calculator means when you enter . And , i.e. itβs interpreting the data as if it was listed out with duplicated.
Weight of cat to nearest kg Frequency
Whatβs different about the intervals here?
10β12
There are GAPS between intervals!What interval does this actually represent?
9 .5β12.5Lower class boundary Upper class boundary
Class width = 3
?
?
Identify the class width
Distance travelled (in m) β¦
Class width = 10?
Time taken (in seconds) β¦
Weight in kg β¦ Speed (in mph) β¦
Lower class boundary = 200?Class width = 3 ?
Lower class boundary = 3.5?
Class width = 2 ?Lower class boundary = 29?
Class width = 10?Lower class boundary = 30.5?
InterpolationS2 β Chapters 2/3
RECAP: Quartiles of Frequency Table
Age of squirrel Frequency Cumulative Freq
1 5 5
2 8 13
3 11 24
4 5 29
?29 squirrels. So look at 8th squirrel.Occurs within second group, so
so use 15th squirrel.Occurs in third group, so
so use 22nd squirrel.Still in third group, so
?
?
?
?
?
Estimating the median
Answer = 13.5 + 8 = 21.5?
GCSE Question
Estimating the medianAt GCSE, you were only required to give the median class interval when dealing with grouped data. Now, we want to estimate a value within that class interval.
Weight of cat to nearest kg Frequency
Median ?
9 181115.5kg ? 18.5kg
Frequency up until this interval
Frequency at end of this interval
Item number weβre interested in.
Weight at start of interval.
Weight at end of interval.
? ? ???
(Why not the 11.5 item?)
Estimating other values
Weight of cat to nearest kg Frequency
LQ ?
UQ ?
34th Percentile ?
You should have a sheet in front of you
years1a
1b years
1c years
2a cm
2b cm
2c cm
1d Interquartile Range: years
?
?
?
?
?
?
?
Exercises
Page 34 Exercise 3A Q4, 5, 6
Page 36 Exercise 3BQ1, 3, 5
Variance and Standard DeviationS2 β Chapters 2/3
What is variance?
πΌπ
πΉππππ’ππππ¦
110πΌπ
πΉππππ’ππππ¦
110
Distribution of IQs in L6Ms4 Distribution of IQs in L6Ms5
Here are the distribution of IQs in two classes. Whatβs the same, and whatβs different?
VarianceVariance is how spread out data is.Variance, by definition, is the average squared distance from the mean.
π₯βπ₯()2ππ 2=ΒΏ
Distance from meanβ¦
Squared distance from meanβ¦
Ξ£
Average squared distance from meanβ¦
Simpler formula for variance
βThe mean of the squares minus the square of the mean (βmsmsmβ)β
Variance
ππππππππ=Ξ£ π₯2
πβ(Ξ£ π₯π )
2
? ?
Standard Deviation
π=βππππππππThe standard deviation can βroughlyβ be thought of as the average distance from the mean.
StarterCalculate the variance and standard deviation of the following heights:
2cm 3cm 3cm 5cm 7cm
Variance cm
Standard Deviation cm
?
?
PracticeFind the variance and standard deviation of the following sets of data.
24 6Variance = Standard Deviation =
12345Variance = Standard Deviation =
? ?
??
Extending to frequency/grouped frequency tables
We can just mull over our mnemonic again:
Variance: βThe mean of the squares minus the square of the means (βmsmsmβ)β
ππππππππ=Ξ£ π π₯2
Ξ£ πβ( Ξ£ ππ₯Ξ£ π )
2
? ?
Bro Tip: Itβs better to try and memorise the mnemonic than the formula itself β youβll understand whatβs going on better, and the mnemonic will be applicable when we come onto random variables in Chapter 8.
Example
Height of bear (in metres) Frequency
Ξ£ ππ₯=46.75 Ξ£ π π₯2=67.81 Ξ£ π=40
ππππππππ=67.8140
β( 46.7540 )2
=0.33
? ??
?
Sometimes weβre helpfully given summed data:
Shoe Size Frequency
Ξ£ ππ‘=252 Ξ£ π π‘ 2=2914 Ξ£ π=22
ππππππππ=291422
β( 25222 )2
=1.25?
Exercises
Page 40 Exercise 3CQ1, 2, 4, 6
Page 44 Exercise 3D Q1, 4, 5
Recap
?
?
?
?
CodingS2 β Chapters 2/3
Starter
What do you reckon is the mean height of people in this room?
Now, stand on your chair, as per the instructions below.
INSTRUCTIONAL VIDEO
Is there an easy way to recalculate the mean based on your new heights? And the variance of your heights?
Starter
Suppose now after a bout of βstretching you to your limitsβ, youβre now all 3 times your original height.
What do you think happens to the standard deviation of your heights?
It becomes 3 times larger (i.e. your heights are 3 times as spread out!)?
What do you think happens to the variance of your heights?
It becomes 9 times larger ?
(Can you prove the latter using the formula for variance?)
The point of coding
Cost of diamond ring (Β£)Β£1010 Β£1020 Β£1030 Β£1040 Β£1050
π¦=π₯β100010
Standard deviation of ():thereforeβ¦
Standard deviation of ():
?
?
We βcodeβ our variable using the following:
New values :
Β£1 Β£2 Β£3 Β£4 Β£5?
Finding the new mean/variance
Old mean Old variance Coding New mean New variance
364 π¦=π₯β20164364π¦=2 π₯7216354 π¦=3 π₯β208536406 π¦=
π₯22032
1127 π¦=π₯+10373
300125π¦=π₯β1005 405
? ?
? ?
? ?
? ?
? ?
? ?
Exercises
Page 26 Exercise 2E Q3, 4
Page 47 Exercise 3EQ2, 3, 5, 7
Chapters 2-3 Summary
I have a list of 30 heights in the class. What item do I use for:
β’ ? 8th β’ ? Between 15th and 16th β’ ? 23rd
For the following grouped frequency table, calculate:Height of bear (in metres) Frequency
h=(0.25Γ4 )+ (0.85Γ20 )+β¦
40= 46.75
40=1.17ππ‘π3 π πa) The estimate mean:
b) The estimate median: 0.5+( 1620 Γ0.7 )=1.06πc) The estimate variance:(youβre given ) π 2=67.8125
40β( 46.7540 )
2
=0.329 π‘π3 π π
?
?
?
???
Chapters 2-3 SummaryWhat is the standard deviation of the following lengths: 1cm, 2cm, 3cm
The mean of a variable is 11 and the variance .The variable is coded using . What is:
a) The mean of ?b) The variance of ?
A variable is coded using .For this new variable , the mean is 15 and the standard deviation 8.What is:
c) The mean of the original data?d) The standard deviation of the original data?
?
??
??