Two-sample t-test

5,306views

test

00:00 / 00:00

Two-sample t-test

Back to the Basic Sciences

Diagnoses

Anatomy of the coronary circulation
Anatomy clinical correlates: Heart
Coronary artery disease: Pathology review
Anticoagulants: Direct factor inhibitors
Anticoagulants: Heparin
Antiplatelet medications
Thrombolytics
Renal failure: Pathology review
ACE inhibitors, ARBs and direct renin inhibitors
Anatomy of the lungs and tracheobronchial tree
Anatomy clinical correlates: Pleura and lungs
Alveolar surface tension and surfactant
Breathing cycle and regulation
Gas exchange in the lungs, blood and tissues
Pulmonary shunts
Regulation of pulmonary blood flow
Respiratory system anatomy and physiology
Ventilation
Ventilation-perfusion ratios and V/Q mismatch
Zones of pulmonary blood flow
Obstructive lung diseases: Pathology review
Anatomy of the abdominal viscera: Liver, biliary ducts and gallbladder
Anatomy clinical correlates: Other abdominal organs
Bile secretion and enterohepatic circulation
Liver anatomy and physiology
Cirrhosis: Pathology review
Anatomy of the heart
Anatomy of the coronary circulation
Anatomy of the inferior mediastinum
Anatomy of the superior mediastinum
Anatomy clinical correlates: Heart
Anatomy clinical correlates: Mediastinum
Cardiac afterload
Cardiac contractility
Cardiac cycle
Cardiac preload
Cardiac work
Cardiovascular system anatomy and physiology
Changes in pressure-volume loops
Frank-Starling relationship
Measuring cardiac output (Fick principle)
Microcirculation and Starling forces
Pressure-volume loops
Stroke volume, ejection fraction, and cardiac output
Heart failure: Pathology review
Anatomy of the coronary circulation
Anatomy clinical correlates: Heart
Cardiovascular system anatomy and physiology
Atherosclerosis and arteriosclerosis: Pathology review
Coronary artery disease: Pathology review
Anatomy of the cerebral cortex
Anatomy of the limbic system
Anatomy clinical correlates: Cerebral hemispheres
Dementia: Pathology review
Mood disorders: Pathology review
Selective serotonin reuptake inhibitors
Serotonin and norepinephrine reuptake inhibitors
Tricyclic antidepressants
Monoamine oxidase inhibitors
Atypical antidepressants
Pancreas histology
Diabetes mellitus: Pathology review
Dyslipidemias: Pathology review
Lipid-lowering medications: Fibrates
Lipid-lowering medications: Statins
Miscellaneous lipid-lowering medications
Enteric nervous system
Esophageal motility
Gastrointestinal system anatomy and physiology
GERD, peptic ulcers, gastritis, and stomach cancer: Pathology review
Hypertension: Pathology review
ACE inhibitors, ARBs and direct renin inhibitors
Adrenergic antagonists: Beta blockers
Calcium channel blockers
Thiazide and thiazide-like diuretics
Anatomy of the thyroid and parathyroid glands
Thyroid and parathyroid gland histology
Endocrine system anatomy and physiology
Thyroid hormones
Hyperthyroidism: Pathology review
Anatomy of the thyroid and parathyroid glands
Thyroid and parathyroid gland histology
Endocrine system anatomy and physiology
Thyroid hormones
Hypothyroidism: Pathology review
Introduction to the skeletal system
Bone remodeling and repair
Bone disorders: Pathology review
Anatomy of the abdominal viscera: Pancreas and spleen
Anatomy clinical correlates: Other abdominal organs
Pancreas histology
Pancreatic secretion
Pancreatitis: Pathology review
Anatomy of the diaphragm
Anatomy of the larynx and trachea
Anatomy of the lungs and tracheobronchial tree
Anatomy of the nose and paranasal sinuses
Anatomy of the pleura
Bones and joints of the thoracic wall
Muscles of the thoracic wall
Vessels and nerves of the thoracic wall
Anatomy clinical correlates: Pleura and lungs
Anatomy clinical correlates: Thoracic wall
Alveolar surface tension and surfactant
Anatomic and physiologic dead space
Breathing cycle and regulation
Gas exchange in the lungs, blood and tissues
Lung volumes and capacities
Pulmonary shunts
Regulation of pulmonary blood flow
Respiratory system anatomy and physiology
Ventilation
Ventilation-perfusion ratios and V/Q mismatch
Zones of pulmonary blood flow
Pneumonia: Pathology review
Drug misuse, intoxication and withdrawal: Alcohol: Pathology review
Drug misuse, intoxication and withdrawal: Hallucinogens: Pathology review
Drug misuse, intoxication and withdrawal: Other depressants: Pathology review
Drug misuse, intoxication and withdrawal: Stimulants: Pathology review
Atypical antidepressants
Nasal, oral and pharyngeal diseases: Pathology review
Anatomy of the abdominal viscera: Kidneys, ureters and suprarenal glands
Anatomy of the female urogenital triangle
Anatomy of the male urogenital triangle
Anatomy of the perineum
Anatomy of the urinary organs of the pelvis
Anatomy clinical correlates: Female pelvis and perineum
Anatomy clinical correlates: Male pelvis and perineum
Renal system anatomy and physiology
Urinary tract infections: Pathology review
Anatomy of the lungs and tracheobronchial tree
Fascia, vessels and nerves of the upper limb
Vessels and nerves of the forearm
Vessels and nerves of the gluteal region and posterior thigh
Anatomy clinical correlates: Pleura and lungs
Clot retraction and fibrinolysis
Coagulation (secondary hemostasis)
Platelet plug formation (primary hemostasis)
Deep vein thrombosis and pulmonary embolism: Pathology review
Anticoagulants: Direct factor inhibitors
Anticoagulants: Heparin
Anticoagulants: Warfarin

