SlideShare a Scribd company logo
1 of 18
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Kolmogorov-Smirnov test
Demystifying statistics series: Meta-analysis course Dr. S. A. Rizwan, M.D. Nov 2019 1
Dr. S. A. Rizwan, M.D.,
Public Health Specialist,
Saudi Board of Community Medicine,
Riyadh, Kingdom of Saudi Arabia.
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Outline
Demystifying statistics series: Meta-analysis course Dr. S. A. Rizwan, M.D. Nov 2019 2
• Introduction
• Uses
• Advantages and disadvantages
• Example
• Take home messages
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Introduction
Demystifying statistics series: Meta-analysis course Dr. S. A. Rizwan, M.D. Nov 2019 3
• KS test belongs a group of tests called goodness of fit tests
• Other members are chi square test and Anderson-Darling test
• Goodness of fit tests check whether there is a significant
difference between an observed frequency distribution and a
given theoretical (expected) frequency distribution
• Similar to what the Chi-Square test does, but the K-S test has
several advantages:
– More powerful test.
– Easier to compute and use, as no grouping of data is required.
– The test statistic is independent of the expected frequency distribution.
– It only depends on the sample size n.
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Andrey Kolmogorov, Nikolai Smirnov
Demystifying statistics series: Meta-analysis course Dr. S. A. Rizwan, M.D. Nov 2019 4
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Introduction
Demystifying statistics series: Meta-analysis course Dr. S. A. Rizwan, M.D. Nov 2019 5
• The hypotheses:
– H0: The observed frequency distribution is consistent with the theoretical
frequency distribution (Good fit).
– H1: The observed frequency distribution is not consistent with the theoretical
frequency distribution (Bad fit).
– α = Level of significance of the test.
• Here we use the cumulative probability distribution (CDF) of
observed and theoretical frequencies.
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Introduction
Demystifying statistics series: Meta-analysis course Dr. S. A. Rizwan, M.D. Nov 2019 6
• The basis of the test is that it relates the distance between the
cumulative fraction functions of the two samples as a number,
D, which is then compared to the critical-D value for that data
distribution.
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
K-S test statistic
• Here,
– Fe = the expected relative cumulative frequencies (CDF).
– Fo = the observed relative cumulative frequencies (CDF).
• If the gap between Fe and Fo is large then Ho should be rejected.
• A K-S test is a one tailed test.
• The critical values of Dn have been tabulated and can be found from the K-
S table for corresponding levels of significance and sample size n.
• The calculated value of Dn is compared with the critical value of Dn.
• If the calculated value > critical value, then reject H0.
Demystifying statistics series: Meta-analysis course Dr. S. A. Rizwan, M.D. Nov 2019 7
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
K-S tables
Demystifying statistics series: Meta-analysis course Dr. S. A. Rizwan, M.D. Nov 2019 8
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Uses of K-S test
Demystifying statistics series: Meta-analysis course Dr. S. A. Rizwan, M.D. Nov 2019 9
• We usually use this test to check the normality assumption.
• This test is used to test goodness of fit or shape and can be
used instead of the chi square test (one-sample K-S test).
• It simply needs the maximum difference between two
cumulative distribution curves.
• It can either compare a sample with a reference probability
distribution or it can directly compare two sample datasets
(two-sample K-S test).
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
The KS test
Demystifying statistics series: Meta-analysis course Dr. S. A. Rizwan, M.D. Nov 2019 10
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Steps in K-S test
Demystifying statistics series: Meta-analysis course Dr. S. A. Rizwan, M.D. Nov 2019 11
• Sort data from smallest to largest.
• Convert the data distribution to a cumulative distribution S(x).
• Plot the cumulative distribution along with the comparison
distribution.
• Find the maximum absolute difference (D value).
• If D is greater than critical-D, then it can be concluded that the
distributions are indeed different, otherwise there is not
enough evidence to prove difference between the two
datasets.
• A P-value can also be calculated from the D-value and the
sample size of the two data sets
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Strengths of the K-S test
Demystifying statistics series: Meta-analysis course Dr. S. A. Rizwan, M.D. Nov 2019 12
• It is nonparametric.
• D-value result will not change if X values are transformed to
logs or reciprocals or any other transformation.
• No restriction on sample size.
• The D-value is easy to compute and the graph can be
understood easily.
• One sample K-S test can serve as a goodness-of-fit test and
can link data and theory.
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Drawbacks
Demystifying statistics series: Meta-analysis course Dr. S. A. Rizwan, M.D. Nov 2019 13
• The K-S test is less sensitive when the differences between
curves is greatest at the beginning or the end of the
distributions.
• It works best only when EDFs deviate the most near the
center of the distribution.
• The situation in which normality tests are needed -small
sample sizes- is also the situation in which they perform
poorly
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Example 1
• H0: The distn. is normal with μ= 6.80, σ= 1.24.
• H1: Above not true.
• We obtain Fe values from the normal table, z= (X- μ)/ σ.
• The calculated value of Dn is the maximum value in the | Fe - Fo | column.
Thus, 0.0373.
• For the predecided level of significance, Dcritical = 0.0416.
• Dn < Dcritical , so accept H0 and conclude that it is a good fit.
Demystifying statistics series: Meta-analysis course Dr. S. A. Rizwan, M.D. Nov 2019 14
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Example 2
Demystifying statistics series: Meta-analysis course Dr. S. A. Rizwan, M.D. Nov 2019 15
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Example 3
Demystifying statistics series: Meta-analysis course Dr. S. A. Rizwan, M.D. Nov 2019 16
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Take home messages
Demystifying statistics series: Meta-analysis course Dr. S. A. Rizwan, M.D. Nov 2019 17
• KS test belongs a group of tests called goodness of fit tests
• Used to check normality assumption
• The basis of the test is that it relates the distance between the
cumulative fraction functions of the two samples as “D”
• More powerful test than chi square test
• Less sensitive when the differences between curves is
greatest at the beginning or the end of the distributions
• SPSS tutorial https://www.spss-tutorials.com/spss-
kolmogorov-smirnov-test-for-normality/
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Kindly email your queries to sarizwan1986@outlook.com
THANK YOU
Demystifying statistics series: Meta-analysis course Dr. S. A. Rizwan, M.D. Nov 2019 18

