T-Test


T-test is a test used to compare two groups when determining whether there is a significant difference between the means of both groups.

  • can be used if the dependent variable is normally distributed
  • are a few types of t-tests
    • one sample t-test
      • compare the mean to a number to answer a question
      • e.g., “are subscribers spending more than the annual average from last year?”
    • two sample t-test
      • comparing two groups
      • used to compare the means of a continuous variable (like test scores) between two groups
      • e.g., if there is a drug trial where one group receives a placebo and one receives the actual drug, and you want to compare the recovery days between the two groups
  • two variables:
    • dependent variable
      • the variable we are measuring when comparing two groups
      • the main data point
      • use it to determine the mean, median, mode, and standard deviation
    • independent variable
      • the variable that is different between two groups that we are comparing