SlideShare a Scribd company logo
1Presented by: Group-E (The Anonymous)
Gagan Puri
Bikram Bhurtel
Rabin B.K
Bimal Pradhan
What is parametric test?
What is non-parametric test?
Difference between parametric and non-parametric test
Chi-square test (χ2)
Run test
Sign test
Kolmogorov Smirnov test
Cochran Q. test
Friedman F. test
References
2
● Parametric tests involve estimation parameters such as the mean
and assume that distribution of sample means are normally
distributed
● Non parametric tests were developed for these situations where
fewer assumptions have to be made
● Some times called distribution free tests
● There are some assumptions in nonparametric test but are of less
stringent
3
S/n Parametric test S/n Non parametric test
1 It specifies certain condition about
parameter of the population from which
sample is selected.
1 It doesn't specifies certain condition about
parameter of the population from which
sample is selected.
2 It is used in testing of hypothesis and
estimation of parameters.
2 It is used in testing of hypothesis but not in
estimation of parameters.
3 Mostly it is used in data measured in
interval and ratio scale.
3 It is used in data measured in nominal and
ordinal scale.
4 It is most powerful 4 It is less powerful
5 It requires complicated sampling
technique
5 It doesn’t require complicated sampling
techinque.
Difference between parametric and non-parametric test
➢Used to test significant difference between observed frequencies and
expected frequencies
➢Let ‘n’ be the observation of the random variable x and classified k (no)
of classes WRT frequencies
➢ Problem to test:
➢
Chi-square test
5
𝐻1: 𝑂𝑖 ≠ 𝐸𝑖
𝐻1: 𝑂𝑖 = 𝐸𝑖
χ2
=
𝑖=1
𝑘
𝑂𝑖 − 𝐸𝑖
2
𝐸𝑖
∼ χ2 𝑘−1
Test statistics
If be the the level of significance and (k-1) be degree of freedom then
critical value is obtained from table
Decision:
then we reject the null hypothesis otherwise accepted
α
If χ 𝑐𝑎𝑙𝑐𝑢𝑙𝑎𝑡𝑒𝑑
2
> χ 𝑡𝑎𝑏𝑢𝑙𝑡𝑒𝑑
2
 Sequence of letter of one kind bounded by letter of other kind is called run
++++++++----------+++++++-------+++---
here no. of run = 6
 Test used for testing the randomness of sequence of sample event
Problem to test:-
Hₒ: The sequence are in random order
Hˌ: The sequence are not in random order
7
For small sample size (n1,n2 ≤ 20)
Test statistics:
number of runs (r)
Level of significance:
α=0.05 unless we are given
Critical value:
ṟ and ȓ obtained from the table according to α, degree of freedom n1 and n2 and
alternative hypothesis
Decision:
accept Hₒ at a level of significance if rϵ(ṟ,ȓ), reject otherwise
8
Example:
HH TTT H T HHH TT HH T
no. of heads (n1)=8, no of tails (n2)= 7, no. of runs (r)=8
Problem to test:
Hₒ : the sequence are in random order
Hˌ : the sequence are not in random order
Test statistics:
r=8
Critical value:
at α=0.05, n1=8 and n2=7, ṟ=4 and ȓ=13
Decision : r=8 ϵ (ṟ=4, ȓ=13), accept Hₒ
Conclusion : the sequence of H and T are in random order.
9
10
For large sample size (n1, n2 ≥ 20)
r is approximately normally distributed with
mean, և =
2n1n2
(n1+n2)
+1 and variance , σ² =
2n1n2(2n1n2−n1−n2)
(n1+n2)²(n1+n2−1)
Test statistics
z=
(r−և)
σ²
~ N(0,1)
Level of significance:
α=0.05, unless we are given
Critical value :
z is obtained from table according to level of significance and alternative
hypothesis
Decision: accept Hₒ if |z |< ztabulated, reject otherwise
11
Example:
46,58,60,56,70,66,48,54,62,41,39,52,45,62,53,69,65,65,67,76,
52,52,59,59,67,51,46,61,40,43,42,77,67,63,59,63,63,72,57,59,
42,56,47,62,67,70,63,66,69 and 73
Here sample size (n)=50, median=59.5
assign A>median, B<median , delete if number=median
Thus, the sample becomes:
BB A B AA BB A BBBB A B AAAAA BBBB A BB A BBB AAA B AAA BBBBB
AAAAAAA
no. of A (n1)=25, no. of B (n2)=25, r=20
և=
2 n1n2
n1+n2
+1 =26 and σ² =
2 n1n2(2 n1n2−n1−n2)
(n1+n2)²(n1+n2−1)
= 12.2
σ= 12.2 = 3.5 12
Problem to test:
Hₒ : sample are in random order
Hˌ : sample are not in random order.
Test statistics:
z=(r-և)/σ =(20-26)/3.5 = -1.71
Critical value:
At α=0.05, ztabulated = 1.96
Decision:
|z|=1.71<ztabulated=1.96, we accept Hₒ at α=0.05
Conclusion:
The sample are in random order.
13
Based on the direction of differences between two measures
Test statistic
• Under H0 test statistic is, X0 = minimum of n(+) or n(-)
Critical region:
• K =
(𝑛−1)
2
− 0.98 𝑛
Decision:
 Null hypothesis is rejected if X0 ≤ K otherwise accepted
