SlideShare uma empresa Scribd logo
1 de 51
Dr. Muhammedirfan H. Momin
Assistant Professor
Community Medicine Department
Government Medical College, Surat.




              DR IRFAN MOMIN
INTRODUCTION
      The use of any statistical method for
      analyzing data is based on the objectives
      of the study, the hypothesis to be tested
      and type of available statistical data
      which is to be analyzed to answer the
      research questions




DR IRFAN MOMIN
Statistical Tests
 How to tell if something (or somethings) is different
 from something else




               DR IRFAN MOMIN
TYPES OF DATA

      It can be
      -Primary or Secondary
      -Qualitative or Quantitative




DR IRFAN MOMIN
• Primary data is that which is collected by the
        researcher to address the current research.

      • Secondary data refers to data gathered by
        others or from other studies like official
        records, publications, documents etc.

      • Qualitative data refers to data having
        counting of the individuals for the same
        characteristic and not by measurement.

      • Quantitative data refers to data having
        magnitude and the characteristic is measured
        either on an interval or on a ratio scale.

DR IRFAN MOMIN
Qualitative ( Sex, Religion)
• Data types
                   Quantitative

                  Continuous               Discrete
                 (measurable)             (countable)

                     Age                No. of. Children
                     Hb                 No. of Cases




DR IRFAN MOMIN
SAMPLE DATA SET
  Pt. No. Hb.        Pt. No.    Hb.   Pt. No.    Hb.
    1    12.0         11       11.2    21       14.9
    2    11.9         12       13.6    22       12.2
    3    11.5         13       10.8    23       12.2
    4    14.2         14       12.3    24       11.4
    5    12.3         15       12.3    25       10.7
    6    13.0         16       15.7    26       12.7
    7    10.5         17       12.6    27       11.8
    8    12.8         18        9.1    28       15.1
    9    13.5         19       12.9    29       13.4
   10    11.2         20       14.6    30       13.1

DR IRFAN MOMIN
TABLE FREQUENCY DISTRIBUTION OF
      30 ADULT MALE PATIENTS BY Hb


                 Hb (g/dl)     No. of patients

                 9.0 – 9.9        1
                 10.0 – 10.9      3
                 11.0 – 11.9      6
                 12.0 – 12.9     10
                 13.0 – 13.9      5
                 14.0 – 14.9      3
                 15.0 – 15.9      2

                 Total           30
DR IRFAN MOMIN
DR IRFAN MOMIN
Table 1 Risk factors for Myocardial Infarction for patients (n=57)
        admitted to the Kilpauk Medical College Hospital,
        Chennai, Jan- Sep 1998


                     Risk factor         MI Patients
                                    No          %
                   Hypertension     24         42.1
                   Smoking          20         35.1
                   Diabetes         13         22.8
                   CAD              9          15.8
                   Hyperlipedemia   2           3.5
                   None             8          14.0



  DR IRFAN MOMIN
Steps in Test of Hypothesis
1.   Determine the appropriate test
2.   Establish the level of significance
3.   Formulate the statistical hypothesis
4.   Calculate the test statistic
5.   Compare computed test statistic against a
     tabled/critical value




               DR IRFAN MOMIN
1. Determine Appropriate Test
• Z Test for the Mean
• (Standard error of difference between two means)
• Z Test for the Proportion
• (Standard error of difference between two proportions)




                 DR IRFAN MOMIN
2. Establish Level of Significance
 p is a predetermined value
 The convention
       p = .05
       p = .01
       p = .001




                   DR IRFAN MOMIN
NORMAL DISTRIBUTION




DR IRFAN MOMIN
NORMAL DISTRIBUTION




DR IRFAN MOMIN
DR IRFAN MOMIN
DR IRFAN MOMIN
DR IRFAN MOMIN
A sampling distribution for
  H0 showing the region of
 rejection for   = .05 in a
      2-tailed z-test.

