SlideShare a Scribd company logo
3
Most read
4
Most read
9
Most read
Non-parametric statistics
Anthony J. Evans
Professor of Economics, ESCP Europe
www.anthonyjevans.com
(cc) Anthony J. Evans 2019 | http://creativecommons.org/licenses/by-nc-sa/3.0/
Introduction
• So far the data we’ve looked at has had parameters
– E.g. mean and variance
• We’ve used these parameters to utilise a distribution
• Parametric tests assume that the data belongs to some sort
of distribution
• Nonparametric statistics allows us to perform tests with an
unspecified distribution
• If the underlying assumptions are correct, parametric tests
will have more power
– Power = P(Reject H0 | H1 is true)
– Or 1-P(Type II error)
• Nonparametric tests can be more robust and allow for new
data to be incorporated
– Robustness = less affected by extreme observations
2
When to use a non-parametric test
• If we’re not sure of the underlying distribution
• When the variables are discrete (as opposed to continuous)
3
Purpose Parametric
method
Non-parametric
equivalent
Compare 2 paired groups Paired T-test Wilcoxon signed
ranks test
Compare 2 independent samples Unpaired T-test Mann-Whitney U
Compare 3+ independent samples ANOVA/regression Kruskal-Wallis
See http://www.bristol.ac.uk/medical-school/media/rms/red/rank_based_non_parametric_tests.html
A sign test example
4
• We are interested in whether the hind leg and forelegs of
deer are the same length
Deer Hind leg length
(cm)
Foreleg length
(cm)
Difference
1 142 138 +
2 140 136 +
3 144 147 -
4 144 139 +
5 142 143 -
6 146 141 +
7 149 143 +
8 150 145 +
9 142 136 +
10 148 146 +
Example taken from Zar, Jerold H. (1999), "Chapter 24: More on Dichotomous Variables", Biostatistical Analysis
(Fourth ed.), Prentice-Hall, pp. 516–570
A sign test example
• If they are the same, we should expect as many instances
where one is bigger than the other and vice versa.
– H0: Hind leg = foreleg
– H1: Hind leg ≠ foreleg
• We should expect 5 +’s and 5 –’s
• We observe 8 +’s and 2 –’s
• How likely is this?
• Use a Binomial test to find that:
– P(8) + P(9) + P(10)
– = 0.04395 + 0.00977 + 0.00098
– P(0) + P(1) + P(2) Because it’s a two tailed test
– = 0.00098 + 0.00977 + 0.04395
• Thus p = 0.109375
• Since this is above 0.05 we fail to reject H0
5
Pearson's chi-squared test
• Used to test whether there is a significant difference
between the expected frequencies and the observed
frequencies in one or more categories
• Events must be mutually exclusive and collectively
exhaustive
• Suitable for
– Categorical variables *
– Unpaired data
– Large samples
• * Potential examples of categorical variables (Mosteller and Tukey 1977):
– Names
– Grades (ordered labels like beginner, intermediate, advanced)
– Ranks (orders with 1 being the smallest or largest, 2 the next smallest or
largest, and so on)
– Counted fractions (bound by 0 and 1)
– Counts (non-negative integers)
– Amounts (non-negative real numbers)
– Balances (any real number)
6
χ 𝑐
"
= Σ
(𝑂𝑖 − 𝐸𝑖)2
𝐸𝑖
Student genders
• We expect a PhD programme to have an equal number of
male and female students. However, over the last ten
years there have been 80 females and 40 males. Is this a
significant departure from expectation?
7Source: http://archive.bio.ed.ac.uk/jdeacon/statistics/tress9.html
Note that n refers to categories so we have 2-1 = 1 degree of freedom.
Female Male Total
Observed (O) 80 40 120
Expected (E) 60 60 120
(O – E) 20 -20 0
(O – E)2 400 400
(O – E)2 / E 6.67 6.67 χ2 = 13.34
We can use a chi square table to find a critical value of 3.84
(Where p=0.5 and n-1 degrees of freedom).
We have a statistically significant finding that the 1:1 ratio is not being met.
Chi-squared and significance testing
• Chi Square is employed to test the difference between an
actual sample and another hypothetical or previously
established distribution such as that which may be
expected due to chance or probability
• The procedure for a chi-square test is similar to what
we’ve used previously
– Calculate the test statistic and use a probability table
to find the p value
• The key difference is that the “distribution” is based on
expected frequency. There is no underlying assumptions
about the distributions parameters
• We only use non-parametric techniques for significance
tests, we can’t use them for estimation.
8
Examples of nonparametric tests
• Analysis of similarities
• Anderson–Darling test: tests whether
a sample is drawn from a given
distribution
• Statistical bootstrap methods:
estimates the accuracy/sampling
distribution of a statistic
• Cochran's Q: tests
whether k treatments in randomized
block designs with 0/1 outcomes
have identical effects
• Cohen's kappa: measures inter-rater
agreement for categorical items
• Friedman two-way analysis of
variance by ranks: tests
whether k treatments in randomized
block designs have identical effects
• Kaplan–Meier: estimates the survival
function from lifetime data,
modeling censoring
• Kendall's tau: measures statistical
dependence between two variables
• Kendall's W: a measure between 0
and 1 of inter-rater agreement
• Kolmogorov–Smirnov test: tests
whether a sample is drawn from a
given distribution, or whether two
samples are drawn from the same
distribution
• Kruskal–Wallis one-way analysis of
variance by ranks: tests whether > 2
independent samples are drawn from
the same distribution
• Kuiper's test: tests whether a sample
is drawn from a given distribution,
sensitive to cyclic variations such as
day of the week
• Logrank test: compares survival
distributions of two right-skewed,
censored samples
• Mann–Whitney U or Wilcoxon rank
sum test: tests whether two samples
are drawn from the same
distribution, as compared to a given
alternative hypothesis.
• McNemar's test: tests whether, in 2
× 2 contingency tables with a
dichotomous trait and matched pairs
of subjects, row and column
marginal frequencies are equal
• Median test: tests whether two
samples are drawn from distributions
with equal medians
• Pitman's permutation test: a
statistical significance test that
yields exact p values by examining all
possible rearrangements of labels
• Rank products: detects differentially
expressed genes in replicated
microarray experiments
• Siegel–Tukey test: tests for
differences in scale between two
groups
• Sign test: tests whether matched pair
samples are drawn from distributions
with equal medians
• Spearman's rank correlation
coefficient: measures statistical
dependence between two variables
using a monotonic function
• Squared ranks test: tests equality of
variances in two or more samples
• Tukey–Duckworth test: tests equality
of two distributions by using ranks
• Wald–Wolfowitz runs test: tests
whether the elements of a sequence
are mutually independent/random
• Wilcoxon signed-rank test: tests
whether matched pair samples are
drawn from populations with
different mean ranks
9Note: list and links taken from Wikipedia
Solutions
10
A sign test example
• If they are the same, we should expect as many instances
where one is bigger than the other and vice versa.
– H0: Hind leg = foreleg
– H1: Hind leg ≠ foreleg
• We should expect 5 +’s and 5 –’s
• We observe 8 +’s and 2 –’s
• How likely is this?
• Use a Binomial test to find that:
– P(8) + P(9) + P(10)
– = 0.04395 + 0.00977 + 0.00098
– P(0) + P(1) + P(2) Because it’s a two tailed test
– = 0.00098 + 0.00977 + 0.04395
• Thus p = 0.109375
• Since this is above 0.05 we fail to reject H0
11
• This presentation forms part of a free, online course
on analytics
• http://econ.anthonyjevans.com/courses/analytics/
12

