Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Analyzing MOOC data, learning analytics, and online education metrics
.claude/skills/brycewang-stanford-mooc-analytics-guide/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -4% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 172% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 115% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 95% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 30% | 0% |
A skill for analyzing Massive Open Online Course data, implementing learning analytics pipelines, and extracting actionable insights from online education platforms. Covers clickstream processing, engagement modeling, dropout prediction, and A/B testing for course design.
MOOC platforms export several standard data types:
| Data Type | Description | Typical Format | |-----------|-------------|----------------| | Clickstream logs | Page views, video plays, pauses, seeks | JSON event logs | | Forum posts | Discussion text, timestamps, thread structure | CSV/JSON | | Grade records | Assignment scores, quiz attempts, certificates | CSV | | Course structure | Module hierarchy, release dates, prerequisites | XML/JSON | | Survey responses | Pre/post course surveys, demographics | CSV |
Several open datasets are available for research:
pythonimport pandas as pd # Load OULAD dataset (publicly available) students = pd.read_csv("studentInfo.csv") assessments = pd.read_csv("assessments.csv") interactions = pd.read_csv("studentVle.csv") # Basic engagement metric: total clicks per student per course engagement = ( interactions .groupby(["id_student", "code_module", "code_presentation"]) .agg(total_clicks=("sum_click", "sum"), active_days=("date", "nunique")) .reset_index() ) print(engagement.describe())
Key metrics used in learning analytics research:
pythonimport numpy as np def regularity_index(daily_counts: np.ndarray) -> float: """ Compute regularity index based on Shannon entropy. Lower values indicate more regular study patterns. daily_counts: array of click counts per day over the course. """ total = daily_counts.sum() if total == 0: return float("nan") probs = daily_counts / total probs = probs[probs > 0] entropy = -np.sum(probs * np.log2(probs)) max_entropy = np.log2(len(daily_counts)) return round(entropy / max_entropy, 4) # normalized [0, 1]
Predicting which learners will drop out is a central MOOC analytics task:
pythonfrom sklearn.ensemble import GradientBoostingClassifier from sklearn.model_selection import TimeSeriesSplit from sklearn.metrics import roc_auc_score # Feature engineering: weekly aggregates features = [ "clicks_week", "video_time_week", "forum_posts_week", "assignments_submitted", "avg_score", "days_since_last_login", "regularity_index", "week_number" ] X = weekly_features[features] y = weekly_features["dropped_next_week"] # Time-aware cross-validation (no future leakage) tscv = TimeSeriesSplit(n_splits=5) aucs = [] for train_idx, test_idx in tscv.split(X): model = GradientBoostingClassifier( n_estimators=200, max_depth=4, learning_rate=0.1 ) model.fit(X.iloc[train_idx], y.iloc[train_idx]) pred = model.predict_proba(X.iloc[test_idx])[:, 1] aucs.append(roc_auc_score(y.iloc[test_idx], pred)) print(f"Mean AUC: {np.mean(aucs):.3f} +/- {np.std(aucs):.3f}")
Video interaction is the primary learning activity in MOOCs. Analyzing play, pause, seek, and speed-change events reveals learning patterns:
pythondef compute_video_metrics(events: pd.DataFrame) -> dict: """ Process video clickstream events into engagement metrics. events: DataFrame with columns [user_id, video_id, event_type, timestamp, position_seconds, video_duration] """ plays = events[events.event_type == "play"] pauses = events[events.event_type == "pause"] seeks = events[events.event_type == "seek"] total_duration = events.video_duration.iloc[0] watched_positions = set() for _, row in plays.iterrows(): start = int(row.position_seconds) # Estimate 10-second watch window per play event for sec in range(start, min(start + 10, int(total_duration))): watched_positions.add(sec) return { "play_count": len(plays), "pause_count": len(pauses), "seek_count": len(seeks), "coverage_ratio": len(watched_positions) / max(total_duration, 1), "replay_indicator": len(plays) > 1, }
Research findings on video engagement (Guo et al., 2014):
MOOCs provide large sample sizes ideal for randomized experiments:
pythonfrom scipy.stats import norm def mooc_power_analysis(effect_size: float, n_per_group: int, alpha: float = 0.05) -> float: """Compute statistical power for a two-sample t-test in MOOC A/B test.""" z_alpha = norm.ppf(1 - alpha / 2) z_beta = effect_size * (n_per_group ** 0.5) / 2 - z_alpha power = norm.cdf(z_beta) return round(power, 4) # Example: 5000 per group, small effect print(mooc_power_analysis(0.1, 5000)) # ~0.94
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 27,835 | 37,156 | +33% | 1 | 1 | 0% | 5,090 | 4,865 | -4% | 0 | 0 | — |
case-02 | fail→fail | 24,341 | 35,854 | +47% | 1 | 1 | 0% | 4,346 | 8,744 | +101% | 0 | 0 | — |
case-03 | fail→pass | 11,280 | 21,002 | +86% | 1 | 1 | 0% | 2,229 | 6,072 | +172% | 0 | 0 | — |
case-04 | pass→pass | 16,356 | 12,047 | -26% | 1 | 1 | 0% | 3,032 | 4,046 | +33% | 0 | 0 | — |
case-05 | fail→pass | 10,343 | 8,296 | -20% | 1 | 1 | 0% | 1,588 | 3,410 | +115% | 0 | 0 | — |
case-06 | fail→pass | 18,913 | 24,045 | +27% | 1 | 1 | 0% | 2,994 | 5,851 | +95% | 0 | 0 | — |
case-07 | pass→pass | 16,569 | 23,874 | +44% | 1 | 1 | 0% | 2,537 | 3,926 | +55% | 0 | 0 | — |
case-08 | fail→pass | 13,457 | 5,292 | -61% | 1 | 1 | 0% | 2,160 | 2,818 | +30% | 0 | 0 | — |
case-09 | pass→pass | 20,403 | 8,943 | -56% | 1 | 1 | 0% | 2,568 | 3,340 | +30% | 0 | 0 | — |
case-10 | fail→fail | 18,050 | 14,972 | -17% | 1 | 1 | 0% | 2,622 | 4,214 | +61% | 0 | 0 | — |
case-11 | pass→pass | 16,864 | 14,186 | -16% | 1 | 1 | 0% | 2,438 | 4,160 | +71% | 0 | 0 | — |
case-12 | pass→pass | 11,522 | 11,711 | +2% | 1 | 1 | 0% | 1,910 | 3,621 | +90% | 0 | 0 | — |
case-13 | pass→pass | 13,780 | 6,794 | -51% | 1 | 1 | 0% | 1,913 | 3,062 | +60% | 0 | 0 | — |
case-14 | fail→pass | 16,617 | 19,014 | +14% | 1 | 1 | 0% | 2,423 | 4,821 | +99% | 0 | 0 | — |
case-15 | pass→pass | 6,237 | 3,055 | -51% | 1 | 1 | 0% | 1,050 | 2,483 | +136% | 0 | 0 | — |
case-16 | pass→pass | 5,676 | 3,054 | -46% | 1 | 1 | 0% | 839 | 2,406 | +187% | 0 | 0 | — |
case-17 | fail→fail | 18,404 | 19,203 | +4% | 1 | 1 | 0% | 3,128 | 5,222 | +67% | 0 | 0 | — |
case-18 | pass→pass | 8,793 | 3,041 | -65% | 1 | 1 | 0% | 1,393 | 2,425 | +74% | 0 | 0 | — |
case-19 | pass→pass | 7,011 | 1,752 | -75% | 1 | 1 | 0% | 981 | 2,194 | +124% | 0 | 0 | — |
case-20 | pass→pass | 18,668 | 23,290 | +25% | 1 | 1 | 0% | 3,156 | 5,875 | +86% | 0 | 0 | — |
case-21 | pass→pass | 12,035 | 12,988 | +8% | 1 | 1 | 0% | 2,286 | 4,430 | +94% | 0 | 0 | — |
case-22 | pass→pass | 22,270 | 18,835 | -15% | 1 | 1 | 0% | 3,350 | 5,307 | +58% | 0 | 0 | — |
case-23 | fail→fail | 30,281 | 13,219 | -56% | 1 | 1 | 0% | 2,573 | 4,034 | +57% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 23 cases were attempted. The headline lift of +26 percentage points is the difference between those two pass rates over the 23 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.