More Related Content

Similar to 4-191125033339.pptx kolmogorov smirnov test

Types of correlation coefficients
Types of correlation coefficientsTypes of correlation coefficients
Types of correlation coefficientsRizwan S A
 
Presenting the results of meta-analysis
Presenting the results of meta-analysisPresenting the results of meta-analysis
Presenting the results of meta-analysisRizwan S A
 
Data extraction/coding and database structure in meta-analysis
Data extraction/coding and database structure in meta-analysisData extraction/coding and database structure in meta-analysis
Data extraction/coding and database structure in meta-analysisRizwan S A
 
Analysis of small datasets
Analysis of small datasetsAnalysis of small datasets
Analysis of small datasetsRizwan S A
 
Statistical tests for data involving quantitative data
Statistical tests for data involving quantitative dataStatistical tests for data involving quantitative data
Statistical tests for data involving quantitative dataRizwan S A
 
Overview of the systematic review process
Overview of the systematic review processOverview of the systematic review process
Overview of the systematic review processRizwan S A
 
Correlationship between academic performance and clinicalcompetence of radiog...
Correlationship between academic performance and clinicalcompetence of radiog...Correlationship between academic performance and clinicalcompetence of radiog...
Correlationship between academic performance and clinicalcompetence of radiog...Faithfulness4
 
Cost utility analysis of interventions to return employees to work following ...
Cost utility analysis of interventions to return employees to work following ...Cost utility analysis of interventions to return employees to work following ...
Cost utility analysis of interventions to return employees to work following ...ScHARR HEDS
 
Methodology Checklist : Studies of Diagnostic Accuracy
Methodology Checklist : Studies of Diagnostic AccuracyMethodology Checklist : Studies of Diagnostic Accuracy
Methodology Checklist : Studies of Diagnostic AccuracyQURATULAIN MUGHAL
 
REFERENCE RANGE PART ONE . PRECISION AND ACCURACY
REFERENCE RANGE PART ONE . PRECISION AND ACCURACYREFERENCE RANGE PART ONE . PRECISION AND ACCURACY
REFERENCE RANGE PART ONE . PRECISION AND ACCURACYJohn Mak
 
How to assess the reliability of measurements in rehabilitation
How to assess the reliability of measurements in rehabilitationHow to assess the reliability of measurements in rehabilitation
How to assess the reliability of measurements in rehabilitationanalisedecurvas
 