Two types of sign test:
 Small sample case (n ≤ 25)
 Large sample case (n > 25)
Sign test
14
Example: A study was designed to determine the effect if a certain movie on
the moral attitude of young children. The data below represents a rating from 0
to 20 on a moral attitude to high morality. Carry out the test hypothesis that
movie had no effect on moral attitude of children against it had using sign test
at level 0.1. [T.U 2069]
15
Before 14 16 15 18 15 17 19 17 17 16 14 15
After 13 18 16 17 16 19 20 18 19 15 18 16
Solution
16
Before 14 16 15 18 15 17 19 17 17 16 14 15
After 13 18 16 17 16 19 20 18 19 15 18 16
Sign + - - + - - - - - + - -
Null Hypothesis (H0): M 𝑑1
= M 𝑑2
i.e. , movie has effect on moral attitude of children
Alternative hypothesis (H1): M 𝑑1
≠ M 𝑑2
, i.e., movie has no effect on moral attitude of
children
Number of + signs (+) = 3
Number of – signs (-) = 9
Test statistic: P0 = min{n(+),n(-)} = min {3,9} = 3
Critical value:
K =
(n−1)
2
− 0.98 n =
(12−1)
2
− 0.98 × 12 = 2.1051
For 0.1 level of significance, P-value(P0) = P(y≤ 3) = 0.073
Decision:
Since, P0=0.073<0.1= K, we reject null hypothesis, i.e., movie has effect on moral
attitude of children
Here, n>25 so
K =
(𝑛−1)
2
− 0.98 𝑛
Alternate of Chi-square test for goodness of fit when sample size
are small
Test statistic:
• D0 = Max F 𝑒 − F 𝑜
Decision:
• Accept H0, if (calculated) D0 < (tabulated) Dmax
17
Kolmogorov Smirnov test
Example: The number of disease infected tomato plants in 10 different plots of
equal size are given below: Test whether the disease infected plants are uniformly
distributed over the entire area using Kolmogorov Smirnov test.
Plot no: 1 2 3 4 5 6 7 8 9 10
No. of infected
plants
8 10 9 12 13 7 5 12 13 9
Two tailed test
H0 = Md = Infected plants are uniformly distributed
H1 ≠ Md = Infected plants are not uniformly distributed
Solution:
18
19
Plot no No. of
infected
plants (f0)
Cf0 Relative
observed
frequency
F0
Expected
frequency
fe
Cfe Expected
relative
frequency
(Fe)
Fe − F0
1 8 8 8/100 10 10 10/100 0.02
2 10 18 18/100 10 20 20/100 0.02
3 9 27 27/100 10 30 30/100 0.03
4 12 39 39/100 10 40 40/100 0.01
5 15 54 54/100 10 50 50/100 0.04
6 7 61 61/100 10 60 60/100 0.01
7 5 66 66/100 10 70 70/100 0.04
8 12 78 78/100 10 80 80/100 0.02
9 13 91 91/100 10 90 90/100 0.01
10 9 100 100/100 10 100 100/100 1
Test statistic:
Calculated D0 = Max Fe − F0 = 0.04 =
4
100
Tabulated D0 = 0.136
Decision:
Since calculated D0 = 0.04 < tabulated D0 = 0.136, we accept null
hypothesis, i.e., the infected plants are uniformly distributed.
20
Since n>40,
tabulated D0 =
1.36
𝑛
=
1.36
100
=
1.36
10
= 0.136
21
Cochran Q test
• Non-parametric test used or more than two related samples.
• Use to test significance difference in frequencies or properties
of given samples.
• Problem to test:-
Hₒ:- All the treatment are equally effective.
Hi :- All the treatment are not equally effective
Test statistics:
Decision:- Reject Hₒ if Q >
Q =
K−1 {k R 𝑖
2
− R2 }
k C 𝑗 − C 𝑗
2 ~ χ2
(𝑘−1)df
Friedman F test
• Used to test significant different between location of three or
more populations.
• Problem to test:-
Hₒ:- Md₁ = Md₂ = Md₃=Mdk
H1:- at least one md is different,
I=1,2,3,……,k
Test statistics:-
Decision:- Accept H0 if p > 𝛼 or reject
F 𝑟 =
12
nk(k+1)
R 𝑖
2
- 3n (k+1)
F 𝑟 =
12
nk(k+1)
R 𝑖
2
− 3n (k+1)
1−
t 𝑖
3 −t 𝑖
𝑛(k3 −𝐾)
References:
Probability and Statistics (Course book)
Teachers note
google.com
wikipedia.com
24
25
Queries

