# S1: Chapter 4 Representation of Data

## Presentation on theme: "S1: Chapter 4 Representation of Data"β Presentation transcript:

S1: Chapter 4 Representation of Data

Stem and Leaf recap Put the following measurements into a stem and leaf diagram: ? 1 2 3 4 5 4 (1) (4) (9) (12) Key: 2 | 1 means 2.1 It may be quicker to first draw the stem and leaf without the ordering, before then ordering each row. Now find: ? ππππ=4.7 ? πΏππ€ππ ππ’πππ‘πππ=3.6 πππππ ππ’πππ‘πππ=4.7 ? ππππππ=4.05 ?

Back-to-Back Stem and Leaf recap
Girls Boys 68 ? Girls Boys 4 5 6 7 8 9 6 1 The data above shows the pulse rate of boys and girls in a school. Comment on the results. The back-to-back stem and leaf diagram shows that boyβs pulse rate tends to be lower than girlsβ. Key: 0|4|6 Means 40 for girls and 46 for boys. ?

Box Plot recap Box Plots allow us to visually represent the distribution of the data. Minimum Lower Quartile Median Upper Quartile Maximum 3 15 17 22 27 Sketch Sketch Sketch Sketch Sketch range IQR How is the IQR represented in this diagram? How is the range represented in this diagram? Sketch Sketch

Box Plots recap Sketch a box plot to represent the given weights of cats: 5lb, 6lb, 7.5lb, 8lb, 8lb, 9lb, 12lb, 14lb, 20lb Minimum Maximum Median Lower Quartile Upper Quartile 5 20 8 7.5 12 ? ? ? ? ? Sketch

Outliers An outlier is: an extreme value. ? Outliers beyond this point More specifically, itβs generally when weβre 1.5 IQRs beyond the lower and upper quartiles. (But you will be told in the exam if the rule differs from this)

Outliers We can display outliers as crosses on a box plot.
But if we have one, how do we display the marks for the minimum/maximum? Maximum point is not an outlier, so remains unchanged. But we have points that are outliers here. This mark becomes the βoutlier boundaryβ, rather than the minimum.

Examples ? ? Smallest values Largest values Lower Quartile Median
Upper Quartile 0, 3 21, 27 8 10 14 ? Smallest values Largest values Lower Quartile Median Upper Quartile 3, 7 20, 25, 26 12 13 16 ?

Exercises Pages 58 Exercise 4B Q2 Page 59 Exercise 4C Q1, 2

Comparing Box Plots Box Plot comparing house prices of Croydon and Kingston-upon-Thames. Croydon Kingston Β£100k Β£150k Β£200k Β£250k Β£300k Β£350k Β£400k Β£450k βCompare the prices of houses in Croydon with those in Kingstonβ. (2 marks) For 1 mark, one of: In interquartile range of house prices in Kingston is greater than Croydon. The range of house prices in Kingston is greater than Croydon. i.e. Something spread related. For 1 mark: The median house price in Kingston was greater than that in Croydon. i.e. Compare some measure of location (could be minimum, lower quartile, etc.) ? ?

Bar Charts vs Histograms
For continuous data. Data divided into (potentially uneven) intervals. [GCSE definition] Frequency given by area of bars.* No gaps between bars. Bar Charts For discrete data. Frequency given by height of bars. ? Use this as a reason whenever youβre asked to justify use of a histogram. ? ? ? Frequency Density Frequency 1.0m m m m m Height Shoe Size * Not actually true. Weβll correct this in a sec.

Bar Charts vs Histograms
Still using the βincorrectβ GCSE formula: Weight (w kg) Frequency Frequency Density 0 < w β€ 10 40 4 10 < w β€ 15 6 1.2 15 < w β€ 35 52 2.6 35 < w β€ 45 10 1 ? ? Freq ? F.D. Width ? Frequency = 40 ? 5 4 3 2 1 Frequency = 15 ? Frequency = 25 ? Frequency Density Frequency = 30 ? Height (m)

i.e. πΉππππ’ππππ¦=πΓπ΄πππ ππ πππ
Area = frequency? The area of each bar in fact isnβt necessarily equal to the frequency. Actually: π­ππππππππβπ¨πππ ππ π©ππ i.e. πΉππππ’ππππ¦=πΓπ΄πππ ππ πππ Similarly: π­ππππππππ πππππππβ π­ππππππππ πͺππππ πΎππππ However, we often let π=1, so that that the β becomes an =, as we were allowed to assume at GCSE.