RESEARCH ARTICLE Open AccessImproving patient safety cultu.docx
RESEARCH ARTICLE Open AccessImproving patient safety cultu.docxRESEARCH ARTICLE Open AccessImproving patient safety cultu.docx
RESEARCH ARTICLE Open AccessImproving patient safety cultu.docxrgladys1
 
ScHARR, ISPOR Presentation, Madrid, November, 2011
ScHARR, ISPOR Presentation, Madrid, November, 2011ScHARR, ISPOR Presentation, Madrid, November, 2011
ScHARR, ISPOR Presentation, Madrid, November, 2011ScHARR HEDS
 
Increase Tdap Vaccination Rates.docx
Increase Tdap Vaccination Rates.docxIncrease Tdap Vaccination Rates.docx
Increase Tdap Vaccination Rates.docxwrite4
 
RESEARCH Open AccessA methodological review of resilience.docx
RESEARCH Open AccessA methodological review of resilience.docxRESEARCH Open AccessA methodological review of resilience.docx
RESEARCH Open AccessA methodological review of resilience.docxverad6
 
1559221358_week 6-MCQ in EBP-1.pdf
1559221358_week 6-MCQ in EBP-1.pdf1559221358_week 6-MCQ in EBP-1.pdf
1559221358_week 6-MCQ in EBP-1.pdfSajidaCheema1
 
Heterogeneity in meta-analysis
Heterogeneity in meta-analysisHeterogeneity in meta-analysis
Heterogeneity in meta-analysisRizwan S A
 
Evidence-Based Practice· Hande, K., Williams, C. T., Robbins, H..docx
Evidence-Based Practice· Hande, K., Williams, C. T., Robbins, H..docxEvidence-Based Practice· Hande, K., Williams, C. T., Robbins, H..docx
Evidence-Based Practice· Hande, K., Williams, C. T., Robbins, H..docxpauline234567
 

Similar to 4-191125033339.pptx kolmogorov smirnov test (20)

Types of correlation coefficients
Types of correlation coefficientsTypes of correlation coefficients
Types of correlation coefficients
 
Presenting the results of meta-analysis
Presenting the results of meta-analysisPresenting the results of meta-analysis
Presenting the results of meta-analysis
 
Data extraction/coding and database structure in meta-analysis
Data extraction/coding and database structure in meta-analysisData extraction/coding and database structure in meta-analysis
Data extraction/coding and database structure in meta-analysis
 
Analysis of small datasets
Analysis of small datasetsAnalysis of small datasets
Analysis of small datasets
 
Statistical tests for data involving quantitative data
Statistical tests for data involving quantitative dataStatistical tests for data involving quantitative data
Statistical tests for data involving quantitative data
 
Overview of the systematic review process
Overview of the systematic review processOverview of the systematic review process
Overview of the systematic review process
 
Reliability
ReliabilityReliability
Reliability
 
Correlationship between academic performance and clinicalcompetence of radiog...
Correlationship between academic performance and clinicalcompetence of radiog...Correlationship between academic performance and clinicalcompetence of radiog...
Correlationship between academic performance and clinicalcompetence of radiog...
 
Cost utility analysis of interventions to return employees to work following ...
Cost utility analysis of interventions to return employees to work following ...Cost utility analysis of interventions to return employees to work following ...
Cost utility analysis of interventions to return employees to work following ...
 
Methodology Checklist : Studies of Diagnostic Accuracy
Methodology Checklist : Studies of Diagnostic AccuracyMethodology Checklist : Studies of Diagnostic Accuracy
Methodology Checklist : Studies of Diagnostic Accuracy
 
REFERENCE RANGE PART ONE . PRECISION AND ACCURACY
REFERENCE RANGE PART ONE . PRECISION AND ACCURACYREFERENCE RANGE PART ONE . PRECISION AND ACCURACY
REFERENCE RANGE PART ONE . PRECISION AND ACCURACY
 
How to assess the reliability of measurements in rehabilitation
How to assess the reliability of measurements in rehabilitationHow to assess the reliability of measurements in rehabilitation
How to assess the reliability of measurements in rehabilitation
 
RESEARCH ARTICLE Open AccessImproving patient safety cultu.docx
RESEARCH ARTICLE Open AccessImproving patient safety cultu.docxRESEARCH ARTICLE Open AccessImproving patient safety cultu.docx
RESEARCH ARTICLE Open AccessImproving patient safety cultu.docx
 