More Related Content

What's hot

Wilcoxon signed rank test
Wilcoxon signed rank testWilcoxon signed rank test
Wilcoxon signed rank test
Biswash Sapkota
 
Regression
RegressionRegression
Goodness of Fit Notation
Goodness of Fit NotationGoodness of Fit Notation
Goodness of Fit Notation
Long Beach City College
 
Mann Whitney U test
Mann Whitney U testMann Whitney U test
Mann Whitney U test
Dr. Ankit Gaur
 
Non parametric test
Non parametric testNon parametric test
Non parametric test
dineshmeena53
 
Test of significance
Test of significanceTest of significance
Test of significance
Dr Bushra Jabeen
 
The mann whitney u test
The mann whitney u testThe mann whitney u test
The mann whitney u test
Regent University
 
Negative binomial distribution
Negative binomial distributionNegative binomial distribution
Negative binomial distribution
Nadeem Uddin
 
regression and correlation
regression and correlationregression and correlation
regression and correlation
Priya Sharma
 
Statistical tests of significance and Student`s T-Test
Statistical tests of significance and Student`s T-TestStatistical tests of significance and Student`s T-Test
Statistical tests of significance and Student`s T-Test
VasundhraKakkar
 
correlation.ppt
correlation.pptcorrelation.ppt
correlation.ppt
NayanPatil59
 
Unit-III Non-Parametric Tests BSRM.pdf
Unit-III Non-Parametric Tests BSRM.pdfUnit-III Non-Parametric Tests BSRM.pdf
Unit-III Non-Parametric Tests BSRM.pdf
Ravinandan A P
 
Hypothesis testing chi square goodness of fit test
Hypothesis testing chi square goodness of fit testHypothesis testing chi square goodness of fit test
Hypothesis testing chi square goodness of fit test
Nadeem Uddin
 
non parametric statistics
non parametric statisticsnon parametric statistics
non parametric statistics
Anchal Garg
 
One-Way ANOVA
One-Way ANOVAOne-Way ANOVA
L10 confidence intervals
L10 confidence intervalsL10 confidence intervals
L10 confidence intervals
Layal Fahad
 
Chapter 7 – Confidence Intervals And Sample Size
Chapter 7 – Confidence Intervals And Sample SizeChapter 7 – Confidence Intervals And Sample Size
Chapter 7 – Confidence Intervals And Sample SizeRose Jenkins
 
Kruskal Wallis test, Friedman test, Spearman Correlation
Kruskal Wallis test, Friedman test, Spearman CorrelationKruskal Wallis test, Friedman test, Spearman Correlation
Kruskal Wallis test, Friedman test, Spearman Correlation
Rizwan S A
 

What's hot (20)

Wilcoxon signed rank test
Wilcoxon signed rank testWilcoxon signed rank test
Wilcoxon signed rank test
 
Regression
RegressionRegression
Regression
 
Goodness of Fit Notation
Goodness of Fit NotationGoodness of Fit Notation
Goodness of Fit Notation
 
Mann Whitney U test
Mann Whitney U testMann Whitney U test
Mann Whitney U test
 
Non parametric test
Non parametric testNon parametric test
Non parametric test
 
Test of significance
Test of significanceTest of significance
Test of significance
 
The mann whitney u test
The mann whitney u testThe mann whitney u test
The mann whitney u test
 
Negative binomial distribution
Negative binomial distributionNegative binomial distribution
Negative binomial distribution
 
regression and correlation
regression and correlationregression and correlation
regression and correlation
 
Statistical tests of significance and Student`s T-Test
Statistical tests of significance and Student`s T-TestStatistical tests of significance and Student`s T-Test
Statistical tests of significance and Student`s T-Test
 
correlation.ppt
correlation.pptcorrelation.ppt
correlation.ppt
 