Clinical conditions

Abdominal quadrants, regions and planes
Anatomy of the abdominal viscera: Blood supply of the foregut, midgut and hindgut
Anatomy of the abdominal viscera: Esophagus and stomach
Anatomy of the abdominal viscera: Innervation of the abdominal viscera
Anatomy of the abdominal viscera: Large intestine
Anatomy of the abdominal viscera: Liver, biliary ducts and gallbladder
Anatomy of the abdominal viscera: Pancreas and spleen
Anatomy of the abdominal viscera: Small intestine
Anatomy of the anterolateral abdominal wall
Anatomy of the diaphragm
Anatomy of the gastrointestinal organs of the pelvis and perineum
Anatomy of the inguinal region
Anatomy of the muscles and nerves of the posterior abdominal wall
Anatomy of the peritoneum and peritoneal cavity
Anatomy of the vessels of the posterior abdominal wall
Anatomy clinical correlates: Anterior and posterior abdominal wall
Anatomy clinical correlates: Inguinal region
Anatomy clinical correlates: Other abdominal organs
Anatomy clinical correlates: Peritoneum and diaphragm
Anatomy clinical correlates: Viscera of the gastrointestinal tract
Appendicitis: Pathology review
Diverticular disease: Pathology review
Gallbladder disorders: Pathology review
GERD, peptic ulcers, gastritis, and stomach cancer: Pathology review
Inflammatory bowel disease: Pathology review
Pancreatitis: Pathology review
Acid-base map and compensatory mechanisms
Buffering and Henderson-Hasselbalch equation
Physiologic pH and buffers
The role of the kidney in acid-base balance
Acid-base disturbances: Pathology review
Anatomy of the abdominal viscera: Kidneys, ureters and suprarenal glands
Kidney histology
Renal system anatomy and physiology
Renal failure: Pathology review
Anatomy of the basal ganglia
Anatomy of the blood supply to the brain
Anatomy of the brainstem
Anatomy of the cerebellum
Anatomy of the cerebral cortex
Anatomy of the cranial meninges and dural venous sinuses
Anatomy of the diencephalon
Anatomy of the limbic system
Anatomy of the ventricular system
Anatomy of the white matter tracts
Anatomy clinical correlates: Anterior blood supply to the brain
Anatomy clinical correlates: Cerebellum and brainstem
Anatomy clinical correlates: Cerebral hemispheres
Anatomy clinical correlates: Posterior blood supply to the brain
Nervous system anatomy and physiology
Amnesia, dissociative disorders and delirium: Pathology review
Central nervous system infections: Pathology review
Cerebral vascular disease: Pathology review
Dementia: Pathology review
Drug misuse, intoxication and withdrawal: Alcohol: Pathology review
Drug misuse, intoxication and withdrawal: Hallucinogens: Pathology review
Drug misuse, intoxication and withdrawal: Other depressants: Pathology review
Drug misuse, intoxication and withdrawal: Stimulants: Pathology review
Mood disorders: Pathology review
Schizophrenia spectrum disorders: Pathology review
Seizures: Pathology review
Traumatic brain injury: Pathology review
Anticonvulsants and anxiolytics: Benzodiazepines
Atypical antipsychotics
Typical antipsychotics
Blood histology
Blood components
Erythropoietin
Extrinsic hemolytic normocytic anemia: Pathology review
Intrinsic hemolytic normocytic anemia: Pathology review
Macrocytic anemia: Pathology review
Microcytic anemia: Pathology review
Non-hemolytic normocytic anemia: Pathology review
Introduction to the central and peripheral nervous systems
Introduction to the muscular system
Introduction to the skeletal system
Introduction to the somatic and autonomic nervous systems
Anatomy of the ascending spinal cord pathways
Anatomy of the descending spinal cord pathways
Anatomy of the muscles and nerves of the posterior abdominal wall
Anatomy of the vertebral canal
Anatomy of the vessels of the posterior abdominal wall
Bones of the vertebral column
Joints of the vertebral column
Muscles of the back
Vessels and nerves of the vertebral column
Anatomy clinical correlates: Anterior and posterior abdominal wall
Anatomy clinical correlates: Bones, joints and muscles of the back
Anatomy clinical correlates: Spinal cord pathways
Anatomy clinical correlates: Vertebral canal
Back pain: Pathology review
Positive and negative predictive value
Sensitivity and specificity
Test precision and accuracy
Type I and type II errors
Anatomy of the breast
Anatomy of the coronary circulation
Anatomy of the heart
Anatomy of the inferior mediastinum
Anatomy of the lungs and tracheobronchial tree
Anatomy of the pleura
Anatomy of the superior mediastinum
Bones and joints of the thoracic wall
Muscles of the thoracic wall
Vessels and nerves of the thoracic wall
Anatomy clinical correlates: Breast
Anatomy clinical correlates: Heart
Anatomy clinical correlates: Mediastinum
Anatomy clinical correlates: Pleura and lungs
Anatomy clinical correlates: Thoracic wall
Cardiovascular system anatomy and physiology
Respiratory system anatomy and physiology
Aortic dissections and aneurysms: Pathology review
Coronary artery disease: Pathology review
Deep vein thrombosis and pulmonary embolism: Pathology review
GERD, peptic ulcers, gastritis, and stomach cancer: Pathology review
Pleural effusion, pneumothorax, hemothorax and atelectasis: Pathology review
Anatomy of the abdominal viscera: Esophagus and stomach
Anatomy of the abdominal viscera: Large intestine
Anatomy of the abdominal viscera: Small intestine
Anatomy of the gastrointestinal organs of the pelvis and perineum
Gastrointestinal system anatomy and physiology
Enteric nervous system
Colorectal polyps and cancer: Pathology review
Diverticular disease: Pathology review
Laxatives and cathartics
Anatomy of the diaphragm
Anatomy of the larynx and trachea
Anatomy of the lungs and tracheobronchial tree
Anatomy of the nose and paranasal sinuses
Anatomy of the pleura
Bones and joints of the thoracic wall
Muscles of the thoracic wall
Vessels and nerves of the thoracic wall
Anatomy clinical correlates: Pleura and lungs
Anatomy clinical correlates: Thoracic wall
GERD, peptic ulcers, gastritis, and stomach cancer: Pathology review
Lung cancer and mesothelioma: Pathology review
Nasal, oral and pharyngeal diseases: Pathology review
Obstructive lung diseases: Pathology review
Pneumonia: Pathology review
Restrictive lung diseases: Pathology review
Anatomy of the abdominal viscera: Large intestine
Anatomy of the abdominal viscera: Small intestine
Anatomy of the gastrointestinal organs of the pelvis and perineum
Bile secretion and enterohepatic circulation
Enteric nervous system
Gastrointestinal system anatomy and physiology
Inflammatory bowel disease: Pathology review
Malabsorption syndromes: Pathology review
Bacillus cereus (Food poisoning)
Campylobacter jejuni
Clostridium difficile (Pseudomembranous colitis)
Clostridium perfringens
Escherichia coli
Norovirus
Salmonella (non-typhoidal)
Shigella
Staphylococcus aureus
Vibrio cholerae (Cholera)
Yersinia enterocolitica
Anatomy of the heart
Anatomy of the lungs and tracheobronchial tree
Anatomy of the pleura
Anatomy clinical correlates: Heart
Anatomy clinical correlates: Mediastinum
Anatomy clinical correlates: Pleura and lungs
Anatomy clinical correlates: Thoracic wall
Alveolar surface tension and surfactant
Anatomic and physiologic dead space
Breathing cycle and regulation
Diffusion-limited and perfusion-limited gas exchange
Gas exchange in the lungs, blood and tissues
Pulmonary shunts
Regulation of pulmonary blood flow
Respiratory system anatomy and physiology
Ventilation
Ventilation-perfusion ratios and V/Q mismatch
Zones of pulmonary blood flow
Cardiac afterload
Cardiac contractility
Cardiac cycle
Cardiac preload
Cardiac work
Frank-Starling relationship
Measuring cardiac output (Fick principle)
Pressure-volume loops
Stroke volume, ejection fraction, and cardiac output
Acid-base map and compensatory mechanisms
Buffering and Henderson-Hasselbalch equation
Physiologic pH and buffers
The role of the kidney in acid-base balance
Apnea, hypoventilation and pulmonary hypertension: Pathology review
Deep vein thrombosis and pulmonary embolism: Pathology review
Heart failure: Pathology review
Lung cancer and mesothelioma: Pathology review
Obstructive lung diseases: Pathology review
Pleural effusion, pneumothorax, hemothorax and atelectasis: Pathology review
Pneumonia: Pathology review
Restrictive lung diseases: Pathology review
Tuberculosis: Pathology review
Introduction to the cardiovascular system
Introduction to the lymphatic system
Microcirculation and Starling forces
Cirrhosis: Pathology review
Deep vein thrombosis and pulmonary embolism: Pathology review
Heart failure: Pathology review
Hypothyroidism: Pathology review
Nephrotic syndromes: Pathology review
Renal failure: Pathology review
Antidiuretic hormone
Phosphate, calcium and magnesium homeostasis
Potassium homeostasis
Renin-angiotensin-aldosterone system
Sodium homeostasis
Diabetes insipidus and SIADH: Pathology review
Electrolyte disturbances: Pathology review
Parathyroid disorders and calcium imbalance: Pathology review
Anxiety disorders, phobias and stress-related disorders: Pathology Review
Apnea, hypoventilation and pulmonary hypertension: Pathology review
Mood disorders: Pathology review
Psychological sleep disorders: Pathology review
Adrenergic antagonists: Beta blockers
Anticonvulsants and anxiolytics: Barbiturates
Anticonvulsants and anxiolytics: Benzodiazepines
Antihistamines for allergies
Nonbenzodiazepine anticonvulsants
Opioid agonists, mixed agonist-antagonists and partial agonists
Tricyclic antidepressants
Cytokines
Inflammation
Anatomy of the abdominal viscera: Blood supply of the foregut, midgut and hindgut
Anatomy of the abdominal viscera: Esophagus and stomach
Anatomy of the abdominal viscera: Large intestine
Anatomy of the abdominal viscera: Small intestine
Anatomy of the gastrointestinal organs of the pelvis and perineum
Anatomy of the vessels of the posterior abdominal wall
Anatomy clinical correlates: Viscera of the gastrointestinal tract
Gastrointestinal bleeding: Pathology review
Anatomy of the blood supply to the brain
Anatomy of the cranial base
Anatomy of the cranial meninges and dural venous sinuses
Anatomy of the nose and paranasal sinuses
Anatomy of the suboccipital region
Anatomy of the temporomandibular joint and muscles of mastication
Anatomy of the trigeminal nerve (CN V)
Bones of the cranium
Bones of the neck
Deep structures of the neck: Prevertebral muscles
Muscles of the face and scalp
Nerves and vessels of the face and scalp
Superficial structures of the neck: Cervical plexus
Anatomy clinical correlates: Bones, fascia and muscles of the neck
Anatomy clinical correlates: Skull, face and scalp
Anatomy clinical correlates: Temporal regions, oral cavity and nose
Anatomy clinical correlates: Trigeminal nerve (CN V)
Anatomy clinical correlates: Vessels, nerves and lymphatics of the neck
Headaches: Pathology review
Anatomy of the abdominal viscera: Liver, biliary ducts and gallbladder
Anatomy of the abdominal viscera: Pancreas and spleen
Anatomy clinical correlates: Other abdominal organs
Gallbladder histology
Liver histology
Bile secretion and enterohepatic circulation
Liver anatomy and physiology
Pancreatic secretion
Jaundice: Pathology review
Anatomy of the elbow joint
Anatomy of the glenohumeral joint
Anatomy of the hip joint
Anatomy of the knee joint
Anatomy of the radioulnar joints
Anatomy of the sternoclavicular and acromioclavicular joints
Anatomy of the tibiofibular joints
Joints of the ankle and foot
Joints of the wrist and hand
Anatomy clinical correlates: Arm, elbow and forearm
Anatomy clinical correlates: Clavicle and shoulder
Anatomy clinical correlates: Knee
Anatomy clinical correlates: Leg and ankle
Anatomy clinical correlates: Wrist and hand
Gout and pseudogout: Pathology review
Rheumatoid arthritis and osteoarthritis: Pathology review
Seronegative and septic arthritis: Pathology review
Anatomy of the knee joint
Anatomy clinical correlates: Knee
Rheumatoid arthritis and osteoarthritis: Pathology review
Seronegative and septic arthritis: Pathology review
Candida
Clostridium difficile (Pseudomembranous colitis)
Enterobacter
Enterococcus
Escherichia coli
Proteus mirabilis
Pseudomonas aeruginosa
Staphylococcus aureus
Bacterial and viral skin infections: Pathology review
Skin histology
Skin anatomy and physiology
Acneiform skin disorders: Pathology review
Papulosquamous and inflammatory skin disorders: Pathology review
Pigmentation skin disorders: Pathology review
Skin cancer: Pathology review
Vesiculobullous and desquamating skin disorders: Pathology review
Anatomy of the heart
Anatomy of the vagus nerve (CN X)
Aortic dissections and aneurysms: Pathology review
Cardiomyopathies: Pathology review
Coronary artery disease: Pathology review
Heart blocks: Pathology review
Supraventricular arrhythmias: Pathology review
Valvular heart disease: Pathology review
Ventricular arrhythmias: Pathology review
Hunger and satiety
Anxiety disorders, phobias and stress-related disorders: Pathology Review
Breast cancer: Pathology review
Colorectal polyps and cancer: Pathology review
Dementia: Pathology review
Diabetes mellitus: Pathology review
GERD, peptic ulcers, gastritis, and stomach cancer: Pathology review
Heart failure: Pathology review
HIV and AIDS: Pathology review
Hyperthyroidism: Pathology review
Inflammatory bowel disease: Pathology review
Jaundice: Pathology review
Lung cancer and mesothelioma: Pathology review
Malabsorption syndromes: Pathology review
Mood disorders: Pathology review
Tuberculosis: Pathology review

Assessments

USMLE® Step 1 questions

0 / 1 complete

USMLE® Step 2 questions

0 / 1 complete

Questions

USMLE® Step 1 style questions USMLE

0 of 1 complete

USMLE® Step 2 style questions USMLE

0 of 1 complete

A researcher is evaluating data obtained from a study examining the effects of rosuvastatin on low-density lipoprotein (LDL) levels. The experimental group consisted of 250 randomly selected individuals prescribed rosuvastatin for six months. The control group consisted of 300 randomly selected individuals prescribed placebo pills. The changes in LDL levels were measured at the end of the study. Which of the following statistical analyses should the researcher perform to determine if rosuvastatin therapy led to a statistically significant change in LDL levels?  

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.

Summary

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.