More Related Content

What's hot (20)

PDF
Hypothesis testing an introduction
Geetika Gulyani
 
PDF
Pearson Correlation, Spearman Correlation &Linear Regression
Azmi Mohd Tamil
 
PPTX
Wilcoxon signed rank test
Biswash Sapkota
 
PPT
Hypothesis
Nilanjan Bhaumik
 
PPTX
Non-Parametric Tests
Pratik Bhadange
 
PPTX
Regression analysis on SPSS
AntimDevMishraMTechE
 
PPT
Business statistics what and why
dibasharmin
 
PPTX
NON-PARAMETRIC TESTS by Prajakta Sawant
PRAJAKTASAWANT33
 
PPT
Ch4 Confidence Interval
Farhan Alfin
 
PPTX
Testing of hypotheses
RajThakuri
 
PPTX
Friedman Test- A Presentation
Irene Gabiana
 
PPTX
Biostatistics and research methodology
sahini kondaviti
 
PPTX
Confidence interval
Dr Renju Ravi
 
PPT
One Sample T Test
shoffma5
 
PPTX
Hypothesis testing
Shameer P Hamsa
 
PPTX
Contingency tables
Long Beach City College
 
PPTX
Parmetric and non parametric statistical test in clinical trails
Vinod Pagidipalli
 