Confidence interval
Confidence intervalConfidence interval
Confidence interval
 
Unit-III Non-Parametric Tests BSRM.pdf
Unit-III Non-Parametric Tests BSRM.pdfUnit-III Non-Parametric Tests BSRM.pdf
Unit-III Non-Parametric Tests BSRM.pdf
 
Hypothesis testing chi square goodness of fit test
Hypothesis testing chi square goodness of fit testHypothesis testing chi square goodness of fit test
Hypothesis testing chi square goodness of fit test
 
non parametric statistics
non parametric statisticsnon parametric statistics
non parametric statistics
 
One-Way ANOVA
One-Way ANOVAOne-Way ANOVA
One-Way ANOVA
 
L10 confidence intervals
L10 confidence intervalsL10 confidence intervals
L10 confidence intervals
 
Z test
Z testZ test
Z test
 
Chapter 7 – Confidence Intervals And Sample Size
Chapter 7 – Confidence Intervals And Sample SizeChapter 7 – Confidence Intervals And Sample Size
Chapter 7 – Confidence Intervals And Sample Size
 
Kruskal Wallis test, Friedman test, Spearman Correlation
Kruskal Wallis test, Friedman test, Spearman CorrelationKruskal Wallis test, Friedman test, Spearman Correlation
Kruskal Wallis test, Friedman test, Spearman Correlation
 

Similar to Statistics-Non parametric test

Descriptive Statistics Formula Sheet Sample Populatio.docx
Descriptive Statistics Formula Sheet    Sample Populatio.docxDescriptive Statistics Formula Sheet    Sample Populatio.docx
Descriptive Statistics Formula Sheet Sample Populatio.docx
simonithomas47935
 
Solution to the practice test ch 8 hypothesis testing ch 9 two populations
Solution to the practice test ch 8 hypothesis testing ch 9 two populationsSolution to the practice test ch 8 hypothesis testing ch 9 two populations
Solution to the practice test ch 8 hypothesis testing ch 9 two populations
Long Beach City College
 
Chi-square, Yates, Fisher & McNemar
Chi-square, Yates, Fisher & McNemarChi-square, Yates, Fisher & McNemar
Chi-square, Yates, Fisher & McNemar
Azmi Mohd Tamil
 
Lecture 07 Category Shaoqi Rao Rev
Lecture 07 Category Shaoqi Rao RevLecture 07 Category Shaoqi Rao Rev
Lecture 07 Category Shaoqi Rao RevSumit Prajapati
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
ShaikhSaifullahKhali
 
Week8 Live Lecture for Final Exam
Week8 Live Lecture for Final ExamWeek8 Live Lecture for Final Exam
Week8 Live Lecture for Final Exam
Brent Heard
 
Two Means, Independent Samples
Two Means, Independent SamplesTwo Means, Independent Samples
Two Means, Independent Samples
Long Beach City College
 
C2 st lecture 10 basic statistics and the z test handout
C2 st lecture 10   basic statistics and the z test handoutC2 st lecture 10   basic statistics and the z test handout
C2 st lecture 10 basic statistics and the z test handoutfatima d
 
Non parametrics tests
Non parametrics testsNon parametrics tests
Non parametrics tests
rodrick koome
 
Chapter 07 Chi Square
Chapter 07 Chi SquareChapter 07 Chi Square
Chapter 07 Chi Squareghalan
 
C2 st lecture 13 revision for test b handout
C2 st lecture 13   revision for test b handoutC2 st lecture 13   revision for test b handout
C2 st lecture 13 revision for test b handoutfatima d
 
Hypothesis testing 47
Hypothesis testing 47Hypothesis testing 47
Hypothesis testing 47
Towheedul Farabee
 
Chapter07.pdf
Chapter07.pdfChapter07.pdf
Chapter07.pdf
KarenJoyBabida
 
Proportion test using Chi square
Proportion test using Chi squareProportion test using Chi square
Proportion test using Chi square
Parag Shah
 
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anova
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anovaSolution to the practice test ch 10 correlation reg ch 11 gof ch12 anova
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anova
Long Beach City College
 
Two Variances or Standard Deviations
Two Variances or Standard DeviationsTwo Variances or Standard Deviations
Two Variances or Standard Deviations
Long Beach City College
 
Practice Test 4A Hypothesis Testing Solution
Practice Test 4A Hypothesis Testing SolutionPractice Test 4A Hypothesis Testing Solution
Practice Test 4A Hypothesis Testing Solution
Long Beach City College
 
Hypothesis
HypothesisHypothesis
Hypothesis
Nilanjan Bhaumik
 
