Skip to content

Latest commit

 

History

History
18 lines (16 loc) · 1.06 KB

README.md

File metadata and controls

18 lines (16 loc) · 1.06 KB

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