2-tailed regions



                        Fig 10.4 (Heiman

       DR IRFAN MOMIN
A sampling distribution for
  H0 showing the region of
 rejection for   = .05 in a
      1-tailed z-test.


1-tailed region, above mean



                        Fig 10.7 (Heiman

       DR IRFAN MOMIN
A sampling distribution for
  H0 showing the region of
 rejection for   = .05 in a
  1-tailed z-test where a
  decrease in the mean is
         predicted.



1-tailed region, below mean


                        Fig 10.8 (Heiman

       DR IRFAN MOMIN
DR IRFAN MOMIN
If P < 0.05, the observed difference is
        ‘SIGNIFICANT (Statistically)’

  P< 0.01, sometimes termed as ‘Highly Significant’




DR IRFAN MOMIN
INTERPRETATION OF SIGNIFICANCE


SIGNIFICANT      Does not necessarily mean that the
                   observed difference is REAL or
                   IMPORTANT. Only that it is unlikely
                   (< 5%) to be due to chance.




DR IRFAN MOMIN
INTERPRETATION OF NON - SIGNIFICANCE

NON - SIGNIFICANT   Does not necessarily mean that
                    there is no real difference; it means
                    only that the observed difference
                    could easily be due to chance
                    (Probability of at least 5%)




DR IRFAN MOMIN
3. Determine The Hypothesis:
Whether There is an Association
or Not
 Write down the NULL HYPOTHESIS and
  ALTERNATIVE HYPOTHESIS and set the LEVEL
  OF SIGNIFICANCE.
 Ho : The two variables are independent
 Ha : The two variables are associated
 We will set the level of significance at 0.05.




            DR IRFAN MOMIN
For Example
 Some null hypotheses may be:
    ‘there is no relationship between the height of the land
     and the vegetation cover’.

    ‘there is no difference in the location of superstores and
     small grocers shops’

    ‘there is no connection between the size of farm and the
     type of farm’



                DR IRFAN MOMIN
TEST FOR PROPORTIONS




DR IRFAN MOMIN
STANDARD ERROR OF DIFFERENCE
BETWEEN TWO PROPORTIONS


              P1 - P2
     Z = ------------------
          SE (P1 - P2)


         DR IRFAN MOMIN
STANDARD ERROR OF DIFFERENCE
BETWEEN TWO PROPORTIONS



SE (P1 - P2) =            P1Q1 + P2Q2
                           n1      n2


         DR IRFAN MOMIN
EXAMPLE
If swine flu mortality in one sample of 100 is 20% and in
   another sample of 100 it is 30%. Is the difference in
   mortality rate is significant?

P1= 20       q1 = 80            n1 = 100
P2= 30       q2 = 70            n2 = 100

               P1 - P2
      Z = ------------------
          SE (P1 - P2)
               DR IRFAN MOMIN
STANDARD ERROR OF DIFFERENCE
BETWEEN TWO PROPORTIONS



SE (P1 - P2) =            20x80 + 30x70
                           100     100


         DR IRFAN MOMIN
STANDARD ERROR OF DIFFERENCE
BETWEEN TWO PROPORTIONS



SE (P1 - P2) =    37
             = 6.08


         DR IRFAN MOMIN
EXAMPLE
If swine flu mortality in one sample of 100 is 20% and in
   another sample of 100 it is 30%. Is the difference in
   mortality rate is significant?

P1= 20       q1 = 80            n1 = 100
P2= 30       q2 = 70            n2 = 100

               P1 - P2
      Z = ------------------
          SE (P1 - P2)
               DR IRFAN MOMIN
EXAMPLE
If swine flu mortality in one sample of 100 is 20% and in
   another sample of 100 it is 30%. Is the difference in
   mortality rate is significant?

P1= 20       q1 = 80            n1 = 100
P2= 30       q2 = 70            n2 = 100

           20-30
      Z = --------- = -1.64
           6.08
               DR IRFAN MOMIN
Z value and probability



    z                    1.96   2.58
    p                    0.05   0.01


        DR IRFAN MOMIN
 Obtained z value (1.64) is less than critical z value
  (1.96) , so P >0.05, hence difference is insignificant at
  95 % confidence limits.




                DR IRFAN MOMIN
STANDARD ERROR OF DIFFERENCE
BETWEEN TWO MEANS


            X1 - X2
     Z = ------------------
          SE (X1 - X2)


         DR IRFAN MOMIN
STANDARD ERROR OF DIFFERENCE
BETWEEN TWO MEANS



SE (X1 - X2) =            SD12 + SD22
                           n1     n2


         DR IRFAN MOMIN
EXAMPLE
In a nutritional study, 100 children were given usual diet and 100
   were given vitamin A and D tablets. After 6 months, average
   weight of group A was 29kg with SD of 1.8kg and average
   weight of group B was 30kg with SD of 2kg. Is the difference
   is significant?

SD1= 1.8                n1 = 100
SD2= 2                  n2 = 100

               X1 - X2
      Z = ------------------
           SE (X1 - X2)

                 DR IRFAN MOMIN
STANDARD ERROR OF DIFFERENCE
BETWEEN TWO MEANS



SE (X1 - X2) =            SD12 + SD22
                           n1     n2


         DR IRFAN MOMIN
STANDARD ERROR OF DIFFERENCE
BETWEEN TWO MEANS



SE (X1 - X2) =            (1.8)2 + (2)2
                           100     100


         DR IRFAN MOMIN
STANDARD ERROR OF DIFFERENCE
BETWEEN TWO MEANS



SE (X1 - X2) =            (1.8)2 + (2)2
                           100     100


         DR IRFAN MOMIN
STANDARD ERROR OF DIFFERENCE
BETWEEN TWO MEANS



SE (X1 - X2) =            3.24+4
                           100


         DR IRFAN MOMIN
STANDARD ERROR OF DIFFERENCE
BETWEEN TWO MEANS



SE (X1 - X2) = 0.0724
             =0.27


        DR IRFAN MOMIN
EXAMPLE
In a nutritional study, 100 children were given usual diet and 100
   were given vitamin A and D tablets. After 6 months, average
   weight of group A was 29kg with SD of 1.8kg and average
   weight of group B was 30kg with SD of 2kg. Is the difference
   is significant?

SD1= 1.8                n1 = 100
SD2= 2                  n2 = 100

               X1 - X2
      Z = ------------------
           SE (X1 - X2)

                 DR IRFAN MOMIN
EXAMPLE
In a nutritional study, 100 children were given usual diet and 100
   were given vitamin A and D tablets. After 6 months, average
   weight of group A was 29kg with SD of 1.8kg and average
   weight of group B was 30kg with SD of 2kg. Is the difference
   is significant?

SD1= 1.8                n1 = 100
SD2= 2                  n2 = 100

               29 - 30
      Z = ---------------- =       -3.7
                0.27

                 DR IRFAN MOMIN
A sampling distribution for
  H0 showing the region of
 rejection for   = .05 in a
      2-tailed z-test.

2-tailed regions



                        Fig 10.4 (Heiman

       DR IRFAN MOMIN
Z value and probability



    z                    1.96   2.58
    p                    0.05   0.01


        DR IRFAN MOMIN
 As obtained value of z (-3.7) is higher than critical
  value (-1.96 or -2.58), the observed difference is highly
  significant, vitamins played a role in weight gain .




               DR IRFAN MOMIN
THANK YOU
drmhmomin@yahoo.co.in

Mobile: +91-9426845307


    DR IRFAN MOMIN

Mais conteúdo relacionado

Mais procurados

F test and ANOVA
F test and ANOVAF test and ANOVA
F test and ANOVAMEENURANJI
 
Statistical inference: Estimation
Statistical inference: EstimationStatistical inference: Estimation
Statistical inference: EstimationParag Shah
 
Statistics: Probability
Statistics: ProbabilityStatistics: Probability
Statistics: ProbabilitySultan Mahmood
 
Coefficient of correlation...ppt
Coefficient of correlation...pptCoefficient of correlation...ppt
Coefficient of correlation...pptRahul Dhaker
 
Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesisJags Jagdish
 
Parametric and nonparametric test
Parametric and nonparametric testParametric and nonparametric test
Parametric and nonparametric testponnienselvi
 
F Distribution
F  DistributionF  Distribution
F Distributionjravish
 
LEVEL OF SIGNIFICANCE.pptx
LEVEL OF SIGNIFICANCE.pptxLEVEL OF SIGNIFICANCE.pptx
LEVEL OF SIGNIFICANCE.pptxRingoNavarro3
 
Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Sneh Kumari
 
Brm (one tailed and two tailed hypothesis)
Brm (one tailed and two tailed hypothesis)Brm (one tailed and two tailed hypothesis)
Brm (one tailed and two tailed hypothesis)Upama Dwivedi
 
Normal distribution
Normal distributionNormal distribution
Normal distributionSonamWadhwa3
 
Parametric test - t Test, ANOVA, ANCOVA, MANOVA
Parametric test  - t Test, ANOVA, ANCOVA, MANOVAParametric test  - t Test, ANOVA, ANCOVA, MANOVA
Parametric test - t Test, ANOVA, ANCOVA, MANOVAPrincy Francis M
 
Chi squared test
Chi squared testChi squared test
Chi squared testDhruv Patel
 

Mais procurados (20)

Sign test
Sign testSign test
Sign test
 
F test and ANOVA
F test and ANOVAF test and ANOVA
F test and ANOVA
 
Statistical inference: Estimation
Statistical inference: EstimationStatistical inference: Estimation
Statistical inference: Estimation
 
Statistics: Probability
Statistics: ProbabilityStatistics: Probability
Statistics: Probability
 
Coefficient of correlation...ppt
Coefficient of correlation...pptCoefficient of correlation...ppt
Coefficient of correlation...ppt
 
Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesis
 
Parametric and nonparametric test
Parametric and nonparametric testParametric and nonparametric test
Parametric and nonparametric test
 
F Distribution
F  DistributionF  Distribution
F Distribution
 
LEVEL OF SIGNIFICANCE.pptx
LEVEL OF SIGNIFICANCE.pptxLEVEL OF SIGNIFICANCE.pptx
LEVEL OF SIGNIFICANCE.pptx
 
Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Analysis of variance (ANOVA)
Analysis of variance (ANOVA)
 
z-test
z-testz-test
z-test
 
Chi square test
Chi square testChi square test
Chi square test
 
Parametric vs Non-Parametric
Parametric vs Non-ParametricParametric vs Non-Parametric
Parametric vs Non-Parametric
 
Brm (one tailed and two tailed hypothesis)
Brm (one tailed and two tailed hypothesis)Brm (one tailed and two tailed hypothesis)
Brm (one tailed and two tailed hypothesis)
 
Student t test
Student t testStudent t test
Student t test
 
Normal distribution
Normal distributionNormal distribution
Normal distribution
 
T test
T testT test
T test
 
The mann whitney u test
The mann whitney u testThe mann whitney u test
The mann whitney u test
 
Parametric test - t Test, ANOVA, ANCOVA, MANOVA
Parametric test  - t Test, ANOVA, ANCOVA, MANOVAParametric test  - t Test, ANOVA, ANCOVA, MANOVA
Parametric test - t Test, ANOVA, ANCOVA, MANOVA
 
Chi squared test
Chi squared testChi squared test
Chi squared test
 

Destaque

Z test
Z testZ test
Z testkagil
 
Hypothesis Testing-Z-Test
Hypothesis Testing-Z-TestHypothesis Testing-Z-Test
Hypothesis Testing-Z-TestRoger Binschus
 
Online survey tools ppt 30-01-2016
Online survey tools ppt 30-01-2016Online survey tools ppt 30-01-2016
Online survey tools ppt 30-01-2016Vasantha Raju N
 
Test of hypothesis
Test of hypothesisTest of hypothesis
Test of hypothesisvikramlawand
 
Tools of data collection
Tools of data collectionTools of data collection
Tools of data collectionDr.Suresh Isave
 
A Guide to SlideShare Analytics - Excerpts from Hubspot's Step by Step Guide ...
A Guide to SlideShare Analytics - Excerpts from Hubspot's Step by Step Guide ...A Guide to SlideShare Analytics - Excerpts from Hubspot's Step by Step Guide ...
A Guide to SlideShare Analytics - Excerpts from Hubspot's Step by Step Guide ...SlideShare
 
What to Upload to SlideShare
What to Upload to SlideShareWhat to Upload to SlideShare
What to Upload to SlideShareSlideShare
 
Methods of data collection
Methods of data collection Methods of data collection
Methods of data collection PRIYAN SAKTHI
 

Destaque (14)

Z test
Z testZ test
Z test
 
Hypothesis Testing-Z-Test
Hypothesis Testing-Z-TestHypothesis Testing-Z-Test
Hypothesis Testing-Z-Test
 
Z tests test statistic
Z  tests test statisticZ  tests test statistic
Z tests test statistic
 
Online survey tools ppt 30-01-2016
Online survey tools ppt 30-01-2016Online survey tools ppt 30-01-2016
Online survey tools ppt 30-01-2016
 
Case Study Method
Case Study MethodCase Study Method
Case Study Method
 
Ppt data collection
Ppt data collectionPpt data collection
Ppt data collection
 
Test of hypothesis
Test of hypothesisTest of hypothesis
Test of hypothesis
 
Questionnaire
QuestionnaireQuestionnaire
Questionnaire
 
Tools of data collection
Tools of data collectionTools of data collection
Tools of data collection
 
Case study Research
Case study Research Case study Research
Case study Research
 
A Guide to SlideShare Analytics - Excerpts from Hubspot's Step by Step Guide ...
A Guide to SlideShare Analytics - Excerpts from Hubspot's Step by Step Guide ...A Guide to SlideShare Analytics - Excerpts from Hubspot's Step by Step Guide ...
A Guide to SlideShare Analytics - Excerpts from Hubspot's Step by Step Guide ...
 
Chapter 9-METHODS OF DATA COLLECTION
Chapter 9-METHODS OF DATA COLLECTIONChapter 9-METHODS OF DATA COLLECTION
Chapter 9-METHODS OF DATA COLLECTION
 
What to Upload to SlideShare
What to Upload to SlideShareWhat to Upload to SlideShare
What to Upload to SlideShare
 
Methods of data collection
Methods of data collection Methods of data collection
Methods of data collection
 

Semelhante a Z test

Z-Test and Standard error
Z-Test and Standard errorZ-Test and Standard error
Z-Test and Standard errordharazalavadiya
 
Community Medicine Presentation
Community Medicine PresentationCommunity Medicine Presentation
Community Medicine PresentationDr Ritesh Malik
 
Statistics for Journalists
Statistics for JournalistsStatistics for Journalists
Statistics for Journalistswritethinking
 
Sample size by formula
Sample size by formulaSample size by formula
Sample size by formulaMmedsc Hahm
 
Chapter 9 Two-Sample Inference 265 Chapter 9 Two-Sam.docx
Chapter 9 Two-Sample Inference 265 Chapter 9 Two-Sam.docxChapter 9 Two-Sample Inference 265 Chapter 9 Two-Sam.docx
Chapter 9 Two-Sample Inference 265 Chapter 9 Two-Sam.docxtiffanyd4
 
Estimating a Population Standard Deviation or Variance
Estimating a Population Standard Deviation or VarianceEstimating a Population Standard Deviation or Variance
Estimating a Population Standard Deviation or VarianceLong Beach City College
 
session three epidemiology.pptx
session three epidemiology.pptxsession three epidemiology.pptx
session three epidemiology.pptxAxmedAbdiHasen
 
session three epidemiology.pptx
session three epidemiology.pptxsession three epidemiology.pptx
session three epidemiology.pptxAxmedAbdiHasen
 
RSS probability theory
RSS probability theoryRSS probability theory
RSS probability theoryKaimrc_Rss_Jd
 
Presentation1group b
Presentation1group bPresentation1group b
Presentation1group bAbhishekDas15
 
Sample size calculation for cohort studies
Sample size calculation for cohort studies Sample size calculation for cohort studies
Sample size calculation for cohort studies Subhashini N
 
Categorical data analysis full lecture note PPT.pptx
Categorical data analysis full lecture note  PPT.pptxCategorical data analysis full lecture note  PPT.pptx
Categorical data analysis full lecture note PPT.pptxMinilikDerseh1
 

Semelhante a Z test (20)

Z-Test and Standard error
Z-Test and Standard errorZ-Test and Standard error
Z-Test and Standard error
 
Biostatistics ii4june
Biostatistics ii4juneBiostatistics ii4june
Biostatistics ii4june
 
Community Medicine Presentation
Community Medicine PresentationCommunity Medicine Presentation
Community Medicine Presentation
 
Statistics for Journalists
Statistics for JournalistsStatistics for Journalists
Statistics for Journalists
 
Statistics
StatisticsStatistics
Statistics
 
Sample size by formula
Sample size by formulaSample size by formula
Sample size by formula
 
Chapter 9 Two-Sample Inference 265 Chapter 9 Two-Sam.docx
Chapter 9 Two-Sample Inference 265 Chapter 9 Two-Sam.docxChapter 9 Two-Sample Inference 265 Chapter 9 Two-Sam.docx
Chapter 9 Two-Sample Inference 265 Chapter 9 Two-Sam.docx
 
Estimating a Population Standard Deviation or Variance
Estimating a Population Standard Deviation or VarianceEstimating a Population Standard Deviation or Variance
Estimating a Population Standard Deviation or Variance
 
session three epidemiology.pptx
session three epidemiology.pptxsession three epidemiology.pptx
session three epidemiology.pptx
 
session three epidemiology.pptx
session three epidemiology.pptxsession three epidemiology.pptx
session three epidemiology.pptx
 
RSS probability theory
RSS probability theoryRSS probability theory
RSS probability theory
 
Statistical analysis by iswar
Statistical analysis by iswarStatistical analysis by iswar
Statistical analysis by iswar
 
CI for Difference of Proportions
CI for Difference of ProportionsCI for Difference of Proportions
CI for Difference of Proportions
 
Presentation1group b
Presentation1group bPresentation1group b
Presentation1group b
 
Sample size calculation for cohort studies
Sample size calculation for cohort studies Sample size calculation for cohort studies
Sample size calculation for cohort studies
 
K.A.Sindhura-t,z,f tests
K.A.Sindhura-t,z,f testsK.A.Sindhura-t,z,f tests
K.A.Sindhura-t,z,f tests
 
Stat5 the t test
Stat5 the t testStat5 the t test
Stat5 the t test
 
6. sample size v3
6. sample size   v36. sample size   v3
6. sample size v3
 
Categorical data analysis full lecture note PPT.pptx
Categorical data analysis full lecture note  PPT.pptxCategorical data analysis full lecture note  PPT.pptx
Categorical data analysis full lecture note PPT.pptx
 
Biostatistics.pptx
Biostatistics.pptxBiostatistics.pptx
Biostatistics.pptx
 

Mais de Mohmmedirfan Momin

Career opportunities after 12th science 2021
Career opportunities after 12th science 2021Career opportunities after 12th science 2021
Career opportunities after 12th science 2021Mohmmedirfan Momin
 
Career opportunities after 12th science 2020
Career opportunities after 12th science 2020Career opportunities after 12th science 2020
Career opportunities after 12th science 2020Mohmmedirfan Momin
 
Career opportunities after 12th science
Career opportunities after 12th scienceCareer opportunities after 12th science
Career opportunities after 12th scienceMohmmedirfan Momin
 
Data type source presentation im
Data type source presentation imData type source presentation im
Data type source presentation imMohmmedirfan Momin
 
Community behaviour and life style diseases
Community behaviour and life style diseasesCommunity behaviour and life style diseases
Community behaviour and life style diseasesMohmmedirfan Momin
 

Mais de Mohmmedirfan Momin (8)

Career opportunities after 12th science 2021
Career opportunities after 12th science 2021Career opportunities after 12th science 2021
Career opportunities after 12th science 2021
 
Career opportunities after 12th science 2020
Career opportunities after 12th science 2020Career opportunities after 12th science 2020
Career opportunities after 12th science 2020
 
Career opportunities after 12th science
Career opportunities after 12th scienceCareer opportunities after 12th science
Career opportunities after 12th science
 
Health system in india
Health  system in indiaHealth  system in india
Health system in india
 
Health status of india
Health status of indiaHealth status of india
Health status of india
 
Data type source presentation im
Data type source presentation imData type source presentation im
Data type source presentation im
 
Community behaviour and life style diseases
Community behaviour and life style diseasesCommunity behaviour and life style diseases
Community behaviour and life style diseases
 
Accidents and injuries
Accidents and injuriesAccidents and injuries
Accidents and injuries
 

Último

Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 

Último (20)

Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 

Z test

  • 1. Dr. Muhammedirfan H. Momin Assistant Professor Community Medicine Department Government Medical College, Surat. DR IRFAN MOMIN
  • 2. INTRODUCTION The use of any statistical method for analyzing data is based on the objectives of the study, the hypothesis to be tested and type of available statistical data which is to be analyzed to answer the research questions DR IRFAN MOMIN
  • 3. Statistical Tests  How to tell if something (or somethings) is different from something else DR IRFAN MOMIN
  • 4. TYPES OF DATA It can be -Primary or Secondary -Qualitative or Quantitative DR IRFAN MOMIN
  • 5. • Primary data is that which is collected by the researcher to address the current research. • Secondary data refers to data gathered by others or from other studies like official records, publications, documents etc. • Qualitative data refers to data having counting of the individuals for the same characteristic and not by measurement. • Quantitative data refers to data having magnitude and the characteristic is measured either on an interval or on a ratio scale. DR IRFAN MOMIN
  • 6. Qualitative ( Sex, Religion) • Data types Quantitative Continuous Discrete (measurable) (countable) Age No. of. Children Hb No. of Cases DR IRFAN MOMIN
  • 7. SAMPLE DATA SET Pt. No. Hb. Pt. No. Hb. Pt. No. Hb. 1 12.0 11 11.2 21 14.9 2 11.9 12 13.6 22 12.2 3 11.5 13 10.8 23 12.2 4 14.2 14 12.3 24 11.4 5 12.3 15 12.3 25 10.7 6 13.0 16 15.7 26 12.7 7 10.5 17 12.6 27 11.8 8 12.8 18 9.1 28 15.1 9 13.5 19 12.9 29 13.4 10 11.2 20 14.6 30 13.1 DR IRFAN MOMIN
  • 8. TABLE FREQUENCY DISTRIBUTION OF 30 ADULT MALE PATIENTS BY Hb Hb (g/dl) No. of patients 9.0 – 9.9 1 10.0 – 10.9 3 11.0 – 11.9 6 12.0 – 12.9 10 13.0 – 13.9 5 14.0 – 14.9 3 15.0 – 15.9 2 Total 30 DR IRFAN MOMIN
  • 10. Table 1 Risk factors for Myocardial Infarction for patients (n=57) admitted to the Kilpauk Medical College Hospital, Chennai, Jan- Sep 1998 Risk factor MI Patients No % Hypertension 24 42.1 Smoking 20 35.1 Diabetes 13 22.8 CAD 9 15.8 Hyperlipedemia 2 3.5 None 8 14.0 DR IRFAN MOMIN
  • 11. Steps in Test of Hypothesis 1. Determine the appropriate test 2. Establish the level of significance 3. Formulate the statistical hypothesis 4. Calculate the test statistic 5. Compare computed test statistic against a tabled/critical value DR IRFAN MOMIN
  • 12. 1. Determine Appropriate Test • Z Test for the Mean • (Standard error of difference between two means) • Z Test for the Proportion • (Standard error of difference between two proportions) DR IRFAN MOMIN
  • 13. 2. Establish Level of Significance  p is a predetermined value  The convention  p = .05  p = .01  p = .001 DR IRFAN MOMIN
  • 19. A sampling distribution for H0 showing the region of rejection for = .05 in a 2-tailed z-test. 2-tailed regions Fig 10.4 (Heiman DR IRFAN MOMIN
  • 20. A sampling distribution for H0 showing the region of rejection for = .05 in a 1-tailed z-test. 1-tailed region, above mean Fig 10.7 (Heiman DR IRFAN MOMIN
  • 21. A sampling distribution for H0 showing the region of rejection for = .05 in a 1-tailed z-test where a decrease in the mean is predicted. 1-tailed region, below mean Fig 10.8 (Heiman DR IRFAN MOMIN
  • 23. If P < 0.05, the observed difference is ‘SIGNIFICANT (Statistically)’ P< 0.01, sometimes termed as ‘Highly Significant’ DR IRFAN MOMIN
  • 24. INTERPRETATION OF SIGNIFICANCE SIGNIFICANT Does not necessarily mean that the observed difference is REAL or IMPORTANT. Only that it is unlikely (< 5%) to be due to chance. DR IRFAN MOMIN
  • 25. INTERPRETATION OF NON - SIGNIFICANCE NON - SIGNIFICANT Does not necessarily mean that there is no real difference; it means only that the observed difference could easily be due to chance (Probability of at least 5%) DR IRFAN MOMIN
  • 26. 3. Determine The Hypothesis: Whether There is an Association or Not  Write down the NULL HYPOTHESIS and ALTERNATIVE HYPOTHESIS and set the LEVEL OF SIGNIFICANCE.  Ho : The two variables are independent  Ha : The two variables are associated  We will set the level of significance at 0.05. DR IRFAN MOMIN
  • 27. For Example  Some null hypotheses may be:  ‘there is no relationship between the height of the land and the vegetation cover’.  ‘there is no difference in the location of superstores and small grocers shops’  ‘there is no connection between the size of farm and the type of farm’ DR IRFAN MOMIN
  • 28. TEST FOR PROPORTIONS DR IRFAN MOMIN
  • 29. STANDARD ERROR OF DIFFERENCE BETWEEN TWO PROPORTIONS P1 - P2 Z = ------------------ SE (P1 - P2) DR IRFAN MOMIN
  • 30. STANDARD ERROR OF DIFFERENCE BETWEEN TWO PROPORTIONS SE (P1 - P2) = P1Q1 + P2Q2 n1 n2 DR IRFAN MOMIN
  • 31. EXAMPLE If swine flu mortality in one sample of 100 is 20% and in another sample of 100 it is 30%. Is the difference in mortality rate is significant? P1= 20 q1 = 80 n1 = 100 P2= 30 q2 = 70 n2 = 100 P1 - P2 Z = ------------------ SE (P1 - P2) DR IRFAN MOMIN
  • 32. STANDARD ERROR OF DIFFERENCE BETWEEN TWO PROPORTIONS SE (P1 - P2) = 20x80 + 30x70 100 100 DR IRFAN MOMIN
  • 33. STANDARD ERROR OF DIFFERENCE BETWEEN TWO PROPORTIONS SE (P1 - P2) = 37 = 6.08 DR IRFAN MOMIN
  • 34. EXAMPLE If swine flu mortality in one sample of 100 is 20% and in another sample of 100 it is 30%. Is the difference in mortality rate is significant? P1= 20 q1 = 80 n1 = 100 P2= 30 q2 = 70 n2 = 100 P1 - P2 Z = ------------------ SE (P1 - P2) DR IRFAN MOMIN
  • 35. EXAMPLE If swine flu mortality in one sample of 100 is 20% and in another sample of 100 it is 30%. Is the difference in mortality rate is significant? P1= 20 q1 = 80 n1 = 100 P2= 30 q2 = 70 n2 = 100 20-30 Z = --------- = -1.64 6.08 DR IRFAN MOMIN
  • 36. Z value and probability z 1.96 2.58 p 0.05 0.01 DR IRFAN MOMIN
  • 37.  Obtained z value (1.64) is less than critical z value (1.96) , so P >0.05, hence difference is insignificant at 95 % confidence limits. DR IRFAN MOMIN
  • 38. STANDARD ERROR OF DIFFERENCE BETWEEN TWO MEANS X1 - X2 Z = ------------------ SE (X1 - X2) DR IRFAN MOMIN
  • 39. STANDARD ERROR OF DIFFERENCE BETWEEN TWO MEANS SE (X1 - X2) = SD12 + SD22 n1 n2 DR IRFAN MOMIN
  • 40. EXAMPLE In a nutritional study, 100 children were given usual diet and 100 were given vitamin A and D tablets. After 6 months, average weight of group A was 29kg with SD of 1.8kg and average weight of group B was 30kg with SD of 2kg. Is the difference is significant? SD1= 1.8 n1 = 100 SD2= 2 n2 = 100 X1 - X2 Z = ------------------ SE (X1 - X2) DR IRFAN MOMIN
  • 41. STANDARD ERROR OF DIFFERENCE BETWEEN TWO MEANS SE (X1 - X2) = SD12 + SD22 n1 n2 DR IRFAN MOMIN
  • 42. STANDARD ERROR OF DIFFERENCE BETWEEN TWO MEANS SE (X1 - X2) = (1.8)2 + (2)2 100 100 DR IRFAN MOMIN
  • 43. STANDARD ERROR OF DIFFERENCE BETWEEN TWO MEANS SE (X1 - X2) = (1.8)2 + (2)2 100 100 DR IRFAN MOMIN
  • 44. STANDARD ERROR OF DIFFERENCE BETWEEN TWO MEANS SE (X1 - X2) = 3.24+4 100 DR IRFAN MOMIN
  • 45. STANDARD ERROR OF DIFFERENCE BETWEEN TWO MEANS SE (X1 - X2) = 0.0724 =0.27 DR IRFAN MOMIN
  • 46. EXAMPLE In a nutritional study, 100 children were given usual diet and 100 were given vitamin A and D tablets. After 6 months, average weight of group A was 29kg with SD of 1.8kg and average weight of group B was 30kg with SD of 2kg. Is the difference is significant? SD1= 1.8 n1 = 100 SD2= 2 n2 = 100 X1 - X2 Z = ------------------ SE (X1 - X2) DR IRFAN MOMIN
  • 47. EXAMPLE In a nutritional study, 100 children were given usual diet and 100 were given vitamin A and D tablets. After 6 months, average weight of group A was 29kg with SD of 1.8kg and average weight of group B was 30kg with SD of 2kg. Is the difference is significant? SD1= 1.8 n1 = 100 SD2= 2 n2 = 100 29 - 30 Z = ---------------- = -3.7 0.27 DR IRFAN MOMIN
  • 48. A sampling distribution for H0 showing the region of rejection for = .05 in a 2-tailed z-test. 2-tailed regions Fig 10.4 (Heiman DR IRFAN MOMIN
  • 49. Z value and probability z 1.96 2.58 p 0.05 0.01 DR IRFAN MOMIN
  • 50.  As obtained value of z (-3.7) is higher than critical value (-1.96 or -2.58), the observed difference is highly significant, vitamins played a role in weight gain . DR IRFAN MOMIN