PPTX
Statistics
Arpit Sharma
 
PPTX
Analysis of variance (ANOVA)
Sneh Kumari
 
Hypothesis testing an introduction
Geetika Gulyani
 
Pearson Correlation, Spearman Correlation &Linear Regression
Azmi Mohd Tamil
 
Wilcoxon signed rank test
Biswash Sapkota
 
Hypothesis
Nilanjan Bhaumik
 
Non-Parametric Tests
Pratik Bhadange
 
Regression analysis on SPSS
AntimDevMishraMTechE
 
Business statistics what and why
dibasharmin
 
NON-PARAMETRIC TESTS by Prajakta Sawant
PRAJAKTASAWANT33
 
Ch4 Confidence Interval
Farhan Alfin
 
Testing of hypotheses
RajThakuri
 
Friedman Test- A Presentation
Irene Gabiana
 
Biostatistics and research methodology
sahini kondaviti
 
Confidence interval
Dr Renju Ravi
 
One Sample T Test
shoffma5
 
Hypothesis testing
Shameer P Hamsa
 
Contingency tables
Long Beach City College
 
Parmetric and non parametric statistical test in clinical trails
Vinod Pagidipalli
 
Statistics
Arpit Sharma
 
Analysis of variance (ANOVA)
Sneh Kumari
 

Similar to Nonparametric Statistics (20)

PPTX
Marketing Research Hypothesis Testing.pptx
xababid981
 
PPTX
MPhil clinical psy Non-parametric statistics.pptx
rodrickrajamanickam
 
PPTX
Non parametric test- Muskan (M.Pharm-3rd semester)
MuskanShingari
 
PPT
9-NON PARAMETRIC TEST in public health .ppt
DrPARVATHYVINOD
 
PPTX
Non parametric test
Neetathakur3
 
PPTX
UNIT 5.pptx
ShifnaRahman
 
PPTX
Presentation chi-square test & Anova
Sonnappan Sridhar
 
PPTX
Non parametric presentation
Murad Khan Buneri
 
PPTX
NON-PARAMETRIC TESTS.pptx
DrLasya
 
PPTX
non parametric test.pptx
SoujanyaLk1
 
PPTX
Non parametric study; Statistical approach for med student
Dr. Rupendra Bharti
 
PDF
Non Parametric Test by Vikramjit Singh
Vikramjit Singh
 
PPTX
6. Nonparametric Test_JASP.ppt with full example
S Gayu
 
PPTX
hypothesis in research .......................
ssuserb9efd7
 
PPTX
Nonparametric Test_JAMOVI.ppt- Statistical data analysis
divya1313
 
PPTX
biostat__final_ppt_unit_3.pptx
ShubhamYalawatakar1
 
PPTX
3.1 non parametric test
Shital Patil
 
PPTX
TEST OF SIGNIFICANCE.pptx ests of Significance: Process, Example and Type
ashu210bhandare
 
PDF
Non parametrict test
dobhalshiv
 
PDF
biki1 biostat.pdf
Google
 
Marketing Research Hypothesis Testing.pptx
xababid981
 
MPhil clinical psy Non-parametric statistics.pptx
rodrickrajamanickam
 
Non parametric test- Muskan (M.Pharm-3rd semester)
MuskanShingari
 
9-NON PARAMETRIC TEST in public health .ppt
DrPARVATHYVINOD
 
Non parametric test
Neetathakur3
 
UNIT 5.pptx
ShifnaRahman
 
Presentation chi-square test & Anova
Sonnappan Sridhar
 
Non parametric presentation
Murad Khan Buneri
 
NON-PARAMETRIC TESTS.pptx
DrLasya
 
non parametric test.pptx
SoujanyaLk1
 
Non parametric study; Statistical approach for med student
Dr. Rupendra Bharti
 
Non Parametric Test by Vikramjit Singh
Vikramjit Singh
 
6. Nonparametric Test_JASP.ppt with full example
S Gayu
 
hypothesis in research .......................
ssuserb9efd7
 
Nonparametric Test_JAMOVI.ppt- Statistical data analysis
divya1313
 
biostat__final_ppt_unit_3.pptx
ShubhamYalawatakar1
 
3.1 non parametric test
Shital Patil
 