Anova by Hazilah Mohd Amin
Anova by Hazilah Mohd AminAnova by Hazilah Mohd Amin
Anova by Hazilah Mohd Amin
HazilahMohd
 

Similar to Statistics-Non parametric test (20)

Descriptive Statistics Formula Sheet Sample Populatio.docx
Descriptive Statistics Formula Sheet    Sample Populatio.docxDescriptive Statistics Formula Sheet    Sample Populatio.docx
Descriptive Statistics Formula Sheet Sample Populatio.docx
 
Solution to the practice test ch 8 hypothesis testing ch 9 two populations
Solution to the practice test ch 8 hypothesis testing ch 9 two populationsSolution to the practice test ch 8 hypothesis testing ch 9 two populations
Solution to the practice test ch 8 hypothesis testing ch 9 two populations
 
Chi-square, Yates, Fisher & McNemar
Chi-square, Yates, Fisher & McNemarChi-square, Yates, Fisher & McNemar
Chi-square, Yates, Fisher & McNemar
 
Lecture 07 Category Shaoqi Rao Rev
Lecture 07 Category Shaoqi Rao RevLecture 07 Category Shaoqi Rao Rev
Lecture 07 Category Shaoqi Rao Rev
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Week8 Live Lecture for Final Exam
Week8 Live Lecture for Final ExamWeek8 Live Lecture for Final Exam
Week8 Live Lecture for Final Exam
 
Two Means, Independent Samples
Two Means, Independent SamplesTwo Means, Independent Samples
Two Means, Independent Samples
 
C2 st lecture 10 basic statistics and the z test handout
C2 st lecture 10   basic statistics and the z test handoutC2 st lecture 10   basic statistics and the z test handout
C2 st lecture 10 basic statistics and the z test handout
 
Non parametrics tests
Non parametrics testsNon parametrics tests
Non parametrics tests
 
Sample size estimation
Sample size estimationSample size estimation
Sample size estimation
 
Chapter 07 Chi Square
Chapter 07 Chi SquareChapter 07 Chi Square
Chapter 07 Chi Square
 
C2 st lecture 13 revision for test b handout
C2 st lecture 13   revision for test b handoutC2 st lecture 13   revision for test b handout
C2 st lecture 13 revision for test b handout
 
Hypothesis testing 47
Hypothesis testing 47Hypothesis testing 47
Hypothesis testing 47
 
Chapter07.pdf
Chapter07.pdfChapter07.pdf
Chapter07.pdf
 
Proportion test using Chi square
Proportion test using Chi squareProportion test using Chi square
Proportion test using Chi square
 
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anova
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anovaSolution to the practice test ch 10 correlation reg ch 11 gof ch12 anova
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anova
 
Two Variances or Standard Deviations
Two Variances or Standard DeviationsTwo Variances or Standard Deviations
Two Variances or Standard Deviations
 
Practice Test 4A Hypothesis Testing Solution
Practice Test 4A Hypothesis Testing SolutionPractice Test 4A Hypothesis Testing Solution
Practice Test 4A Hypothesis Testing Solution
 
Hypothesis
HypothesisHypothesis
Hypothesis
 
Anova by Hazilah Mohd Amin
Anova by Hazilah Mohd AminAnova by Hazilah Mohd Amin
Anova by Hazilah Mohd Amin
 

More from Rabin BK

Artificial Intelligence in E-commerce
Artificial Intelligence in E-commerceArtificial Intelligence in E-commerce
Artificial Intelligence in E-commerce
Rabin BK
 
Three address code generation
Three address code generationThree address code generation
Three address code generation
Rabin BK
 
Consumer Oriented Application, Mercantile process and Mercantile models
Consumer Oriented Application, Mercantile process and Mercantile modelsConsumer Oriented Application, Mercantile process and Mercantile models
Consumer Oriented Application, Mercantile process and Mercantile models
Rabin BK
 
Clang compiler `
Clang compiler `Clang compiler `
Clang compiler `
Rabin BK
 
Simple Mail Transfer Protocol
Simple Mail Transfer ProtocolSimple Mail Transfer Protocol
Simple Mail Transfer Protocol
Rabin BK
 
HTML text formatting tags
HTML text formatting tagsHTML text formatting tags
HTML text formatting tags
Rabin BK
 
Data encryption in database management system
Data encryption in database management systemData encryption in database management system
Data encryption in database management system
Rabin BK
 
Object Relational Database Management System(ORDBMS)
Object Relational Database Management System(ORDBMS)Object Relational Database Management System(ORDBMS)
Object Relational Database Management System(ORDBMS)
Rabin BK
 
