Cookies

We use cookies to improve your experience on our website By continuing to browse the site you are agreeing to our use of cookies.
Our privacy policy

Save My Exams Logo
  • GCSE
  • IGCSE
  • AS
  • A Level
  • O Level
  • Pre U
  • IB
  • Login
  •  
MathsBiologyChemistryPhysicsCombined ScienceEnglish LanguageOther Subjects
GCSE > Maths
Edexcel Topic QuestionsRevision NotesPast PapersPast Papers (old spec)
AQA Topic QuestionsRevision NotesPast Papers
OCR Topic QuestionsRevision NotesPast Papers
GCSE > Biology
Edexcel Topic QuestionsRevision NotesPast Papers
AQA Topic QuestionsRevision NotesPast Papers
OCR Gateway Topic QuestionsRevision NotesPast Papers
CCEA Topic QuestionsPast Papers
GCSE > Chemistry
Edexcel Topic QuestionsRevision NotesPast Papers
AQA Topic QuestionsRevision NotesPast Papers
OCR Gateway Topic QuestionsRevision NotesPast Papers
CCEA Topic QuestionsPast Papers
GCSE > Physics
Edexcel Topic QuestionsRevision NotesPast Papers
AQA Topic QuestionsRevision NotesPast Papers
OCR Gateway Topic QuestionsRevision NotesPast Papers
CCEA Topic QuestionsPast Papers
GCSE > Combined Science
Edexcel Combined: Biology Revision NotesPast Papers
Edexcel Combined: Chemistry Revision NotesPast Papers
Edexcel Combined: Physics Revision NotesPast Papers
AQA Combined: Biology Topic QuestionsRevision NotesPast Papers
AQA Combined: Chemistry Topic QuestionsRevision NotesPast Papers
AQA Combined: Physics Topic QuestionsRevision NotesPast Papers
OCR Gateway Combined: Biology Topic QuestionsRevision Notes
GCSE > English Language
AQA Revision NotesPractice PapersPast Papers
Edexcel Past Papers
OCR Past Papers
GCSE > Other Subjects
AQA English LiteratureBusiness StudiesComputer ScienceEconomicsGeographyHistoryPsychologySociology
Edexcel English LiteratureBusiness StudiesComputer ScienceGeographyHistoryPsychology
OCR English LiteratureBusiness StudiesComputer ScienceEconomicsPsychology
OCR Gateway GeographyHistory
MathsBiologyChemistryPhysicsDouble ScienceEnglish LanguageOther Subjects
IGCSE > Maths
Edexcel Topic QuestionsRevision NotesPast PapersBronze-Silver-Gold Questions
CIE (Extended) Topic QuestionsRevision NotesPast Papers
CIE (Core) Topic QuestionsPast Papers
IGCSE > Biology
Edexcel Topic QuestionsRevision NotesPast Papers
CIE Topic QuestionsRevision NotesPast Papers
IGCSE > Chemistry
Edexcel Topic QuestionsRevision NotesPast Papers
CIE Topic QuestionsRevision NotesPast Papers
IGCSE > Physics
Edexcel Topic QuestionsRevision NotesPast Papers
CIE Topic QuestionsRevision NotesPast Papers
IGCSE > Double Science
Edexcel Double: Biology Topic QuestionsRevision NotesPast Papers
Edexcel Double: Chemistry Topic QuestionsRevision NotesPast Papers
Edexcel Double: Physics Topic QuestionsRevision NotesPast Papers
IGCSE > English Language
CIE Revision NotesPractice PapersPast Papers
Edexcel Past Papers
IGCSE > Other Subjects
CIE English LiteratureBusinessComputer ScienceEconomicsGeographyHistorySociology
Edexcel English LiteratureBusinessComputer ScienceGeographyHistory
MathsBiologyChemistryPhysicsEnglish LanguageOther Subjects
AS > Maths
Edexcel Pure MathsMechanicsStatistics
AQA Pure MathsMechanicsStatistics
OCR Pure MathsMechanicsStatistics
CIE Pure 1Pure 2MechanicsProbability & Statistics 1
Edexcel IAS Pure 1Pure 2MechanicsStatistics
AS > Biology
AQA Topic QuestionsRevision NotesPast Papers
OCR Revision NotesPast Papers
CIE 2019-2021 Topic QuestionsRevision NotesPast Papers
CIE 2022-2024 Topic QuestionsRevision NotesPast Papers
Edexcel IAL Revision Notes
AS > Chemistry
Edexcel Revision Notes
AQA Topic QuestionsRevision NotesPast Papers
CIE 2019-2021 Topic QuestionsRevision NotesPast Papers
CIE 2022-2024 Topic QuestionsRevision NotesPast Papers
Edexcel IAL Revision Notes
AS > Physics
Edexcel Revision Notes
AQA Topic QuestionsRevision NotesPast Papers
OCR Revision NotesPast Papers
CIE 2019-2021 Topic QuestionsRevision NotesPast Papers
CIE 2022-2024 Topic QuestionsRevision NotesPast Papers
Edexcel IAL Revision Notes
AS > English Language
AQA Past Papers
Edexcel Past Papers
OCR Past Papers
AS > Other Subjects
AQA Business StudiesComputer ScienceEconomicsEnglish LiteratureGeographyHistoryPsychologySociology
Edexcel Business StudiesEconomicsEnglish LiteratureGeographyHistoryPsychology
OCR Business StudiesComputer ScienceEconomicsEnglish LiteratureGeographyHistoryPsychologySociology
MathsBiologyChemistryPhysicsEnglish LanguageOther Subjects
A Level > Maths
Edexcel Pure MathsMechanicsStatistics
AQA Pure MathsMechanicsStatistics
OCR Pure MathsMechanicsStatistics
CIE Pure 1Pure 3MechanicsProbability & Statistics 1Probability & Statistics 2
Edexcel IAL Pure 1Pure 2Pure 3Pure 4Mechanics 1Mechanics 2Statistics 1Statistics 2
A Level > Biology
Edexcel Topic QuestionsPast Papers
Edexcel A (SNAB) Revision Notes
AQA Topic QuestionsRevision NotesPast Papers
OCR Topic QuestionsRevision NotesPast PapersGold Questions
CIE 2019-2021 Topic QuestionsRevision NotesPast Papers
CIE 2022-2024 Topic QuestionsRevision NotesPast Papers
Edexcel IAL Topic QuestionsRevision NotesPast Papers
A Level > Chemistry
Edexcel Topic QuestionsRevision NotesPast Papers
AQA Topic QuestionsRevision NotesPast Papers
OCR Topic QuestionsRevision NotesPast PapersGold Questions
CIE 2019-2021 Topic QuestionsRevision NotesPast Papers
CIE 2022-2024 Topic QuestionsRevision NotesPast Papers
Edexcel IAL Topic QuestionsRevision NotesPast Papers
A Level > Physics
Edexcel Topic QuestionsRevision NotesPast Papers
AQA Topic QuestionsRevision NotesPast Papers
OCR Topic QuestionsRevision NotesPast Papers
CIE 2019-2021 Topic QuestionsRevision NotesPast Papers
CIE 2022-2024 Topic QuestionsRevision NotesPast Papers
Edexcel IAL Topic QuestionsRevision NotesPast Papers
A Level > English Language
AQA Past Papers
CIE Past Papers
Edexcel Past Papers
OCR Past Papers
Edexcel IAL Past Papers
A Level > Other Subjects
AQA Business StudiesComputer ScienceEconomicsEnglish LiteratureGeographyHistoryPsychologySociology
CIE BusinessComputer ScienceEconomicsEnglish LiteratureGeographyPsychologySociology
Edexcel Business StudiesEconomicsEnglish LiteratureGeographyHistoryPsychology
OCR Business StudiesComputer ScienceEconomicsEnglish LiteratureGeographyHistoryPsychologySociology
Edexcel IAL English LiteratureGeographyPsychology
CIE IAL History
BiologyChemistryPhysics
O Level > Biology
CIE Topic QuestionsPast Papers
O Level > Chemistry
CIE Topic QuestionsPast Papers
O Level > Physics
CIE Topic QuestionsPast Papers
MathsBiologyChemistryPhysics
Pre U > Maths
CIE Topic QuestionsPast Papers
Pre U > Biology
CIE Topic QuestionsPast Papers
Pre U > Chemistry
CIE Topic QuestionsPast Papers
Pre U > Physics
CIE Topic QuestionsPast Papers
MathsBiologyChemistryPhysics
IB > Maths
Maths: AA HL Topic QuestionsRevision Notes
Maths: AI HL Topic QuestionsRevision Notes
Maths: AA SL Topic QuestionsRevision NotesPractice Papers
Maths: AI SL Topic QuestionsRevision NotesPractice Papers
IB > Biology
Biology: SL Topic QuestionsRevision Notes
Biology: HL Topic QuestionsRevision Notes
IB > Chemistry
Chemistry: SL Topic QuestionsRevision Notes
Chemistry: HL Topic QuestionsRevision Notes
IB > Physics
Physics: SL Topic QuestionsRevision Notes
Physics: HL Revision Notes