TEST OF SIGNIFICANCE.pptx ests of Significance: Process, Example and Type
ashu210bhandare
 
Non parametrict test
dobhalshiv
 
biki1 biostat.pdf
Google
 
Ad

More from Anthony J. Evans (16)

PDF
Time Series
Anthony J. Evans
 
PDF
The Suitcase Case
Anthony J. Evans
 
PDF
Correlation
Anthony J. Evans
 
PDF
Student's T Test
Anthony J. Evans
 
PDF
Significance Tests
Anthony J. Evans
 
PDF
Taxi for Professor Evans
Anthony J. Evans
 
PDF
Inferential Statistics
Anthony J. Evans
 
PDF
Probability Distributions
Anthony J. Evans
 
PDF
Probability Theory
Anthony J. Evans
 
PDF
Descriptive Statistics
Anthony J. Evans
 
PDF
Statistical Literacy
Anthony J. Evans
 
PDF
Quantitative Methods
Anthony J. Evans
 
PDF
Collecting and Presenting Data
Anthony J. Evans
 
PDF
Numeracy Skills 1
Anthony J. Evans
 
PPTX
The Dynamic AD AS Model
Anthony J. Evans
 
PDF
Numeracy Skills 2
Anthony J. Evans
 
Time Series
Anthony J. Evans
 
The Suitcase Case
Anthony J. Evans
 
Correlation
Anthony J. Evans
 
Student's T Test
Anthony J. Evans
 
Significance Tests
Anthony J. Evans
 
Taxi for Professor Evans
Anthony J. Evans
 
Inferential Statistics
Anthony J. Evans
 
Probability Distributions
Anthony J. Evans
 
Probability Theory
Anthony J. Evans
 
Descriptive Statistics
Anthony J. Evans
 
Statistical Literacy
Anthony J. Evans
 
Quantitative Methods
Anthony J. Evans
 
Collecting and Presenting Data
Anthony J. Evans
 
Numeracy Skills 1
Anthony J. Evans
 
The Dynamic AD AS Model
Anthony J. Evans
 
Numeracy Skills 2
Anthony J. Evans
 
Ad

Recently uploaded (20)

PDF
apidays Munich 2025 - Automating Operations Without Reinventing the Wheel, Ma...
apidays
 
PDF
apidays Munich 2025 - The life-changing magic of great API docs, Jens Fischer...
apidays
 
PDF
List of all the AI prompt cheat codes.pdf
Avijit Kumar Roy
 
PPTX
TSM_08_0811111111111111111111111111111111111111111111111
csomonasteriomoscow
 
PPTX
Rocket-Launched-PowerPoint-Template.pptx
Arden31
 
PPTX
things that used in cleaning of the things
drkaran1421
 
PDF
Introduction to Data Science_Washington_
StarToon1
 
PPTX
Lecture_9_EPROM_Flash univeristy lecture fall 2022
ssuser5047c5
 
DOCX
AI/ML Applications in Financial domain projects
Rituparna De
 
PPTX
recruitment Presentation.pptxhdhshhshshhehh
devraj40467
 
PDF
T2_01 Apuntes La Materia.pdfxxxxxxxxxxxxxxxxxxxxxxxxxxxxxskksk
mathiasdasilvabarcia
 
PPTX
Resmed Rady Landis May 4th - analytics.pptx
Adrian Limanto
 
PDF
The X-Press God-WPS Office.pdf hdhdhdhdhd
ramifatoh4
 
PPTX
DATA-COLLECTION METHODS, TYPES AND SOURCES
biggdaad011
 
PPTX
Human-Action-Recognition-Understanding-Behavior.pptx
nreddyjanga
 
PDF
Dr. Robert Krug - Chief Data Scientist At DataInnovate Solutions
Dr. Robert Krug
 
PPTX
isaacnewton-250718125311-e7ewqeqweqwa74d99.pptx
MahmoudHalim13
 
PPTX
Spark with anjbnn hfkkjn hbkjbu h jhbk.pptx
nreddyjanga
 
PPT
1 DATALINK CONTROL and it's applications
karunanidhilithesh
 
PDF
Building Production-Ready AI Agents with LangGraph.pdf
Tamanna
 
apidays Munich 2025 - Automating Operations Without Reinventing the Wheel, Ma...
apidays
 
apidays Munich 2025 - The life-changing magic of great API docs, Jens Fischer...
apidays
 
List of all the AI prompt cheat codes.pdf
Avijit Kumar Roy
 
