Skip to content

This repository will explain about paired sample t-test, the test procedure and how to use it using Scipy library of Python.

Notifications You must be signed in to change notification settings

faisal-irzal/paired_sample_t_test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 

Repository files navigation

Paired Sample T-test

This repository will explain about paired sample t-test, the test procedure and how to use it using Scipy library of Python.

Definition

Paired Sample T-test is s a hypothesis testing conducted to determine whether the mean of the same sample group has a significant difference. The test is commonly used for the following scenarios:

  • Measurements of samples before and after treatment – e.g. the max vertical jump of basketball players is measured before and after enrolling in a training program.
  • Measurement of samples against two different conditions - e.g. the response time of a patient is measured on two different drugs.

Procedure

  • Determine the hypothesis
    Null Hypothesis     (H0): μ1 = μ2
    Alternate Hypothesis (H1): μ1 ≠ μ2
  • Define the significance level α α = 0.05
  • Define the rejection criteria
    'Reject H0 if p-value < α'
  • Perform test statistics
  • Draw conclusion

About

This repository will explain about paired sample t-test, the test procedure and how to use it using Scipy library of Python.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published