ScHARR, ISPOR Presentation, Madrid, November, 2011
ScHARR, ISPOR Presentation, Madrid, November, 2011ScHARR, ISPOR Presentation, Madrid, November, 2011
ScHARR, ISPOR Presentation, Madrid, November, 2011
 
Increase Tdap Vaccination Rates.docx
Increase Tdap Vaccination Rates.docxIncrease Tdap Vaccination Rates.docx
Increase Tdap Vaccination Rates.docx
 
Clinical prediction models
Clinical prediction modelsClinical prediction models
Clinical prediction models
 
RESEARCH Open AccessA methodological review of resilience.docx
RESEARCH Open AccessA methodological review of resilience.docxRESEARCH Open AccessA methodological review of resilience.docx
RESEARCH Open AccessA methodological review of resilience.docx
 
1559221358_week 6-MCQ in EBP-1.pdf
1559221358_week 6-MCQ in EBP-1.pdf1559221358_week 6-MCQ in EBP-1.pdf
1559221358_week 6-MCQ in EBP-1.pdf
 
Heterogeneity in meta-analysis
Heterogeneity in meta-analysisHeterogeneity in meta-analysis
Heterogeneity in meta-analysis
 
Evidence-Based Practice· Hande, K., Williams, C. T., Robbins, H..docx
Evidence-Based Practice· Hande, K., Williams, C. T., Robbins, H..docxEvidence-Based Practice· Hande, K., Williams, C. T., Robbins, H..docx
Evidence-Based Practice· Hande, K., Williams, C. T., Robbins, H..docx
 

Recently uploaded

