Sub topic 15
Testing Whether a Change Raised Completion
Assume you can read percentages, query basic course analytics, and identify learners in a course. This chapter uses a controlled comparison: one group sees the existing course, and another sees the changed version.
Define the test before changing the course
Choose one primary outcome. For example:
- Completion means reaching the final lesson and passing the final assessment.
- The completion window is 30 days after enrollment.
- The primary metric is completed learners divided by eligible learners.
- The change is a shorter onboarding lesson.
Keep the definition and measurement window the same for both groups. Otherwise, an apparent improvement may come from different counting rules.
| Group | Completed | Eligible | Completion rate |
|---|---|---|---|
| Control, version A | 180 | 600 | 30.0% |
| Treatment, version B | 222 | 600 | 37.0% |
The absolute improvement is 7 percentage points. The relative improvement is about 23%, calculated as (37% - 30%) / 30%.
Use a fair control and treatment
Randomly assign eligible learners to groups. Random assignment gives each learner a similar chance of entering either group, which reduces the effect of prior skill, motivation, and enrollment date.
The control group receives version A. The treatment group receives version B. Avoid exposing the same learner to both versions during the test. Also record important exclusions, such as test accounts or learners who enrolled before the change.
Track the assignment, enrollment date, exposure to the change, completion, and completion date. Analyze learners according to their assigned group, even if some learners do not open the new lesson. This is an intent-to-treat analysis, and it reflects the change's effect in normal use.
import math
def two_proportion_z(completed_a, total_a, completed_b, total_b):
p_a = completed_a / total_a
p_b = completed_b / total_b
pooled = (completed_a + completed_b) / (total_a + total_b)
standard_error = math.sqrt(
pooled * (1 - pooled) * (1 / total_a + 1 / total_b)
)
return (p_b - p_a) / standard_error
z = two_proportion_z(180, 600, 222, 600)
print(f"z = {z:.2f}")A z statistic describes how far the observed difference is from zero, measured in standard-error units. For a simple two-sided test, an absolute value above about 1.96 is often treated as evidence of a difference at the 5% significance level. This threshold does not prove that the change caused the improvement. It only indicates that random variation is an unlikely explanation under the test assumptions.
Check practical value and side effects
Statistical significance is not the same as usefulness. A 0.5-point increase may be measurable but too small to justify rebuilding a course. Check whether the change also affected assessment scores, refund requests, learner satisfaction, or support workload.
Stop or investigate the test if one group experiences technical failures, missing data, or a different enrollment mix. Do not repeatedly check results and stop at the first favorable number. Set the sample size, duration, primary metric, and decision rule before starting.
Exercise
Version A has 80 completions among 400 learners. Version B has 100 completions among 400 learners. What is the absolute improvement?
Show answer
Version A is 20% complete and version B is 25% complete, so the absolute improvement is 5 percentage points.