TSM_08_0811111111111111111111111111111111111111111111111
csomonasteriomoscow
 
Rocket-Launched-PowerPoint-Template.pptx
Arden31
 
things that used in cleaning of the things
drkaran1421
 
Introduction to Data Science_Washington_
StarToon1
 
Lecture_9_EPROM_Flash univeristy lecture fall 2022
ssuser5047c5
 
AI/ML Applications in Financial domain projects
Rituparna De
 
recruitment Presentation.pptxhdhshhshshhehh
devraj40467
 
T2_01 Apuntes La Materia.pdfxxxxxxxxxxxxxxxxxxxxxxxxxxxxxskksk
mathiasdasilvabarcia
 
Resmed Rady Landis May 4th - analytics.pptx
Adrian Limanto
 
The X-Press God-WPS Office.pdf hdhdhdhdhd
ramifatoh4
 
DATA-COLLECTION METHODS, TYPES AND SOURCES
biggdaad011
 
Human-Action-Recognition-Understanding-Behavior.pptx
nreddyjanga
 
Dr. Robert Krug - Chief Data Scientist At DataInnovate Solutions
Dr. Robert Krug
 
isaacnewton-250718125311-e7ewqeqweqwa74d99.pptx
MahmoudHalim13
 
Spark with anjbnn hfkkjn hbkjbu h jhbk.pptx
nreddyjanga
 
1 DATALINK CONTROL and it's applications
karunanidhilithesh
 
Building Production-Ready AI Agents with LangGraph.pdf
Tamanna
 