Up to 33% off discounts extended!

Ace your exams with up to 33% off our Annual and Quarterly plans for a limited time only. T&Cs apply.


Ok, hide this.

Edexcel A Level Maths: Statistics

Revision Notes

Home / A Level / Maths: Statistics / Edexcel / Revision Notes / 2. Data Presentation & Interpretation / 2.1 Statistical Measures / 2.1.4 Coding


2.1.4 Coding


Coding

Sometimes data needs to be coded for further use with calculations. This is particularly useful with data that deals with very small or very large numbers, or with data that needs to be classified for research purposes.

What is coding?

  • Coding is a way of simplifying data to make it easier to work with
  • The coding must be carried out on all values within the data set and will normally be done using a given formula
  • Coding can be carried out in a number of ways:
    • Adding or subtracting a constant to each data value
    • Multiplying or dividing each data value by a constant
    • A combination of both of the above

How are statistical calculations carried out with coded data?

  • If you know the mean or standard deviation of the original data it is possible to find the mean or standard deviation of the coded data and vice versa
  • It is important to remember what the mean and standard deviation actually tell us about the data to understand how coding calculations work
    • The mean is a measure of location, changing the data set in any way will cause the mean to change in the same way
    • The standard deviation is a measure of spread, adding or subtracting a constant to every value within the data set will not change the standard deviation of the data set
      • Multiplying or dividing every value within the data set by a constant will change the standard deviation by the modulus of the constant
      • If the data were coded by multiplying or dividing by a negative, the standard deviation will change by the equivalent positive value
  • Anytime calculations are carried out on data that has been coded,
    • The original mean can be found by solving the equation to reverse the coding
    • For example, if the data, begin mathsize 16px style x end style, was coded using the formula

