Two-sample t-test

5,664views

Two-sample t-test

Watch later

Watch later

Human herpesvirus 8 (Kaposi sarcoma)
Herpes simplex virus
Human herpesvirus 6 (Roseola)
Adenovirus
Parvovirus B19
Human papillomavirus
BK virus (Hemorrhagic cystitis)
JC virus (Progressive multifocal leukoencephalopathy)
Poliovirus
Coxsackievirus
Rhinovirus
Hepatitis A and Hepatitis E virus
Influenza virus
Mumps virus
Measles virus
Respiratory syncytial virus
Human parainfluenza viruses
Yellow fever virus
Zika virus
Hepatitis C virus
West Nile virus
Norovirus
Rotavirus
HIV (AIDS)
Rabies virus
Rubella virus
Prions (Spongiform encephalopathy)
Candida
Plasmodium species (Malaria)
Trypanosoma cruzi (Chagas disease)
Protein synthesis inhibitors: Aminoglycosides
Antimetabolites: Sulfonamides and trimethoprim
Antituberculosis medications
Miscellaneous cell wall synthesis inhibitors
Protein synthesis inhibitors: Tetracyclines
Cell wall synthesis inhibitors: Penicillins
Miscellaneous protein synthesis inhibitors
Cell wall synthesis inhibitors: Cephalosporins
DNA synthesis inhibitors: Metronidazole
DNA synthesis inhibitors: Fluoroquinolones
Mechanisms of antibiotic resistance
Integrase and entry inhibitors
Nucleoside reverse transcriptase inhibitors (NRTIs)
Protease inhibitors
Hepatitis medications
Non-nucleoside reverse transcriptase inhibitors (NNRTIs)
Neuraminidase inhibitors
Herpesvirus medications
Azoles
Echinocandins
Miscellaneous antifungal medications
Anthelmintic medications
Antimalarials
Anti-mite and louse medications
Nuclear structure
DNA structure
Transcription of DNA
Translation of mRNA
Gene regulation
Epigenetics
Amino acids and protein folding
Nucleotide metabolism
DNA replication
Lac operon
DNA damage and repair
Cell cycle
Mitosis and meiosis
DNA mutations
Lesch-Nyhan syndrome
Adenosine deaminase deficiency
Purine and pyrimidine synthesis and metabolism disorders: Pathology review
Polymerase chain reaction (PCR) and reverse-transcriptase PCR (RT-PCR)
Gel electrophoresis and genetic testing
ELISA (Enzyme-linked immunosorbent assay)
Karyotyping
DNA cloning
Fluorescence in situ hybridization
Mendelian genetics and punnett squares
Hardy-Weinberg equilibrium
Inheritance patterns
Independent assortment of genes and linkage
Evolution and natural selection
Down syndrome (Trisomy 21)
Edwards syndrome (Trisomy 18)
Patau syndrome (Trisomy 13)
Fragile X syndrome
Huntington disease
Myotonic dystrophy
Friedreich ataxia
Turner syndrome
Klinefelter syndrome
Prader-Willi syndrome
Angelman syndrome
Cri du chat syndrome
Williams syndrome
Alagille syndrome (NORD)
Achondroplasia
Polycystic kidney disease
Familial adenomatous polyposis
Familial hypercholesterolemia
Marfan syndrome
Multiple endocrine neoplasia
Neurofibromatosis
Tuberous sclerosis
von Hippel-Lindau disease
Albinism
Cystic fibrosis
Gaucher disease (NORD)
Glycogen storage disease type I
Glycogen storage disease type II (NORD)
Hemochromatosis
Mucopolysaccharide storage disease type 1 (Hurler syndrome) (NORD)
Leukodystrophy
Niemann-Pick disease types A and B (NORD)
Niemann-Pick disease type C
Phenylketonuria (NORD)
Sickle cell disease (NORD)
Tay-Sachs disease (NORD)
Alpha-thalassemia
Beta-thalassemia
Wilson disease
Alport syndrome
X-linked agammaglobulinemia
Fabry disease (NORD)
Glucose-6-phosphate dehydrogenase (G6PD) deficiency
Hemophilia
Mucopolysaccharide storage disease type 2 (Hunter syndrome) (NORD)
Muscular dystrophy
Wiskott-Aldrich syndrome
Mitochondrial myopathy
Autosomal trisomies: Pathology review
Muscular dystrophies and mitochondrial myopathies: Pathology review
Miscellaneous genetic disorders: Pathology review
Human development days 1-4
Human development days 4-7
Human development week 2
Human development week 3
Ectoderm
Mesoderm
Endoderm
Development of the placenta
Development of the fetal membranes
Development of twins
Hedgehog signaling pathway
Development of the digestive system and body cavities
Development of the umbilical cord
Development of the cardiovascular system
Fetal circulation
Development of the face and palate
Pharyngeal arches, pouches, and clefts
Development of the gastrointestinal system
Development of the teeth
Development of the tongue
Development of the axial skeleton
Development of the muscular system
Development of the renal system
Development of the reproductive system
Development of the respiratory system
Cellular structure and function
Cell membrane
Selective permeability of the cell membrane
Extracellular matrix
Cell-cell junctions
Endocytosis and exocytosis
Osmosis
Resting membrane potential
Nernst equation
Cytoskeleton and intracellular motility
Cell signaling pathways
Adrenoleukodystrophy (NORD)
Zellweger spectrum disorders (NORD)
Ehlers-Danlos syndrome
Peroxisomal disorders: Pathology review
Introduction to biostatistics
Types of data
Probability
Mean, median, and mode
Range, variance, and standard deviation
Standard error of the mean (Central limit theorem)
Normal distribution and z-scores
Paired t-test
Two-sample t-test
Hypothesis testing: One-tailed and two-tailed tests
One-way ANOVA
Two-way ANOVA
Repeated measures ANOVA
Correlation
Methods of regression analysis
Linear regression
Logistic regression
Type I and type II errors
Sensitivity and specificity
Positive and negative predictive value
Test precision and accuracy
Incidence and prevalence
Relative and absolute risk
Odds ratio
Mortality rates and case-fatality
DALY and QALY
Direct standardization
Indirect standardization
Study designs
Ecologic study
Cross sectional study
Case-control study
Cohort study
Randomized control trial
Clinical trials
Sample size
Disease causality
Selection bias
Information bias
Confounding
Interaction
Prevention
Major depressive disorder
Suicide
Bipolar and related disorders
Major depressive disorder with seasonal pattern
Generalized anxiety disorder
Social anxiety disorder
Panic disorder
Phobias
Obsessive-compulsive disorder
Body focused repetitive disorders
Post-traumatic stress disorder
Schizophrenia
Delirium
Amnesia
Dissociative disorders
Anorexia nervosa
Bulimia nervosa
Cluster A personality disorders
Cluster B personality disorders
Cluster C personality disorders
Somatic symptom disorder
Factitious disorder
Tobacco use disorder
Opioid use disorder
Cannabis use disorder
Cocaine use disorder
Alcohol use disorder
Bruxism
Insomnia
Narcolepsy (NORD)
Erectile dysfunction
Attention deficit hyperactivity disorder
Disruptive, impulse control, and conduct disorders
Learning disability
Fetal alcohol syndrome
Tourette syndrome
Autism spectrum disorder
Rett syndrome
Mood disorders: Pathology review
Amnesia, dissociative disorders and delirium: Pathology review
Personality disorders: Pathology review
Eating disorders: Pathology review
Psychological sleep disorders: Pathology review
Psychiatric emergencies: Pathology review
Drug misuse, intoxication and withdrawal: Hallucinogens: Pathology review
Malingering, factitious disorders and somatoform disorders: Pathology review
Trauma- and stress-related disorders: Pathology review
Selective serotonin reuptake inhibitors
Serotonin and norepinephrine reuptake inhibitors
Tricyclic antidepressants
Monoamine oxidase inhibitors
Atypical antidepressants
Typical antipsychotics
Atypical antipsychotics
Lithium
Nonbenzodiazepine anticonvulsants
Anticonvulsants and anxiolytics: Barbiturates
Anticonvulsants and anxiolytics: Benzodiazepines
Psychomotor stimulants