Nonparametric Statistics

  • 1. Non-parametric statistics Anthony J. Evans Professor of Economics, ESCP Europe www.anthonyjevans.com (cc) Anthony J. Evans 2019 | http://creativecommons.org/licenses/by-nc-sa/3.0/
  • 2. Introduction • So far the data we’ve looked at has had parameters – E.g. mean and variance • We’ve used these parameters to utilise a distribution • Parametric tests assume that the data belongs to some sort of distribution • Nonparametric statistics allows us to perform tests with an unspecified distribution • If the underlying assumptions are correct, parametric tests will have more power – Power = P(Reject H0 | H1 is true) – Or 1-P(Type II error) • Nonparametric tests can be more robust and allow for new data to be incorporated – Robustness = less affected by extreme observations 2
  • 3. When to use a non-parametric test • If we’re not sure of the underlying distribution • When the variables are discrete (as opposed to continuous) 3 Purpose Parametric method Non-parametric equivalent Compare 2 paired groups Paired T-test Wilcoxon signed ranks test Compare 2 independent samples Unpaired T-test Mann-Whitney U Compare 3+ independent samples ANOVA/regression Kruskal-Wallis See http://www.bristol.ac.uk/medical-school/media/rms/red/rank_based_non_parametric_tests.html
  • 4. A sign test example 4 • We are interested in whether the hind leg and forelegs of deer are the same length Deer Hind leg length (cm) Foreleg length (cm) Difference 1 142 138 + 2 140 136 + 3 144 147 - 4 144 139 + 5 142 143 - 6 146 141 + 7 149 143 + 8 150 145 + 9 142 136 + 10 148 146 + Example taken from Zar, Jerold H. (1999), "Chapter 24: More on Dichotomous Variables", Biostatistical Analysis (Fourth ed.), Prentice-Hall, pp. 516–570
  • 5. A sign test example • If they are the same, we should expect as many instances where one is bigger than the other and vice versa. – H0: Hind leg = foreleg – H1: Hind leg ≠ foreleg • We should expect 5 +’s and 5 –’s • We observe 8 +’s and 2 –’s • How likely is this? • Use a Binomial test to find that: – P(8) + P(9) + P(10) – = 0.04395 + 0.00977 + 0.00098 – P(0) + P(1) + P(2) Because it’s a two tailed test – = 0.00098 + 0.00977 + 0.04395 • Thus p = 0.109375 • Since this is above 0.05 we fail to reject H0 5
  • 6. Pearson's chi-squared test • Used to test whether there is a significant difference between the expected frequencies and the observed frequencies in one or more categories • Events must be mutually exclusive and collectively exhaustive • Suitable for – Categorical variables * – Unpaired data – Large samples • * Potential examples of categorical variables (Mosteller and Tukey 1977): – Names – Grades (ordered labels like beginner, intermediate, advanced) – Ranks (orders with 1 being the smallest or largest, 2 the next smallest or largest, and so on) – Counted fractions (bound by 0 and 1) – Counts (non-negative integers) – Amounts (non-negative real numbers) – Balances (any real number) 6 χ 𝑐 " = Σ (𝑂𝑖 − 𝐸𝑖)2 𝐸𝑖
  • 7. Student genders • We expect a PhD programme to have an equal number of male and female students. However, over the last ten years there have been 80 females and 40 males. Is this a significant departure from expectation? 7Source: http://archive.bio.ed.ac.uk/jdeacon/statistics/tress9.html Note that n refers to categories so we have 2-1 = 1 degree of freedom. Female Male Total Observed (O) 80 40 120 Expected (E) 60 60 120 (O – E) 20 -20 0 (O – E)2 400 400 (O – E)2 / E 6.67 6.67 χ2 = 13.34 We can use a chi square table to find a critical value of 3.84 (Where p=0.5 and n-1 degrees of freedom). We have a statistically significant finding that the 1:1 ratio is not being met.
  • 8. Chi-squared and significance testing • Chi Square is employed to test the difference between an actual sample and another hypothetical or previously established distribution such as that which may be expected due to chance or probability • The procedure for a chi-square test is similar to what we’ve used previously – Calculate the test statistic and use a probability table to find the p value • The key difference is that the “distribution” is based on expected frequency. There is no underlying assumptions about the distributions parameters • We only use non-parametric techniques for significance tests, we can’t use them for estimation. 8
  • 9. Examples of nonparametric tests • Analysis of similarities • Anderson–Darling test: tests whether a sample is drawn from a given distribution • Statistical bootstrap methods: estimates the accuracy/sampling distribution of a statistic • Cochran's Q: tests whether k treatments in randomized block designs with 0/1 outcomes have identical effects • Cohen's kappa: measures inter-rater agreement for categorical items • Friedman two-way analysis of variance by ranks: tests whether k treatments in randomized block designs have identical effects • Kaplan–Meier: estimates the survival function from lifetime data, modeling censoring • Kendall's tau: measures statistical dependence between two variables • Kendall's W: a measure between 0 and 1 of inter-rater agreement • Kolmogorov–Smirnov test: tests whether a sample is drawn from a given distribution, or whether two samples are drawn from the same distribution • Kruskal–Wallis one-way analysis of variance by ranks: tests whether > 2 independent samples are drawn from the same distribution • Kuiper's test: tests whether a sample is drawn from a given distribution, sensitive to cyclic variations such as day of the week • Logrank test: compares survival distributions of two right-skewed, censored samples • Mann–Whitney U or Wilcoxon rank sum test: tests whether two samples are drawn from the same distribution, as compared to a given alternative hypothesis. • McNemar's test: tests whether, in 2 × 2 contingency tables with a dichotomous trait and matched pairs of subjects, row and column marginal frequencies are equal • Median test: tests whether two samples are drawn from distributions with equal medians • Pitman's permutation test: a statistical significance test that yields exact p values by examining all possible rearrangements of labels • Rank products: detects differentially expressed genes in replicated microarray experiments • Siegel–Tukey test: tests for differences in scale between two groups • Sign test: tests whether matched pair samples are drawn from distributions with equal medians • Spearman's rank correlation coefficient: measures statistical dependence between two variables using a monotonic function • Squared ranks test: tests equality of variances in two or more samples • Tukey–Duckworth test: tests equality of two distributions by using ranks • Wald–Wolfowitz runs test: tests whether the elements of a sequence are mutually independent/random • Wilcoxon signed-rank test: tests whether matched pair samples are drawn from populations with different mean ranks 9Note: list and links taken from Wikipedia
  • 11. A sign test example • If they are the same, we should expect as many instances where one is bigger than the other and vice versa. – H0: Hind leg = foreleg – H1: Hind leg ≠ foreleg • We should expect 5 +’s and 5 –’s • We observe 8 +’s and 2 –’s • How likely is this? • Use a Binomial test to find that: – P(8) + P(9) + P(10) – = 0.04395 + 0.00977 + 0.00098 – P(0) + P(1) + P(2) Because it’s a two tailed test – = 0.00098 + 0.00977 + 0.04395 • Thus p = 0.109375 • Since this is above 0.05 we fail to reject H0 11
  • 12. • This presentation forms part of a free, online course on analytics • http://econ.anthonyjevans.com/courses/analytics/ 12