Kolmogorov Smirnov
Kolmogorov SmirnovKolmogorov Smirnov
Kolmogorov Smirnov
Rabin BK
 
Job sequencing in Data Strcture
Job sequencing in Data StrctureJob sequencing in Data Strcture
Job sequencing in Data Strcture
Rabin BK
 
Stack Data Structure
Stack Data StructureStack Data Structure
Stack Data Structure
Rabin BK
 
Bluetooth
BluetoothBluetooth
Bluetooth
Rabin BK
 
Data Science
Data ScienceData Science
Data Science
Rabin BK
 
Graphics_3D viewing
Graphics_3D viewingGraphics_3D viewing
Graphics_3D viewing
Rabin BK
 
Neural Netwrok
Neural NetwrokNeural Netwrok
Neural Netwrok
Rabin BK
 
Watermarking in digital images
Watermarking in digital imagesWatermarking in digital images
Watermarking in digital images
Rabin BK
 
Heun's Method
Heun's MethodHeun's Method
Heun's Method
Rabin BK
 
Mutual Exclusion
Mutual ExclusionMutual Exclusion
Mutual Exclusion
Rabin BK
 
Systems Usage
Systems UsageSystems Usage
Systems Usage
Rabin BK
 
Manager of a company
Manager of a companyManager of a company
Manager of a company
Rabin BK
 

More from Rabin BK (20)

Artificial Intelligence in E-commerce
Artificial Intelligence in E-commerceArtificial Intelligence in E-commerce
Artificial Intelligence in E-commerce
 
Three address code generation
Three address code generationThree address code generation
Three address code generation
 
Consumer Oriented Application, Mercantile process and Mercantile models
Consumer Oriented Application, Mercantile process and Mercantile modelsConsumer Oriented Application, Mercantile process and Mercantile models
Consumer Oriented Application, Mercantile process and Mercantile models
 
Clang compiler `
Clang compiler `Clang compiler `
Clang compiler `
 
Simple Mail Transfer Protocol
Simple Mail Transfer ProtocolSimple Mail Transfer Protocol
Simple Mail Transfer Protocol
 
HTML text formatting tags
HTML text formatting tagsHTML text formatting tags
HTML text formatting tags
 
Data encryption in database management system
Data encryption in database management systemData encryption in database management system
Data encryption in database management system
 
Object Relational Database Management System(ORDBMS)
Object Relational Database Management System(ORDBMS)Object Relational Database Management System(ORDBMS)
Object Relational Database Management System(ORDBMS)
 
Kolmogorov Smirnov
Kolmogorov SmirnovKolmogorov Smirnov
Kolmogorov Smirnov
 
Job sequencing in Data Strcture
Job sequencing in Data StrctureJob sequencing in Data Strcture
Job sequencing in Data Strcture
 
Stack Data Structure
Stack Data StructureStack Data Structure
Stack Data Structure
 
Bluetooth
BluetoothBluetooth
Bluetooth
 
Data Science
Data ScienceData Science
Data Science
 
Graphics_3D viewing
Graphics_3D viewingGraphics_3D viewing
Graphics_3D viewing
 
Neural Netwrok
Neural NetwrokNeural Netwrok
Neural Netwrok
 
Watermarking in digital images
Watermarking in digital imagesWatermarking in digital images
Watermarking in digital images
 
Heun's Method
Heun's MethodHeun's Method
Heun's Method
 
Mutual Exclusion
Mutual ExclusionMutual Exclusion
Mutual Exclusion
 
Systems Usage
Systems UsageSystems Usage
Systems Usage
 
Manager of a company
Manager of a companyManager of a company
Manager of a company
 

Recently uploaded

H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
AmarGB2
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
AafreenAbuthahir2
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
BrazilAccount1
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
SupreethSP4
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
Vijay Dialani, PhD
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 

Recently uploaded (20)

H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 