y equals a x plus b

Then the mean of the coded data, begin mathsize 16px style y with bar on top end style would be   

y with bar on top equals a x with bar on top plus b

The original mean, begin mathsize 16px style x with bar on top end style , will be  begin mathsize 16px style x with bar on top space equals fraction numerator y with bar on top space minus b over denominator a end fraction end style

    • The original standard deviation
      • Will be the same as the coded standard deviation if the data was coded by adding or subtracting a constant only
      • Can be found by reversing the coding if the data was coded by multiplying or dividing by a constant only
      • If the data was coded by a combination of both then only the multiplying or dividing will need to be reversed to find the original standard deviation
    • For example, if the data, was coded using the formula

y space equals space a x plus b

Then the standard deviation of the coded data, begin mathsize 16px style sigma subscript y end stylewould be

sigma subscript y equals open vertical bar a close vertical bar sigma subscript x

The original standard deviation, begin mathsize 16px style sigma subscript x end style, will be

sigma subscript x equals fraction numerator sigma subscript y over denominator open vertical bar a close vertical bar end fraction

Worked Example

The shoulder height, h comma of a group of Asian elephants living in a nature reserve are summarised in the table below.

Height, cm

Frequency, bold italic f

 200 space less or equal than space h space less than space 220

2

 220 space less or equal than space h space less than space 240

5

 240 space less or equal than space h space less than space 260

8

 260 space less or equal than space h space less than space 280

8

 280 space less or equal than space h space less than space 300

5

 300 space less or equal than space h space less than space 320

2

(i)
Code the data using the formula x space equals space fraction numerator h minus 250 over denominator 20 end fraction

 

(ii)
Use the coded data to find an estimate for the mean and standard deviation, you may use the summary statistics straight capital sigma x f space equals space 15 comma space straight capital sigma x squared f space equals space 59 comma space straight capital sigma space f equals 30.

