Uji Hipotesis
Published on September 25, 2026
Core Idea | A structured framework for deciding whether observed data provide enough evidence to reject a default assumption about a population |
Exam Relevance | Tested as interpretation of study results, choosing the correct statistical test, understanding error types, and distinguishing statistical from clinical significance |
Key Components | Null hypothesis (), alternative hypothesis (), (significance level), (Type II error rate), power (), -value |
Default Convention | , power (i.e., ) |
The Decision Rule | If , reject ; if , fail to reject |
Confidence Interval Link | A 95% CI that does not include the null value corresponds to |
Keywords | Null hypothesis, alternative hypothesis, Type I error, Type II error, power, -value, confidence interval, significance level, effect size, sample size |
01Core Concepts and Definitions
Hypothesis testing is the backbone of inferential statistics in clinical research. Every time a clinical trial or epidemiological study reports a result, it is framed within this logic. On the exam, you will not be asked to perform hand calculations. Instead, you will be asked to interpret the output of a study, identify the correct test used, or recognize errors in reasoning.
The null hypothesis () is the default position. It states that there is no difference, no effect, or no association between groups or variables. Think of it as the "nothing is happening" baseline. The alternative hypothesis ( or ) is the research claim that there is a difference, an effect, or an association. The entire framework of hypothesis testing is designed to assess whether the observed data are extreme enough to reject in favor of .
A critical concept is the significance level (), which is the pre-set threshold for how much risk of a false-positive result the investigator is willing to tolerate. By convention, (5%). This means the investigator accepts a 5% probability of incorrectly rejecting a true null hypothesis. The is always set before data collection, never adjusted after seeing results.
A one-tailed test evaluates whether a parameter is greater than or less than a stated value (directional hypothesis). A two-tailed test evaluates whether a parameter is simply different from a stated value in either direction (non-directional hypothesis). On the exam, unless stated otherwise, assume a two-tailed test. A one-tailed test has more power to detect an effect in one direction but cannot detect an effect in the opposite direction.
02Types of Errors and Statistical Power
This is one of the most commonly tested areas in biostatistics. The exam will present scenarios and ask you to identify which error is being described or which factor affects power.
Reject
IS TRUE (NO REAL EFFECT)
Type I Error (False Positive), probability =
IS FALSE (REAL EFFECT EXISTS)
Correct Decision (True Positive), probability = = Power
Fail to Reject
IS TRUE (NO REAL EFFECT)
Correct Decision (True Negative), probability =
IS FALSE (REAL EFFECT EXISTS)
Type II Error (False Negative), probability =
OUTCOME | IS TRUE (NO REAL EFFECT) | IS FALSE (REAL EFFECT EXISTS) |
|---|---|---|
Reject | Type I Error (False Positive), probability = | Correct Decision (True Positive), probability = = Power |
Fail to Reject | Correct Decision (True Negative), probability = | Type II Error (False Negative), probability = |
Type I Error () occurs when you conclude there is an effect when in reality there is none. This is a "false alarm." In clinical terms, this is like approving a drug that does not actually work. The probability of a Type I error is equal to , which is set by the investigator (typically 0.05).
Type II Error () occurs when you fail to detect a real effect. This is a "missed finding." In clinical terms, this is like concluding a drug does not work when it actually does. The probability of a Type II error is , conventionally kept at .
Statistical Power is defined as , meaning the probability of correctly rejecting a false null hypothesis. A study with 80% power has a 20% chance of missing a real effect. Power is arguably the most testable concept because the exam frequently asks what factors increase or decrease it.
Increase sample size ()
EFFECT ON POWER
Increases power
EXPLANATION
Larger samples reduce variability of the estimate, making it easier to detect a true difference
Increase effect size
EFFECT ON POWER
Increases power
EXPLANATION
A larger true difference between groups is easier to detect
Increase (e.g., from 0.01 to 0.05)
EFFECT ON POWER
Increases power
EXPLANATION
A more lenient threshold makes it easier to reject , but increases Type I error risk
Decrease variability (SD) in the population
EFFECT ON POWER
Increases power
EXPLANATION
Less noise in the data makes the signal easier to find
Use a one-tailed test instead of two-tailed
EFFECT ON POWER
Increases power
EXPLANATION
Concentrates the rejection region in one direction
Use a paired design instead of independent groups
EFFECT ON POWER
Increases power
EXPLANATION
Reduces between-subject variability by having each subject serve as their own control
FACTOR | EFFECT ON POWER | EXPLANATION |
|---|---|---|
Increase sample size () | Increases power | Larger samples reduce variability of the estimate, making it easier to detect a true difference |
Increase effect size | Increases power | A larger true difference between groups is easier to detect |
Increase (e.g., from 0.01 to 0.05) | Increases power | A more lenient threshold makes it easier to reject , but increases Type I error risk |
Decrease variability (SD) in the population | Increases power | Less noise in the data makes the signal easier to find |
Use a one-tailed test instead of two-tailed | Increases power | Concentrates the rejection region in one direction |
Use a paired design instead of independent groups | Increases power | Reduces between-subject variability by having each subject serve as their own control |
A power analysis is performed before a study begins. Its purpose is to determine the minimum sample size needed to detect a clinically meaningful effect at the desired and power level. If a study reports a non-significant result, the first question you should ask is whether the study was adequately powered. A non-significant result in an underpowered study does not mean "no effect." It means the study may not have been large enough to find one.
03Choosing the Right Statistical Test
On the exam, a vignette will describe a study design, and you must identify which statistical test is appropriate. The key decision points are: (1) what type of data is the outcome variable, and (2) how many groups are being compared.
Parametric vs. Nonparametric
Parametric tests (t-test, ANOVA) assume the data are continuous and approximately normally distributed. Nonparametric tests (Mann-Whitney U, Kruskal-Wallis, Wilcoxon) make no such assumption and are used for ordinal data or continuous data that are skewed and cannot be normalized.
Test Selection Table
Compare means of 2 independent groups
DATA TYPE
Continuous, normal
NUMBER OF GROUPS
2
RELATIONSHIP
Independent
CORRECT TEST
Student's (unpaired) t-test
Compare means of 2 related groups (before/after)
DATA TYPE
Continuous, normal
NUMBER OF GROUPS
2
RELATIONSHIP
Paired
CORRECT TEST
Paired t-test
Compare means of 3+ independent groups
DATA TYPE
Continuous, normal
NUMBER OF GROUPS
3+
RELATIONSHIP
Independent
CORRECT TEST
One-way ANOVA
Compare 2 independent groups, non-normal data
DATA TYPE
Ordinal or skewed continuous
NUMBER OF GROUPS
2
RELATIONSHIP
Independent
CORRECT TEST
Mann-Whitney U test
Compare 2 related groups, non-normal data
DATA TYPE
Ordinal or skewed continuous
NUMBER OF GROUPS
2
RELATIONSHIP
Paired
CORRECT TEST
Wilcoxon signed-rank test
Compare 3+ independent groups, non-normal data
DATA TYPE
Ordinal or skewed continuous
NUMBER OF GROUPS
3+
RELATIONSHIP
Independent
CORRECT TEST
Kruskal-Wallis test
Compare proportions in 2+ independent groups
DATA TYPE
Categorical (nominal)
NUMBER OF GROUPS
2+
RELATIONSHIP
Independent
CORRECT TEST
Chi-square () test
Compare proportions with very small expected cell counts (<5)
DATA TYPE
Categorical (nominal)
NUMBER OF GROUPS
2
RELATIONSHIP
Independent
CORRECT TEST
Fisher's exact test
Compare paired categorical data (same subjects, before/after)
DATA TYPE
Categorical (nominal)
NUMBER OF GROUPS
2
RELATIONSHIP
Paired
CORRECT TEST
McNemar's test
Measure strength of linear relationship, normal data
DATA TYPE
Two continuous variables
NUMBER OF GROUPS
N/A
RELATIONSHIP
Correlation
CORRECT TEST
Pearson's correlation ()
Measure strength of relationship, non-normal or ordinal data
DATA TYPE
Ordinal or skewed continuous
NUMBER OF GROUPS
N/A
RELATIONSHIP
Correlation
CORRECT TEST
Spearman's rank correlation ()
Predict outcome from one or more continuous variables
DATA TYPE
Continuous outcome
NUMBER OF GROUPS
N/A
RELATIONSHIP
Predictive
CORRECT TEST
Linear regression
Predict binary outcome (yes/no)
DATA TYPE
Categorical outcome
NUMBER OF GROUPS
N/A
RELATIONSHIP
Predictive
CORRECT TEST
Logistic regression
Compare survival curves between groups
DATA TYPE
Time-to-event
NUMBER OF GROUPS
2+
RELATIONSHIP
Independent
CORRECT TEST
Log-rank test (Kaplan-Meier)
Model time-to-event with covariates
DATA TYPE
Time-to-event
NUMBER OF GROUPS
N/A
RELATIONSHIP
Predictive
CORRECT TEST
Cox proportional hazards regression
SCENARIO | DATA TYPE | NUMBER OF GROUPS | RELATIONSHIP | CORRECT TEST |
|---|---|---|---|---|
Compare means of 2 independent groups | Continuous, normal | 2 | Independent | Student's (unpaired) t-test |
Compare means of 2 related groups (before/after) | Continuous, normal | 2 | Paired | Paired t-test |
Compare means of 3+ independent groups | Continuous, normal | 3+ | Independent | One-way ANOVA |
Compare 2 independent groups, non-normal data | Ordinal or skewed continuous | 2 | Independent | Mann-Whitney U test |
Compare 2 related groups, non-normal data | Ordinal or skewed continuous | 2 | Paired | Wilcoxon signed-rank test |
Compare 3+ independent groups, non-normal data | Ordinal or skewed continuous | 3+ | Independent | Kruskal-Wallis test |
Compare proportions in 2+ independent groups | Categorical (nominal) | 2+ | Independent | Chi-square () test |
Compare proportions with very small expected cell counts (<5) | Categorical (nominal) | 2 | Independent | Fisher's exact test |
Compare paired categorical data (same subjects, before/after) | Categorical (nominal) | 2 | Paired | McNemar's test |
Measure strength of linear relationship, normal data | Two continuous variables | N/A | Correlation | Pearson's correlation () |
Measure strength of relationship, non-normal or ordinal data | Ordinal or skewed continuous | N/A | Correlation | Spearman's rank correlation () |
Predict outcome from one or more continuous variables | Continuous outcome | N/A | Predictive | Linear regression |
Predict binary outcome (yes/no) | Categorical outcome | N/A | Predictive | Logistic regression |
Compare survival curves between groups | Time-to-event | 2+ | Independent | Log-rank test (Kaplan-Meier) |
Model time-to-event with covariates | Time-to-event | N/A | Predictive | Cox proportional hazards regression |
How to Approach the Question Stem
When you encounter a vignette that asks "which is the most appropriate statistical test," follow this decision sequence:
Identify the outcome variable (dependent variable). Is it continuous, categorical, or time-to-event?
Determine the number of groups being compared. Is it one group vs. a known value, two groups, or three or more groups?
Assess the relationship between groups. Are they independent (different subjects) or paired/matched (same subjects measured twice)?
Check distribution assumptions. If the data are stated to be normally distributed, use parametric tests. If the data are skewed, ordinal, or the sample size is very small, use nonparametric tests.
A common trap is confusing paired vs. unpaired designs. If the same patients are measured before and after an intervention, the data are paired. Using an unpaired test on paired data inflates the variance estimate and can cause you to miss a real effect.
04Interpreting Results: p-Values, Confidence Intervals, and Significance
The p-Value
The -value is the probability of observing data as extreme as, or more extreme than, the results actually obtained, assuming that is true. It is not the probability that is true, and it is not the probability that the results are due to chance. These are common misinterpretations that the exam will exploit.
CORRECT INTERPRETATION | INCORRECT INTERPRETATION |
|---|---|
The probability of obtaining the observed result (or more extreme) if were true | The probability that is true |
A measure of the compatibility of the data with | The probability that the result is "due to chance" |
Determined by sample size, effect size, and variability | The probability that is true (if is small) |
If , we reject and declare the result statistically significant. If , we fail to reject . Note the language: we never "accept" . Failing to reject is not the same as proving is true; it simply means we did not find sufficient evidence against it.
Confidence Intervals (CI)
A 95% confidence interval provides a range of values within which the true population parameter is expected to lie, with 95% confidence across repeated sampling. The CI carries more information than the -value alone because it communicates both the direction and magnitude of the effect, along with the precision of the estimate.
The critical rule linking CI to hypothesis testing: if a 95% CI for a difference does not include zero (or does not include 1.0 for ratios like odds ratio or relative risk), then and the result is statistically significant.
CI INTERPRETATION | MEANING |
|---|---|
95% CI for mean difference: 2.1 to 8.7 | Statistically significant (does not cross zero); the effect could be as small as 2.1 or as large as 8.7 |
95% CI for mean difference: to 6.4 | Not statistically significant (crosses zero); cannot exclude no difference |
95% CI for Odds Ratio: 1.4 to 3.2 | Statistically significant (does not cross 1.0); increased odds |
95% CI for Relative Risk: 0.6 to 1.1 | Not statistically significant (crosses 1.0); cannot exclude no effect |
Narrow CI | High precision, usually from a large sample |
Wide CI | Low precision, usually from a small sample or high variability |
Statistical Significance vs. Clinical Significance
This distinction is heavily tested. A result can be statistically significant but clinically meaningless when the study has a very large sample size that detects a tiny difference with no practical importance. For example, a study of 50,000 patients finds that Drug A lowers blood pressure by 0.5 mmHg more than placebo (). The result is statistically significant, but a 0.5 mmHg difference has no meaningful impact on patient outcomes.
Conversely, a result can be clinically meaningful but not statistically significant when the study is underpowered. A small trial of 30 patients finds that a new chemotherapy regimen improves 5-year survival by 15% (). The effect size is clinically important, but the study lacked the sample size to achieve statistical significance.
05Common Exam Distractors and Pitfalls
Type I Error ()
CONCEPT B (CONFUSED WITH)
Type II Error ()
KEY DISCRIMINATOR
Type I = false positive (rejecting a true ); Type II = false negative (failing to reject a false ). Think: Type I = False Alarm; Type II = Missed Detection
-value = probability is true
CONCEPT B (CONFUSED WITH)
-value = probability of the data given
KEY DISCRIMINATOR
The -value never tells you the probability is true. It tells you how extreme the data are assuming were true
Failing to reject = proving no effect
CONCEPT B (CONFUSED WITH)
Failing to reject = insufficient evidence
KEY DISCRIMINATOR
"Absence of evidence is not evidence of absence." Always consider whether the study was adequately powered
Statistical significance = clinical importance
CONCEPT B (CONFUSED WITH)
Statistical significance = unlikely due to chance alone
KEY DISCRIMINATOR
Large samples can make trivial differences statistically significant; always evaluate effect size and CI width
Paired t-test
CONCEPT B (CONFUSED WITH)
Unpaired t-test
KEY DISCRIMINATOR
Paired = same subjects measured twice (before/after); Unpaired = two separate groups of subjects
Chi-square test
CONCEPT B (CONFUSED WITH)
Fisher's exact test
KEY DISCRIMINATOR
Use Fisher's exact when any expected cell count in the contingency table is less than 5
ANOVA
CONCEPT B (CONFUSED WITH)
Multiple t-tests
KEY DISCRIMINATOR
Use ANOVA for 3+ groups. Running multiple t-tests inflates the Type I error rate (multiple comparisons problem)
Correlation ()
CONCEPT B (CONFUSED WITH)
Causation
KEY DISCRIMINATOR
Correlation measures the strength and direction of a linear relationship. It does not prove that one variable causes the other
Increasing
CONCEPT B (CONFUSED WITH)
Increasing power
KEY DISCRIMINATOR
Yes, increasing does increase power, but it also increases the risk of Type I error. This is a trade-off, not a free benefit
One-tailed test
CONCEPT B (CONFUSED WITH)
Two-tailed test
KEY DISCRIMINATOR
One-tailed has more power in one direction but misses effects in the opposite direction. Exam default is two-tailed unless specified
CONCEPT A (COMMONLY CONFUSED) | CONCEPT B (CONFUSED WITH) | KEY DISCRIMINATOR |
|---|---|---|
Type I Error () | Type II Error () | Type I = false positive (rejecting a true ); Type II = false negative (failing to reject a false ). Think: Type I = False Alarm; Type II = Missed Detection |
-value = probability is true | -value = probability of the data given | The -value never tells you the probability is true. It tells you how extreme the data are assuming were true |
Failing to reject = proving no effect | Failing to reject = insufficient evidence | "Absence of evidence is not evidence of absence." Always consider whether the study was adequately powered |
Statistical significance = clinical importance | Statistical significance = unlikely due to chance alone | Large samples can make trivial differences statistically significant; always evaluate effect size and CI width |
Paired t-test | Unpaired t-test | Paired = same subjects measured twice (before/after); Unpaired = two separate groups of subjects |
Chi-square test | Fisher's exact test | Use Fisher's exact when any expected cell count in the contingency table is less than 5 |
ANOVA | Multiple t-tests | Use ANOVA for 3+ groups. Running multiple t-tests inflates the Type I error rate (multiple comparisons problem) |
Correlation () | Causation | Correlation measures the strength and direction of a linear relationship. It does not prove that one variable causes the other |
Increasing | Increasing power | Yes, increasing does increase power, but it also increases the risk of Type I error. This is a trade-off, not a free benefit |
One-tailed test | Two-tailed test | One-tailed has more power in one direction but misses effects in the opposite direction. Exam default is two-tailed unless specified |
06Traps and High-Yield Pearls
The most common way students get questions on hypothesis testing wrong is by confusing what the -value actually means. The exam loves to offer answer choices that restate the -value as "the probability that the null hypothesis is true" or "the probability that the result is due to chance." Both are wrong. The -value is strictly the probability of obtaining the observed data (or more extreme) assuming is true.
The second major trap involves power and sample size. When a study reports a non-significant result, students often conclude that the treatment does not work. The correct interpretation is that the study failed to demonstrate a difference, and the next step is to evaluate whether the study had adequate power. If power was low (small sample, small effect size, high variance), a Type II error is likely.
Another frequently tested trap is the multiple comparisons problem. When investigators perform many statistical tests on the same dataset (e.g., comparing 10 subgroups), the probability of at least one false-positive finding increases dramatically. With 20 independent tests at , the probability of at least one Type I error is approximately , or 64%. The correction for this is the Bonferroni correction, which divides by the number of comparisons (e.g., ). The trade-off is reduced power.
Students also confuse paired and unpaired designs. If the vignette says "patients were measured at baseline and again after 8 weeks of treatment," the data are paired, and you must use a paired t-test (or Wilcoxon signed-rank if non-normal). Using an unpaired test on paired data introduces between-subject variability as noise, which inflates the variance and can mask a real treatment effect.
Finally, remember the hierarchy of what the exam is truly testing when it asks a biostatistics question about hypothesis testing: (1) can you identify the correct test for a given study design, (2) can you interpret -values and confidence intervals without falling for common misstatements, and (3) do you understand the relationship between sample size, power, effect size, and error types. Master these three competencies and you will handle the majority of hypothesis-testing questions correctly.