Statistics-Non parametric test

  • 1. 1Presented by: Group-E (The Anonymous) Gagan Puri Bikram Bhurtel Rabin B.K Bimal Pradhan
  • 2. What is parametric test? What is non-parametric test? Difference between parametric and non-parametric test Chi-square test (χ2) Run test Sign test Kolmogorov Smirnov test Cochran Q. test Friedman F. test References 2
  • 3. ● Parametric tests involve estimation parameters such as the mean and assume that distribution of sample means are normally distributed ● Non parametric tests were developed for these situations where fewer assumptions have to be made ● Some times called distribution free tests ● There are some assumptions in nonparametric test but are of less stringent 3
  • 4. S/n Parametric test S/n Non parametric test 1 It specifies certain condition about parameter of the population from which sample is selected. 1 It doesn't specifies certain condition about parameter of the population from which sample is selected. 2 It is used in testing of hypothesis and estimation of parameters. 2 It is used in testing of hypothesis but not in estimation of parameters. 3 Mostly it is used in data measured in interval and ratio scale. 3 It is used in data measured in nominal and ordinal scale. 4 It is most powerful 4 It is less powerful 5 It requires complicated sampling technique 5 It doesn’t require complicated sampling techinque. Difference between parametric and non-parametric test
  • 5. ➢Used to test significant difference between observed frequencies and expected frequencies ➢Let ‘n’ be the observation of the random variable x and classified k (no) of classes WRT frequencies ➢ Problem to test: ➢ Chi-square test 5 𝐻1: 𝑂𝑖 ≠ 𝐸𝑖 𝐻1: 𝑂𝑖 = 𝐸𝑖
  • 6. χ2 = 𝑖=1 𝑘 𝑂𝑖 − 𝐸𝑖 2 𝐸𝑖 ∼ χ2 𝑘−1 Test statistics If be the the level of significance and (k-1) be degree of freedom then critical value is obtained from table Decision: then we reject the null hypothesis otherwise accepted α If χ 𝑐𝑎𝑙𝑐𝑢𝑙𝑎𝑡𝑒𝑑 2 > χ 𝑡𝑎𝑏𝑢𝑙𝑡𝑒𝑑 2
  • 7.  Sequence of letter of one kind bounded by letter of other kind is called run ++++++++----------+++++++-------+++--- here no. of run = 6  Test used for testing the randomness of sequence of sample event Problem to test:- Hₒ: The sequence are in random order Hˌ: The sequence are not in random order 7
  • 8. For small sample size (n1,n2 ≤ 20) Test statistics: number of runs (r) Level of significance: α=0.05 unless we are given Critical value: ṟ and ȓ obtained from the table according to α, degree of freedom n1 and n2 and alternative hypothesis Decision: accept Hₒ at a level of significance if rϵ(ṟ,ȓ), reject otherwise 8
  • 9. Example: HH TTT H T HHH TT HH T no. of heads (n1)=8, no of tails (n2)= 7, no. of runs (r)=8 Problem to test: Hₒ : the sequence are in random order Hˌ : the sequence are not in random order Test statistics: r=8 Critical value: at α=0.05, n1=8 and n2=7, ṟ=4 and ȓ=13 Decision : r=8 ϵ (ṟ=4, ȓ=13), accept Hₒ Conclusion : the sequence of H and T are in random order. 9
  • 10. 10
  • 11. For large sample size (n1, n2 ≥ 20) r is approximately normally distributed with mean, և = 2n1n2 (n1+n2) +1 and variance , σ² = 2n1n2(2n1n2−n1−n2) (n1+n2)²(n1+n2−1) Test statistics z= (r−և) σ² ~ N(0,1) Level of significance: α=0.05, unless we are given Critical value : z is obtained from table according to level of significance and alternative hypothesis Decision: accept Hₒ if |z |< ztabulated, reject otherwise 11
  • 12. Example: 46,58,60,56,70,66,48,54,62,41,39,52,45,62,53,69,65,65,67,76, 52,52,59,59,67,51,46,61,40,43,42,77,67,63,59,63,63,72,57,59, 42,56,47,62,67,70,63,66,69 and 73 Here sample size (n)=50, median=59.5 assign A>median, B<median , delete if number=median Thus, the sample becomes: BB A B AA BB A BBBB A B AAAAA BBBB A BB A BBB AAA B AAA BBBBB AAAAAAA no. of A (n1)=25, no. of B (n2)=25, r=20 և= 2 n1n2 n1+n2 +1 =26 and σ² = 2 n1n2(2 n1n2−n1−n2) (n1+n2)²(n1+n2−1) = 12.2 σ= 12.2 = 3.5 12
  • 13. Problem to test: Hₒ : sample are in random order Hˌ : sample are not in random order. Test statistics: z=(r-և)/σ =(20-26)/3.5 = -1.71 Critical value: At α=0.05, ztabulated = 1.96 Decision: |z|=1.71<ztabulated=1.96, we accept Hₒ at α=0.05 Conclusion: The sample are in random order. 13
  • 14. Based on the direction of differences between two measures Test statistic • Under H0 test statistic is, X0 = minimum of n(+) or n(-) Critical region: • K = (𝑛−1) 2 − 0.98 𝑛 Decision:  Null hypothesis is rejected if X0 ≤ K otherwise accepted Two types of sign test:  Small sample case (n ≤ 25)  Large sample case (n > 25) Sign test 14
  • 15. Example: A study was designed to determine the effect if a certain movie on the moral attitude of young children. The data below represents a rating from 0 to 20 on a moral attitude to high morality. Carry out the test hypothesis that movie had no effect on moral attitude of children against it had using sign test at level 0.1. [T.U 2069] 15 Before 14 16 15 18 15 17 19 17 17 16 14 15 After 13 18 16 17 16 19 20 18 19 15 18 16
  • 16. Solution 16 Before 14 16 15 18 15 17 19 17 17 16 14 15 After 13 18 16 17 16 19 20 18 19 15 18 16 Sign + - - + - - - - - + - - Null Hypothesis (H0): M 𝑑1 = M 𝑑2 i.e. , movie has effect on moral attitude of children Alternative hypothesis (H1): M 𝑑1 ≠ M 𝑑2 , i.e., movie has no effect on moral attitude of children Number of + signs (+) = 3 Number of – signs (-) = 9 Test statistic: P0 = min{n(+),n(-)} = min {3,9} = 3 Critical value: K = (n−1) 2 − 0.98 n = (12−1) 2 − 0.98 × 12 = 2.1051 For 0.1 level of significance, P-value(P0) = P(y≤ 3) = 0.073 Decision: Since, P0=0.073<0.1= K, we reject null hypothesis, i.e., movie has effect on moral attitude of children Here, n>25 so K = (𝑛−1) 2 − 0.98 𝑛
  • 17. Alternate of Chi-square test for goodness of fit when sample size are small Test statistic: • D0 = Max F 𝑒 − F 𝑜 Decision: • Accept H0, if (calculated) D0 < (tabulated) Dmax 17 Kolmogorov Smirnov test
  • 18. Example: The number of disease infected tomato plants in 10 different plots of equal size are given below: Test whether the disease infected plants are uniformly distributed over the entire area using Kolmogorov Smirnov test. Plot no: 1 2 3 4 5 6 7 8 9 10 No. of infected plants 8 10 9 12 13 7 5 12 13 9 Two tailed test H0 = Md = Infected plants are uniformly distributed H1 ≠ Md = Infected plants are not uniformly distributed Solution: 18
  • 19. 19 Plot no No. of infected plants (f0) Cf0 Relative observed frequency F0 Expected frequency fe Cfe Expected relative frequency (Fe) Fe − F0 1 8 8 8/100 10 10 10/100 0.02 2 10 18 18/100 10 20 20/100 0.02 3 9 27 27/100 10 30 30/100 0.03 4 12 39 39/100 10 40 40/100 0.01 5 15 54 54/100 10 50 50/100 0.04 6 7 61 61/100 10 60 60/100 0.01 7 5 66 66/100 10 70 70/100 0.04 8 12 78 78/100 10 80 80/100 0.02 9 13 91 91/100 10 90 90/100 0.01 10 9 100 100/100 10 100 100/100 1
  • 20. Test statistic: Calculated D0 = Max Fe − F0 = 0.04 = 4 100 Tabulated D0 = 0.136 Decision: Since calculated D0 = 0.04 < tabulated D0 = 0.136, we accept null hypothesis, i.e., the infected plants are uniformly distributed. 20 Since n>40, tabulated D0 = 1.36 𝑛 = 1.36 100 = 1.36 10 = 0.136
  • 21. 21
  • 22. Cochran Q test • Non-parametric test used or more than two related samples. • Use to test significance difference in frequencies or properties of given samples. • Problem to test:- Hₒ:- All the treatment are equally effective. Hi :- All the treatment are not equally effective Test statistics: Decision:- Reject Hₒ if Q > Q = K−1 {k R 𝑖 2 − R2 } k C 𝑗 − C 𝑗 2 ~ χ2 (𝑘−1)df
  • 23. Friedman F test • Used to test significant different between location of three or more populations. • Problem to test:- Hₒ:- Md₁ = Md₂ = Md₃=Mdk H1:- at least one md is different, I=1,2,3,……,k Test statistics:- Decision:- Accept H0 if p > 𝛼 or reject F 𝑟 = 12 nk(k+1) R 𝑖 2 - 3n (k+1) F 𝑟 = 12 nk(k+1) R 𝑖 2 − 3n (k+1) 1− t 𝑖 3 −t 𝑖 𝑛(k3 −𝐾)
  • 24. References: Probability and Statistics (Course book) Teachers note google.com wikipedia.com 24