2-1-4-coding-we-solution-part-1

2-1-4-coding-we-solution-part-2

Exam Tip

  • Be careful when using the formulae for the mean and standard deviation with coded summary statistics, you must make sure that you use the summary statistics consistently throughout. For example, if you use the sum of the coded data squared in the formula for the standard deviation, you must subtract the square of the coded mean.


  • 1. Statistical Sampling
    • 1.1 Sampling & Data Collection
      • 1.1.1 Sampling & Data Collection
    • 2. Data Presentation & Interpretation
      • 2.1 Statistical Measures
        • 2.1.1 Basic Statistical Measures
          • 2.1.2 Frequency Tables
            • 2.1.3 Standard Deviation & Variance
              • 2.1.4 Coding
              • 2.2 Data Presentation
                • 2.2.1 Data Presentation
                  • 2.2.2 Box Plots & Cumulative Frequency
                    • 2.2.3 Histograms
                    • 2.3 Working with Data
                      • 2.3.1 Outliers & Cleaning Data
                        • 2.3.2 Intrepreting Data
                        • 2.4 Correlation & Regression
                          • 2.4.1 Correlation & Regression
                          • 2.5 Further Correlation & Regression (A Level only)
                            • 2.5.1 PMCC & Non-linear Regression
                              • 2.5.2 Hypothesis Testing for Correlation
                            • 3. Probability
                              • 3.1 Basic Probability
                                • 3.1.1 Calculating Probabilities & Events
                                  • 3.1.2 Venn Diagrams
                                    • 3.1.3 Tree Diagrams
                                    • 3.2 Further Probability (A Level only)
                                      • 3.2.1 Set Notation & Conditional Probability
                                        • 3.2.2 Further Venn Diagrams
                                          • 3.2.3 Further Tree Diagrams
                                            • 3.2.4 Probability Formulae
                                          • 4. Statistical Distributions
                                            • 4.1 Probability Distributions
                                              • 4.1.1 Discrete Probability Distributions
                                              • 4.2 Binomial Distribution
                                                • 4.2.1 The Binomial Distribution
                                                  • 4.2.2 Calculating Binomial Probabilities
                                                  • 4.3 Normal Distribution (A Level only)
                                                    • 4.3.1 The Normal Distribution
                                                      • 4.3.2 Normal Distribution - Calculations
                                                        • 4.3.3 Standard Normal Distribution
                                                        • 4.4 Choosing Distributions (A Level only)
                                                          • 4.4.1 Modelling with Distributions
                                                            • 4.4.2 Normal Approximation of Binomial
                                                          • 5. Hypothesis Testing
                                                            • 5.1 Hypothesis Testing
                                                              • 5.1.1 Hypothesis Testing
                                                              • 5.2 Hypothesis Testing (Binomial Distribution)
                                                                • 5.2.1 Binomial Hypothesis Testing
                                                                • 5.3 Hypothesis Testing (Normal Distribution) (A Level only)
                                                                  • 5.3.1 Sample Mean Distribution
                                                                    • 5.3.2 Normal Hypothesis Testing
                                                                  • 6. Large Data Set
                                                                    • 6.1 Large Data Set
                                                                      • 6.1 Large Data Set


                                                                      DOWNLOAD PDF

                                                                    Author: Amber

                                                                    Amber gained a first class degree in Mathematics & Meteorology from the University of Reading before training to become a teacher. She is passionate about teaching, having spent 8 years teaching GCSE and A Level Mathematics both in the UK and internationally. Amber loves creating bright and informative resources to help students reach their potential.


                                                                    Save My Exams Logo
                                                                    Resources
                                                                    Home Join Support

                                                                    Members
                                                                    Members Home Account Login

                                                                    Company
                                                                    About Us Contact Us Jobs Terms Privacy Facebook Twitter

                                                                    Quick Links
                                                                    GCSE Revision Notes IGCSE Revision Notes A Level Revision Notes Biology Chemistry Physics Maths 2022 Advance Information

                                                                     
                                                                    © Copyright 2015-2022 Save My Exams Ltd. All Rights Reserved.
                                                                    IBO was not involved in the production of, and does not endorse, the resources created by Save My Exams.