Transcript

Watch video only

Content Reviewers

Contributors

The Student’s t-test or simply, the t-test, is a type of parametric statistical test used to determine if there’s a significant difference between the means or averages of two groups.

And significance is normally defined by a p-value of less than 0.05 or 5%.

Now when doing any parametric test, there are three key assumptions that we have to make about the population.

First, the sample population must have been recruited randomly.

Choosing names randomly ensures that the people included in the study will have similar characteristics to the target population.

This is important because that ensures that the results of the t-test can be applied to the target population - meaning it has good external validity!

The second assumption is that each individual in the sample was recruited independently from other individuals in the sample.

In other words, no individuals influenced whether or not any other individual was included in the study.

For example, if two friends decided to get their blood pressures measured on the same day, and they were both included in the study, these two individuals would not be independent of each other and the second assumption would not be met.

Like random sampling, independent recruitment of individuals is important because it ensures that the sample population approximates the target population.

The third assumption is that the sample size is large enough to approximate the target population, which usually means having more than 20 people.

If it’s impossible to get a large sample size, then the sample population must follow a normal bell-shaped distribution for the characteristic being studied because that’s what we would expect to see in the target population.

Okay, now let’s say you want to figure out if a certain medication lowers systolic blood pressure.

So you find 25 people who have been on the medication for 6 weeks, and figure out that the mean systolic blood pressure for the whole group is 130 mmHg. Then, you find another 30 people who have not been taking that medication, and find out the mean systolic blood pressure for that group is 138 mmHg.