{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...Pooja Nehwal
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改atducpo
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxJohnnyPlasten
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Predicting Employee Churn: A Data-Driven Approach Project Presentation
Predicting Employee Churn: A Data-Driven Approach Project PresentationPredicting Employee Churn: A Data-Driven Approach Project Presentation
Predicting Employee Churn: A Data-Driven Approach Project PresentationBoston Institute of Analytics
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...soniya singh
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...Florian Roscheck
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfRachmat Ramadhan H
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Callshivangimorya083
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiSuhani Kapoor
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubaihf8803863
 
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiSuhani Kapoor
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz1
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts ServiceSapana Sha
 

Recently uploaded (20)

{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptx
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Predicting Employee Churn: A Data-Driven Approach Project Presentation
Predicting Employee Churn: A Data-Driven Approach Project PresentationPredicting Employee Churn: A Data-Driven Approach Project Presentation
Predicting Employee Churn: A Data-Driven Approach Project Presentation
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
E-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptxE-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptx
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
 
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signals
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts Service
 

4-191125033339.pptx kolmogorov smirnov test

  • 1. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Kolmogorov-Smirnov test Demystifying statistics series: Meta-analysis course Dr. S. A. Rizwan, M.D. Nov 2019 1 Dr. S. A. Rizwan, M.D., Public Health Specialist, Saudi Board of Community Medicine, Riyadh, Kingdom of Saudi Arabia.
  • 2. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Outline Demystifying statistics series: Meta-analysis course Dr. S. A. Rizwan, M.D. Nov 2019 2 • Introduction • Uses • Advantages and disadvantages • Example • Take home messages
  • 3. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Introduction Demystifying statistics series: Meta-analysis course Dr. S. A. Rizwan, M.D. Nov 2019 3 • KS test belongs a group of tests called goodness of fit tests • Other members are chi square test and Anderson-Darling test • Goodness of fit tests check whether there is a significant difference between an observed frequency distribution and a given theoretical (expected) frequency distribution • Similar to what the Chi-Square test does, but the K-S test has several advantages: – More powerful test. – Easier to compute and use, as no grouping of data is required. – The test statistic is independent of the expected frequency distribution. – It only depends on the sample size n.
  • 4. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Andrey Kolmogorov, Nikolai Smirnov Demystifying statistics series: Meta-analysis course Dr. S. A. Rizwan, M.D. Nov 2019 4
  • 5. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Introduction Demystifying statistics series: Meta-analysis course Dr. S. A. Rizwan, M.D. Nov 2019 5 • The hypotheses: – H0: The observed frequency distribution is consistent with the theoretical frequency distribution (Good fit). – H1: The observed frequency distribution is not consistent with the theoretical frequency distribution (Bad fit). – α = Level of significance of the test. • Here we use the cumulative probability distribution (CDF) of observed and theoretical frequencies.
  • 6. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Introduction Demystifying statistics series: Meta-analysis course Dr. S. A. Rizwan, M.D. Nov 2019 6 • The basis of the test is that it relates the distance between the cumulative fraction functions of the two samples as a number, D, which is then compared to the critical-D value for that data distribution.
  • 7. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA K-S test statistic • Here, – Fe = the expected relative cumulative frequencies (CDF). – Fo = the observed relative cumulative frequencies (CDF). • If the gap between Fe and Fo is large then Ho should be rejected. • A K-S test is a one tailed test. • The critical values of Dn have been tabulated and can be found from the K- S table for corresponding levels of significance and sample size n. • The calculated value of Dn is compared with the critical value of Dn. • If the calculated value > critical value, then reject H0. Demystifying statistics series: Meta-analysis course Dr. S. A. Rizwan, M.D. Nov 2019 7
  • 8. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA K-S tables Demystifying statistics series: Meta-analysis course Dr. S. A. Rizwan, M.D. Nov 2019 8
  • 9. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Uses of K-S test Demystifying statistics series: Meta-analysis course Dr. S. A. Rizwan, M.D. Nov 2019 9 • We usually use this test to check the normality assumption. • This test is used to test goodness of fit or shape and can be used instead of the chi square test (one-sample K-S test). • It simply needs the maximum difference between two cumulative distribution curves. • It can either compare a sample with a reference probability distribution or it can directly compare two sample datasets (two-sample K-S test).
  • 10. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA The KS test Demystifying statistics series: Meta-analysis course Dr. S. A. Rizwan, M.D. Nov 2019 10
  • 11. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Steps in K-S test Demystifying statistics series: Meta-analysis course Dr. S. A. Rizwan, M.D. Nov 2019 11 • Sort data from smallest to largest. • Convert the data distribution to a cumulative distribution S(x). • Plot the cumulative distribution along with the comparison distribution. • Find the maximum absolute difference (D value). • If D is greater than critical-D, then it can be concluded that the distributions are indeed different, otherwise there is not enough evidence to prove difference between the two datasets. • A P-value can also be calculated from the D-value and the sample size of the two data sets
  • 12. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Strengths of the K-S test Demystifying statistics series: Meta-analysis course Dr. S. A. Rizwan, M.D. Nov 2019 12 • It is nonparametric. • D-value result will not change if X values are transformed to logs or reciprocals or any other transformation. • No restriction on sample size. • The D-value is easy to compute and the graph can be understood easily. • One sample K-S test can serve as a goodness-of-fit test and can link data and theory.
  • 13. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Drawbacks Demystifying statistics series: Meta-analysis course Dr. S. A. Rizwan, M.D. Nov 2019 13 • The K-S test is less sensitive when the differences between curves is greatest at the beginning or the end of the distributions. • It works best only when EDFs deviate the most near the center of the distribution. • The situation in which normality tests are needed -small sample sizes- is also the situation in which they perform poorly
  • 14. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Example 1 • H0: The distn. is normal with μ= 6.80, σ= 1.24. • H1: Above not true. • We obtain Fe values from the normal table, z= (X- μ)/ σ. • The calculated value of Dn is the maximum value in the | Fe - Fo | column. Thus, 0.0373. • For the predecided level of significance, Dcritical = 0.0416. • Dn < Dcritical , so accept H0 and conclude that it is a good fit. Demystifying statistics series: Meta-analysis course Dr. S. A. Rizwan, M.D. Nov 2019 14
  • 15. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Example 2 Demystifying statistics series: Meta-analysis course Dr. S. A. Rizwan, M.D. Nov 2019 15
  • 16. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Example 3 Demystifying statistics series: Meta-analysis course Dr. S. A. Rizwan, M.D. Nov 2019 16
  • 17. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Take home messages Demystifying statistics series: Meta-analysis course Dr. S. A. Rizwan, M.D. Nov 2019 17 • KS test belongs a group of tests called goodness of fit tests • Used to check normality assumption • The basis of the test is that it relates the distance between the cumulative fraction functions of the two samples as “D” • More powerful test than chi square test • Less sensitive when the differences between curves is greatest at the beginning or the end of the distributions • SPSS tutorial https://www.spss-tutorials.com/spss- kolmogorov-smirnov-test-for-normality/
  • 18. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Kindly email your queries to sarizwan1986@outlook.com THANK YOU Demystifying statistics series: Meta-analysis course Dr. S. A. Rizwan, M.D. Nov 2019 18