The key to almost every histogram questionβ¦
β¦This diagram! Γπ Area Frequency For a given histogram, thereβs some scaling to get from an area (whether the total area of the area of a particular bar) to the corresponding frequency. Once youβve worked out this scaling, any subsequent areas you calculate can be converted to frequencies.

Area = frequency? There were 60 runners in a 100m race. The following histogram represents their times. Determine the number of runners with times above 14s. 5 4 3 2 1 We first find what area represents the total frequency. Total area = = 24 ? Frequency Density Area Freq Γ Then use this scaling along with the desired area. Area=4Γ1.5 9 12 18 ? Area Freq Γ Time (s)

Frequency Density = Frequency Γ· Class width?
Weight (to nearest kg) Frequency 1-2 4 3-6 3 7-9 Note the gaps! We can use the complete set of information in the first row combined with the bar to again work out the correct βscalingβ. ? ? 5 4 3 2 1 Frequency Density Time (s)

May 2012 A policeman records the speed of the traffic on a busy road with a 30 mph speed limit. He records the speeds of a sample of 450 cars. The histogram in Figure 2 represents the results. (a) Calculate the number of cars that were exceeding the speed limit by at least 5 mph in the sample. (4 marks) We can make the frequency density scale what we like. M1 A1: Determine what one small square or one large square is worth. 7 6 5 4 3 2 1 (i.e. work out ππππβππππ scaling) ? Area Freq Γ M1 A1: Use this to find number of cars travelling >35mph. ? Area Freq Γ

May 2012 A policeman records the speed of the traffic on a busy road with a 30 mph speed limit. He records the speeds of a sample of 450 cars. The histogram in Figure 2 represents the results. (b) Estimate the value of the mean speed of the cars in the sample. (3 marks) M1 M1: Use histogram to construct sum of speeds. ? 30Γ Γ25+β¦ 450 A1 Correct value ? =28.8 Bro Tip: Whenever you are asked to calculate mean, median or quartiles from a histogram, form a grouped frequency table. Use your scaling factor to work out the frequency of each bar.

May 2012 Speed π π 10-15 12.5 30 20-30 15 240 30-35 32.5 90 35-40 37.5 40-45 42.5 60

Jan 2012 Bro Tip: Be careful that you use the correct class widths! Be sure to ask first what they notice about the ranges in the table (i.e. gaps!) 14 ? 5 ? ? = 69

Jan 2008 ? M1 ? A1 ? B1 ? M1 ? A1 = 12 runners

? ? Answer: Distance is continuous
Note that gaps in the class intervals! 4 / 5 = 0.8 19 / 5 = 3.8 53 / 10 = 5.3 ...

Jun 2007 ? 35 ? 15 (5 x 5) + 15 = 40 ?

Skew Skew gives a measure of whether the values are more spread out above the median or below the median. mode mode median median mean mean Frequency Frequency Height Weight Sketch Mode Sketch Median Sketch Mean Sketch Mode Sketch Median Sketch Mean We say this distribution has positive skew. ? We say this distribution has negative skew. ? (To remember, think that the βtailβ points in the positive direction)

Skew Remember, think what direction the βtailβ is likely to point. Distribution Skew ? Salaries on the UK. High salaries drag mean up. So positive skew. Mean > Median ? ? IQ A symmetrical distribution, i.e. no skew. Mean = Median ? ? Heights of people in the UK Will probably be a nice βbell curveβ. i.e. No skew. Mean = Median The way to remember which way the mean and median go around: the mean is βdragged upβ by a tail in the positive direction, so mean > median for positive skew. Picture salaries and youβll never forget! ? ? Likely to be people who retire significantly before the median age, but not many who retire significantly after. So negative skew. Mean < Median Age of retirement ?

Exam Question Negative skew ? because mean < median ?
In the previous parts of a question youβve calculated that the mean mark of students in a test was ππππ=55.48 and ππππππ=56. (d) Describe the skewness of the marks of the students, giving a reason for your answer. (2) Negative skew 1st mark ? because mean < median 2nd mark ?

Skew Positive skew ? Negative skew ? No skew ?
Given the quartiles and median, how would you work out whether the distribution had positive or negative skew?