Now, to figure out if a difference in systolic blood pressure from 130 to 138 is significant, we could perform a t-test.

Specifically, since the two means were measured in two different populations, we would use an unpaired or two-sample t-test.

This is different than a paired t-test, which is used to compare the same population before and after the treatment.

For example, a paired t-test could compare the systolic blood pressure measurements of a group of 25 people before using the medication to the systolic blood pressure measurements of the same people after using the medication for six weeks.

Typically, an unpaired t-test starts with two hypotheses.

The first hypothesis is the null hypothesis, and it basically says that the difference in means between the two groups is equal to zero.

In other words, the null hypothesis is that taking the medication results in no difference in systolic blood pressure.

The second hypothesis is the alternate hypothesis, and since a t-test can be either one-sided or two-sided, there are two versions of the alternative hypothesis.

The alternate hypothesis for a one-sided t-test would either state that the difference in means is a positive number or that the difference in means is a negative number.

The alternate hypothesis for a two-sided t-test would state that the difference in means for both groups is not equal to zero, but it wouldn’t specify if it was positive or negative.

Typically, researchers choose to use two-sided t-tests, since they usually don’t know how the medication will affect people who take it.

So, the two-sided alternative hypothesis for our study would state that the difference in means in systolic blood pressure for people that take the medication compared to people who don’t take the medication is not equal to zero.

To test these hypotheses, we need to calculate a t-score, which is a ratio of the difference in means between the two groups to the standard error of the difference in means between the two groups.

Now, for an unpaired t-test, the t-score depends on whether the variance between the two groups is equal or unequal.

Variance is a measure of how spread out each individual blood pressure reading is from the group mean.

A large variance means that the numbers are very spread out from the mean, like if the mean blood pressure was 130 and the individual measurements included numbers like 112, 142, and 155.

A small variance means that the numbers are very close to the mean, like if the mean blood pressure was 130 and the individual measurements included numbers like 129, 131, and 135.

The variance is the square of the standard deviation - which is another measure of how spread out individual values are from the group mean.

As a general rule, if one group has a variance that’s more than double the other group’s variance, then the variance is unequal.

So, if the standard deviation for the no medication group is 12, then the variance would be 12 squared, or 144.

And if the standard deviation for the no medication group is 5, then the variance would be 5 squared, or 25.

Since the variance of the no medication group is more than double the variance of the medication group, the variance is unequal.

Now to calculate the t-score, let’s start with the first part - the difference in means between the two groups.

In our case, that’s the difference in the mean systolic blood pressure for individuals who took the medication and who didn’t take the medication, and it’s represented by the symbol d-bar.

The mean systolic blood pressure for the no medication group is 138 and the mean systolic blood pressure for the medication group is 130, so the difference in means is 8.

Key Takeaways

The two-sample t-test is a statistical method used to compare the means of two independent samples of continuous data. It is used to determine whether the means of the two samples are significantly different from each other, taking into account the variability of the data within each sample.

The t-test calculates a t-value, which is then compared to a critical value from a t-distribution with degrees of freedom equal to the sum of the sample sizes minus two. If the calculated t-value is greater than the critical value, the null hypothesis of no difference between the means is rejected, indicating that there is a significant difference between the means of the two samples. The two-sample t-test is commonly used in a variety of research fields, including medicine, psychology, and engineering, to compare two groups or treatments.