Exam Question ? ? π 3 β π 2 > π 2 β π 1 Therefore positive skew.
1st mark ? π 3 β π 2 > π 2 β π 1 Therefore positive skew. 2nd mark ?

Calculating Skew 3(mean β median) standard deviation
One measure of skew can be calculated using the following formula: (Important Note: this will be given to you in the exam if required) 3(mean β median) standard deviation When mean > median, mean < median, and mean = median, we can see this gives us a positive value, negative value, and 0 respectively, as expected. Find the skew of the following teachersβ annual salaries: Β£3 Β£ Β£4 Β£7 Β£100 Mean = Β£23.50 ? Median = Β£4 ? Standard Deviation = Β£38.28 ? Skew = 1.53 ?

S1: Chapter 4 Revision!

Revision Stem and leaf diagrams: Can you construct one, and write the appropriate key? Can you calculate mode, mean, median and quartiles? Can you assess skewness by using these above values? Back-to-back stem and leaf diagrams: Can you construct one with appropriate key? Can you compare the data on each side? 1 2 3 4 5 4 (1) (4) (9) (12) Key: 2 | 1 means 2.1 ? ? ? ππππ=4.7 πΏππ€ππ ππ’πππ‘πππ=3.6 πππππ ππ’πππ‘πππ=4.7 ? ππππππ=4.05 ? Type of skew:πππ ππ‘ππ£π Reason: π 3 β π 2 > π 2 β π 1 ? ?

Revision Girls Boys Notice the values go outwards from the centre. 4 5 6 7 8 9 6 1 Key: 0|4|6 Means 40 for girls and 46 for boys. ? ? The data above shows the pulse rate of boys and girls in a school. Comment on the results. Boyβs pulse rate tends to be lower than girlsβ. ?

Revision Histograms Can you:
Appreciate that the frequency density scale doesnβt matter. This is why frequency is only proportional to area, and not equal to it. You often need to identify the scaling π¨πππ Γπ π­ππππππππ. You might only be given the total frequency (in which case you need to find the total area of the histogram to find π). But if you know the frequency associated with a particular bar, just find the area of that single bar. If you donβt care about the scaling, then πΉππππ’ππππ¦ π·πππ ππ‘π¦= πΉππππ’ππππ¦ πΆπππ π  ππππ‘β Be incredibly careful about class widths (i.e. widths of boxes). If the class interval in the frequency table was 20β25 with gaps, then youβd draw 19.5β25.5 on the histogram, and use 6 as the width of the box. If you want to find the quartiles/median/mean, you need to first construct a grouped frequency table using the histogram. When asked to find the number of people with values in a certain range (e.g. with times between 10 and 15s) and it crosses multiple ranges/bars, itβs easier to use the frequency table youβve constructed from the histogram. Use linear interpolation where necessary.

Revision ? M1 ? A1 ? B1 ? M1 ? A1 = 12 runners

Revision Given that an outlier is a value 1.5ΓπΌππ outside the lower and upper quartilesβ¦ Smallest values Largest values Lower Quartile Median Upper Quartile 0, 3 21, 27 8 10 14 ? Smallest values Largest values Lower Quartile Median Upper Quartile 3, 7 20, 25, 26 12 13 16 ?

ππππ€= 3 ππππβππππππ π π‘ππππππ πππ£πππ‘πππ
Revision Skewness You can determine skewness in three ways: Comparing quartiles: When π 3 β π 2 > π 2 β π 1 , the width of the right box in the box plot is wider, so itβs positive skew. If a box plot is drawn, it should be immediately obvious! Comparing mean/median: When ππππ>ππππππ, large values have dragged up the mean, so thereβs a tail in the positive direction, and thus the skew is positive. Looking at the shape of the distribution. If thereβs a βpositive tailβ, the skew is positive. When asked to justify your answer for skewness, youβre expected to put either something like β π 3 β π 2 > π 2 β π 1 β or "ππππ>ππππππβ. You will always be given a formula if you have to calculate a value for skew. But for all formulae, 0 means no skew (i.e. a βsymmetric distributionβ), >0 means positive skew and <0 means negative skew. Find the skew of the following teachersβ annual salaries: Β£3 Β£ Β£4 Β£7 Β£100 Mean = Β£23.50 ? Median = Β£4 ? Standard Deviation = Β£38.28 ? ππππ€= 3 ππππβππππππ π π‘ππππππ πππ£πππ‘πππ Skew = 1.53 ?