diff --git a/.github/workflows/paper2-cross-presentation.yml b/.github/workflows/paper2-cross-presentation.yml new file mode 100644 index 0000000..805bf24 --- /dev/null +++ b/.github/workflows/paper2-cross-presentation.yml @@ -0,0 +1,57 @@ +name: "Paper 2 - cross-presentation bootstrap verification" +on: + push: + branches: + - research/paper2-cross-presentation-final-20261022 + paths: + - scripts/independent_cross_presentation_bootstrap.py + - .github/workflows/paper2-cross-presentation.yml + workflow_dispatch: +permissions: + contents: write +jobs: + verify: + if: github.actor != 'github-actions[bot]' + runs-on: ubuntu-latest + timeout-minutes: 50 + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-python@v5 + with: + python-version: '3.11' + - name: Install independent analysis dependencies + run: python -m pip install 'numpy==2.3.5' 'pandas==2.2.3' 'scikit-learn==1.8.0' + - name: Run full-refit 1000-resample bootstrap on each of three fixed presentations + run: python scripts/independent_cross_presentation_bootstrap.py + - name: Validate output and preserve aggregate evidence + run: | + python - <<'PY' + import json + d=json.load(open("results/paper2_cross_presentation_bootstrap_20261022.json")) + assert len(d["presentations"])==3 + for x in d["presentations"]: + assert x["bootstrap"]["resamples_valid"]>=950 + assert x["bootstrap"]["resamples_requested"]==1000 + assert len(x["bootstrap"]["ipw_95ci"])==2 + print("PASS: all three presentations full-refit uncertainty available") + PY + - name: Upload verified aggregate report + if: always() + uses: actions/upload-artifact@v4 + with: + name: paper2-cross-presentation-bootstrap + path: results/paper2_cross_presentation_bootstrap_20261022.json + if-no-files-found: warn + - name: Commit aggregate output to verification branch + run: | + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git add results/paper2_cross_presentation_bootstrap_20261022.json + if git diff --cached --quiet; then + echo "No numerical output changes" + else + git commit -m "research: archive three presentation full-refit intervals" + git push origin HEAD:research/paper2-cross-presentation-final-20261022 + fi diff --git a/paper/AUTHOR_RELEASE_CHECKLIST_20261022.md b/paper/AUTHOR_RELEASE_CHECKLIST_20261022.md new file mode 100644 index 0000000..667f9df --- /dev/null +++ b/paper/AUTHOR_RELEASE_CHECKLIST_20261022.md @@ -0,0 +1,35 @@ +# Paper 2 — Final research and author-review package (22 October 2026) + +## Release status +Technically reviewed working preprint. **Not** externally peer-reviewed, not proven causal, not uploaded to arXiv, and not accepted. Author approval is required. + +## Source of truth +- `Paper2_OULAD_Final_Integrated_20261022.pdf`: final typeset preprint +- `Paper2_Final_arXiv_Source_20261022.zip`: minimal LaTeX source to upload after author review (TeX and two PNG figures only) +- `Paper2_Final_Research_and_Release_QA_20261022.pdf`: completed/missing gate matrix +- `FINAL_QA_RESULTS.json`: reproducible numeric/compilation assertions, 83/83 passed +- `CROSS_PRESENTATION_20261022.json`: current-turn numeric summary of full-refit intervals; canonical aggregate output on GitHub +- `evidence/`: pinned, individually non-identifying aggregate study JSON and tests + +## Empirical evidence +Official OULAD UCI 349 https://doi.org/10.24432/C5KK69 +Checksum SHA256 f2ed1902616c1fe8d2824d872c0b7d2d72be435bf0124d077044fe4be2c6d3e4 +Independent raw-data focal verification https://github.com/devissaputra/causal_learning_analytics/actions/runs/39684326436 +Independent additional-presentation analysis https://github.com/devissaputra/causal_learning_analytics/actions/runs/39686498958 +Selection and missingness audit https://github.com/devissaputra/causal_learning_analytics/actions/runs/39688599327 +New 3x1000 full-refit intervals https://github.com/devissaputra/causal_learning_analytics/actions/runs/39777348662 +Evidence code draft PR #1 https://github.com/devissaputra/causal_learning_analytics/pull/1 +Finalization follow-up branch https://github.com/devissaputra/causal_learning_analytics/tree/research/paper2-cross-presentation-final-20261022 + +## Conceptual limitation +The 30-day earlier-submission indicator is not a randomly assigned or well-defined behavioral intervention. No credible causal identification strategy is available in these observational OULAD records; no weighting or additional p-value changes that fact. + +## arXiv upload instructions +Upload `Paper2_Final_arXiv_Source_20261022.zip` after confirming the author and reviewing claims. Do not upload the full research ZIP as the TeX source file. arXiv may request account/category endorsement and applies moderation. Verify category and full preview before confirmation. + +## Author-review checklist +[ ] Verify you actually performed or supervised and understand the research and accept responsibility for the results. +[ ] Verify name/affiliation/ORCID, source archive and figures, citations and dates. +[ ] Confirm that the paper states associations, not policy effects. +[ ] Review ethical/licensing notices and disclose AI assistance consistently with destination policy. +[ ] Decide whether to merge research PRs; submission through arXiv is author-controlled. \ No newline at end of file diff --git a/paper/FINAL_QA_RESULTS_20261022.json b/paper/FINAL_QA_RESULTS_20261022.json new file mode 100644 index 0000000..fe1221a --- /dev/null +++ b/paper/FINAL_QA_RESULTS_20261022.json @@ -0,0 +1,344 @@ +{ + "execution_date": "2026-10-22", + "scope": "Paper 2 post-revision QA: integrated verified evidence; not independent peer review", + "n_checks": 83, + "passed": 83, + "failed": 0, + "checks": [ + { + "check": "Official source checksum matches independent archival evidence", + "pass": true + }, + { + "check": "Secondary source checksum identical", + "pass": true + }, + { + "check": "Original UCI archive hash reported in manuscript", + "pass": true + }, + { + "check": "Original table hash verified: studentInfo.csv", + "pass": true + }, + { + "check": "Original table hash verified: studentRegistration.csv", + "pass": true + }, + { + "check": "Original table hash verified: assessments.csv", + "pass": true + }, + { + "check": "Original table hash verified: studentAssessment.csv", + "pass": true + }, + { + "check": "focal cases", + "pass": true + }, + { + "check": "early submitters", + "pass": true + }, + { + "check": "comparison arm", + "pass": true + }, + { + "check": "raw contrast", + "pass": true + }, + { + "check": "IPW contrast", + "pass": true + }, + { + "check": "OW contrast", + "pass": true + }, + { + "check": "max weight", + "pass": true + }, + { + "check": "IPW ESS", + "pass": true + }, + { + "check": "Primary bootstrap count verified", + "pass": true + }, + { + "check": "IPW interval matches manuscript", + "pass": true + }, + { + "check": "OW interval matches manuscript", + "pass": true + }, + { + "check": "Reported primary numerical token 0.3861", + "pass": true + }, + { + "check": "Reported primary numerical token 0.3261", + "pass": true + }, + { + "check": "Reported primary numerical token 0.3743", + "pass": true + }, + { + "check": "Reported primary numerical token 0.3242", + "pass": true + }, + { + "check": "Reported primary numerical token 0.4447", + "pass": true + }, + { + "check": "Reported primary numerical token 0.2667", + "pass": true + }, + { + "check": "Reported primary numerical token 0.3870", + "pass": true + }, + { + "check": "Reported primary numerical token 1,820", + "pass": true + }, + { + "check": "Reported primary numerical token 1,624", + "pass": true + }, + { + "check": "Reported primary numerical token 196", + "pass": true + }, + { + "check": "Reported primary numerical token 0.0181", + "pass": true + }, + { + "check": "Reported primary numerical token 0.1161", + "pass": true + }, + { + "check": "Reported primary numerical token 38.64", + "pass": true + }, + { + "check": "Reported primary numerical token 509.52", + "pass": true + }, + { + "check": "Reported primary numerical token 133.81", + "pass": true + }, + { + "check": "Flow focal_eligible", + "pass": true + }, + { + "check": "Flow complete_case", + "pass": true + }, + { + "check": "Flow final_analysis", + "pass": true + }, + { + "check": "Absence of submission group 98 + 98", + "pass": true + }, + { + "check": "Day14 insufficient support", + "pass": true + }, + { + "check": "Day45 IPW ESS reduction", + "pass": true + }, + { + "check": "Cross point FFF/2013J", + "pass": true + }, + { + "check": "Cross arm size FFF/2013J", + "pass": true + }, + { + "check": "Cross interval token FFF/2013J/0.4479", + "pass": true + }, + { + "check": "Cross interval token FFF/2013J/0.5476", + "pass": true + }, + { + "check": "Cross interval token FFF/2013J/0.3701", + "pass": true + }, + { + "check": "Cross interval token FFF/2013J/0.4762", + "pass": true + }, + { + "check": "Cross point BBB/2013J", + "pass": true + }, + { + "check": "Cross arm size BBB/2013J", + "pass": true + }, + { + "check": "Cross interval token BBB/2013J/0.4126", + "pass": true + }, + { + "check": "Cross interval token BBB/2013J/0.5368", + "pass": true + }, + { + "check": "Cross interval token BBB/2013J/0.3705", + "pass": true + }, + { + "check": "Cross interval token BBB/2013J/0.4859", + "pass": true + }, + { + "check": "Cross point BBB/2014J", + "pass": true + }, + { + "check": "Cross arm size BBB/2014J", + "pass": true + }, + { + "check": "Cross interval token BBB/2014J/0.4636", + "pass": true + }, + { + "check": "Cross interval token BBB/2014J/0.6324", + "pass": true + }, + { + "check": "Cross interval token BBB/2014J/0.4664", + "pass": true + }, + { + "check": "Cross interval token BBB/2014J/0.6051", + "pass": true + }, + { + "check": "Identification guardrail not identify", + "pass": true + }, + { + "check": "Identification guardrail unmeasured confounding", + "pass": true + }, + { + "check": "Identification guardrail day 30", + "pass": true + }, + { + "check": "Identification guardrail support", + "pass": true + }, + { + "check": "Identification guardrail different target", + "pass": true + }, + { + "check": "Identification guardrail full-refit", + "pass": true + }, + { + "check": "Identification guardrail not a randomized", + "pass": true + }, + { + "check": "Identification guardrail selection", + "pass": true + }, + { + "check": "Interpretation topic identification", + "pass": true + }, + { + "check": "Interpretation topic bootstrap", + "pass": true + }, + { + "check": "Interpretation topic selection", + "pass": true + }, + { + "check": "Interpretation topic cross-presentation", + "pass": true + }, + { + "check": "Interpretation topic bias", + "pass": true + }, + { + "check": "Every citation resolves", + "pass": true + }, + { + "check": "No unresolved bibliography keys", + "pass": true + }, + { + "check": "Expected figures are present", + "pass": true + }, + { + "check": "No raw student records in manuscript", + "pass": true + }, + { + "check": "PDF 9 pages", + "pass": true + }, + { + "check": "PDF searchable", + "pass": true + }, + { + "check": "Last page contains bibliography", + "pass": true + }, + { + "check": "No blank pages", + "pass": true + }, + { + "check": "No result numbers missing in PDF", + "pass": true + }, + { + "check": "No TeX unresolved references", + "pass": true + }, + { + "check": "Twice clean-room minimal-source compile", + "pass": true + }, + { + "check": "Same page count in clean-room", + "pass": true + }, + { + "check": "Text-identical clean-room PDF", + "pass": true + } + ], + "source_reproduction": "https://github.com/devissaputra/causal_learning_analytics/actions/runs/39684326436", + "external_interval_reproduction": "https://github.com/devissaputra/causal_learning_analytics/actions/runs/39777348662", + "scientific_verdict": "Working preprint candidate after author verification; observational results do not identify intervention effects" +} \ No newline at end of file diff --git a/paper/main_integrated_20261022.tex b/paper/main_integrated_20261022.tex new file mode 100644 index 0000000..a2fd492 --- /dev/null +++ b/paper/main_integrated_20261022.tex @@ -0,0 +1,196 @@ +\documentclass[10pt,a4paper]{article} +\usepackage[margin=0.74in]{geometry} +\usepackage[T1]{fontenc} +\usepackage[utf8]{inputenc} +\usepackage{lmodern,microtype,amsmath,amssymb,booktabs,array,graphicx,caption,subcaption} +\usepackage[colorlinks=true,urlcolor=blue,citecolor=blue,linkcolor=blue]{hyperref} +\usepackage{natbib} +\hypersetup{pdftitle={Early Assessment Submission and Subsequent Course Outcome in OULAD},pdfauthor={Devis Wawan Saputra}} +\sloppy\emergencystretch=4em +\setlength{\parskip}{.18em}\setlength{\parindent}{0pt}\renewcommand{\baselinestretch}{0.96} +\title{Early Assessment Submission and Subsequent Course Outcome:\\ \large A Day-30 Landmark Observational Analysis of OULAD with Explicit Weighting Diagnostics} +\author{Devis Wawan Saputra\\\small Independent Researcher, Indonesia\\\small ORCID: \href{https://orcid.org/0000-0002-7133-9410}{0000-0002-7133-9410}} +\date{26 October 2026} +\begin{document}\maketitle +\begin{abstract} +We examined the association between submission of an assessment by day 30 and final course outcome in the Open University Learning Analytics Dataset (OULAD). To avoid classifying students who withdrew during the exposure window as comparable non-submitters, the main analysis was restricted to students enrolled at a day-30 landmark. In the CCC/2014J course presentation, 1,820 students remained after exclusions for missing covariates and unsupported exposure categories; 1,624 had submitted at least one non-banked assessment by day 30. The difference in favorable final outcome rates (Pass or Distinction) was 0.3743. A normalized inverse-probability-weighted contrast was 0.3861 (95\% full-refit bootstrap interval 0.3242--0.4447). The overlap-weighted contrast was 0.3261 (0.2667--0.3870), describing a different weighted population. The weights were unstable in the smaller comparison group, and measured covariates remained imbalanced under inverse-probability weighting. We independently reconstructed the cohort and estimates from the official UCI archive, examined eligibility and missing-data exclusions, and repeated descriptive analyses in three other course presentations. Those comparisons also showed positive associations, but their confidence intervals cannot account for unmeasured differences between the groups. The study identifies a reproducible association among selected learners, not the effect of requiring or encouraging earlier submissions. + +\end{abstract} +\textbf{Keywords:} learning analytics; OULAD; landmark design; selection bias; propensity weighting; overlap weights; observational study; early assessment. +\section{Introduction} +An assessment submission is easy to observe in administrative data. It is harder to interpret. Students who submit during the first month of a course may differ from those who do not in preparation, available time, access to assessment tasks, or progress toward course completion. Some of those differences may also predict the final outcome. Treating submission by day 30 as a fixed baseline characteristic can introduce further problems if students who withdraw before day 30 are included among the non-submitters. + +We therefore compare students who remained enrolled at a common day-30 landmark. Our question is deliberately descriptive: within that selected population, how much do recorded rates of favorable final outcomes differ between students with and without a qualifying submission by day 30, after adjustment for available background variables? We examine the reliability of that comparison by reproducing it independently and inspecting weight concentration, covariate balance, exclusions, and other course presentations. + +The analysis does not identify an effect of submission policy. An observed submission is neither a randomized assignment nor a sufficiently specified intervention. In particular, a course assessment may itself be part of the requirements for passing, making submission status and successful completion structurally related. + +\section{Related Literature and Causal Structure} +OULAD links student characteristics, registration records, assessments, and course outcomes across Open University presentations \citep{kuzilek2017}. Landmark designs align the observation window and eligibility at a common time, reducing certain temporal classification problems but restricting the population under study \citep{hernan2016}. Inverse-probability weighting can adjust observed contrasts for recorded covariates, although model misspecification, weak overlap, and unmeasured factors still threaten interpretation \citep{austin2015}. Overlap weighting gives more influence to students with intermediate estimated probabilities of early submission and consequently targets a different population \citep{li2018}. + +Let $E$ indicate a qualifying submission by day 30, $Y$ indicate Pass or Distinction, and $X$ denote recorded background variables. Motivation, work obligations, assessment opportunity, and prior preparation may influence both $E$ and $Y$ without being measured in $X$. Enrollment at day 30 can also depend on those factors. Conditioning on enrollment therefore creates a selected group; weighting its measured characteristics does not recover an unconfounded causal effect. This analysis follows relevant observational reporting principles from STROBE \citep{strobe2007}. A contemporary OULAD prediction study by \citet{wu2026} addresses early-warning calibration and fairness, which are distinct from estimating the effect of changing submission behavior. + +\section{Source Data and Cohort Construction} +\subsection{Provenance} +The analysis uses OULAD, UCI repository entry 349 and DOI \href{https://doi.org/10.24432/C5KK69}{10.24432/C5KK69}. The independent verification workflow downloaded the original UCI ZIP archive and verified SHA-256 \texttt{f2ed1902616c1fe8d2824d872c0b7d2d}\\\texttt{72be435bf0124d077044fe4be2c6d3e4}; tables used are \texttt{studentInfo.csv}, \path{studentRegistration.csv}, \texttt{assessments.csv}, and \path{studentAssessment.csv}. The original dataset description is \citep{kuzilek2017}. The dataset records historical 2013--2014 UK distance-learning modules; the analysis does not require post-landmark clickstream logs. Findings cannot automatically be transported to contemporary learning environments. + +\subsection{Eligibility, exposure, outcome, and selection} +The evaluation landmark is presentation day 30. An included learner must be registered no later than day 30 and must not have unregistered by the end of day 30. For records whose final status is Withdrawn, an observed unregistration date after day 30 is required. We explicitly condition on survival in the course to day 30; estimates do not target all originally enrolled students. + +Exposure $E=1$ requires at least one \emph{non-banked} submission, with the submission date no earlier than the recorded registration date and no later than day 30. Banked results transferred from earlier attempts are excluded. Outcome $Y=1$ is a final Pass or Distinction; $Y=0$ is Fail or a withdrawal occurring after the landmark. The binary unexposed category $E=0$ combines students who submit later and students who never submit a qualifying assessment: these are behaviorally different groups. That distinction cannot be recovered by interpreting $E=0$ as ``never submitted.'' A companion analysis script classifies these subgroups for \emph{descriptive} comparison, explicitly treating post-landmark submission as a future event that must not be used as a baseline confounder. Furthermore, submission is partly an assessment-progression process. Comparisons of submission status against successful completion risk capturing structural co-dependence, as well as learner behavior. + +\subsection{Missingness and empirical support} +The independently reproduced source spans 32,593 module-registration records; 27,350 were landmark eligible across all presentations. The chosen CCC/2014J presentation contains 1,983 eligible learners before adjustment missingness. A further 133 cases were excluded owing to missing deprivation category, leaving 1,850 complete cases. The independently implemented categorical-support restriction removed 30 learners associated with categorical levels lacking empirical variation in the binary exposure, yielding 1,820 analytic cases. This outcome-blind restriction reduces unsupported comparisons but changes the target population and does not guarantee propensity overlap for every multivariate covariate pattern. The total restriction excludes 163 of 1,983 eligible learners (8.22\%). The independently audited unadjusted favorable-outcome contrast is 0.376763 among all 1,983 landmark-eligible learners, 0.376638 among the 1,850 complete cases, and 0.374296 among the final 1,820. These numerical similarities reduce concern that the measured \emph{unadjusted} contrast is solely an artifact of those two exclusion steps. They do not eliminate selection into the day-30 survivor cohort or explain the unmeasured causes of early submission. Missing-covariate exclusion affected 122 of 1,776 early submitters (6.87\%) and 11 of 207 non-early learners (5.31\%). + +\begin{table}[ht]\centering\small\caption{Independently replicated flow for CCC/2014J at day 30.}\begin{tabular}{lr}\toprule +Selection step & Learners\\\midrule +Landmark eligible & 1,983\\ +Missing adjustment covariate & $-133$\\ +Complete case & 1,850\\ +Empirically unsupported category & $-30$\\ +Final analytic set & \textbf{1,820}\\ +Early submitters / no early submission & 1,624 / 196\\\bottomrule +\end{tabular}\end{table} + +\subsection{Independent exclusion audit and raw outcome sensitivity} +We separately tabulated submission status and final outcomes for the 133 learners missing a baseline covariate and the 30 excluded by the empirical-support rule. The audit used the checksum-verified UCI archive (\href{https://github.com/devissaputra/causal_learning_analytics/actions/runs/39688599327}{GitHub Actions run 39688599327}). These are unadjusted, retrospective descriptions, not imputed adjusted estimates. +\begin{table}[ht]\centering\small +\caption{New independent OULAD source-data exclusion audit (CCC/2014J, day 30). Rates are favorable final outcomes among the named observed exposure groups.} +\label{tab:exclusions} +\begin{tabular}{lrrrrr}\toprule +Set & $n$ & Early $n$ & Not early $n$ & Early rate & Not-early rate\\\midrule +All landmark eligible & 1,983 & 1,776 & 207 & 0.5507 & 0.1739\\ +Missing covariates & 133 & 122 & 11 & 0.6967 & 0.3636\\ +Support excluded & 30 & 30 & 0 & 0.6667 & ---\\ +Final analytic sample & 1,820 & 1,624 & 196 & 0.5376 & 0.1633\\\bottomrule +\end{tabular}\end{table} +The all-eligible \emph{raw} early-minus-not-early favorable-rate difference is $0.550676-0.173913=0.376763$; after the exclusion sequence it is $0.537562-0.163265=0.374296$. This small change is a direct calculation from observed final labels, not a sensitivity result for the \emph{adjusted} IPW or overlap estimands. Missing-covariate exclusions have different outcome rates from the final analytic sample, and the empirical-support step removes only early submitters; selection remains a material interpretive limitation. No claim of missing-at-random, zero selection bias, or preserved causal effect follows from the raw-difference comparison. + +\section{Statistical Analysis} +\subsection{Adjustment and estimated propensity} +The numeric adjustment set includes studied credits, number of prior attempts, and registration timing. Categorical variables are age band, highest education, deprivation band, disability indicator, gender, and region. Numeric variables are standardized and categories are encoded using one-hot indicators. The exposure-propensity model is an $L_2$-penalized logistic regression $e(X)=P(E=1\mid X,L=1)$ fitted in the selected cohort. Assessment score, activity after day 30, and final outcome are excluded from adjustment. The available baseline records do not capture assignment due dates or individual assessment opportunities, pre-course academic ability, self-regulation, or motivation. The propensity model cannot balance these missing determinants; its covariate adjustment is neither a substitute for a randomized policy comparison nor a well-defined counterfactual intervention. + +\subsection{Weighted contrasts and their target populations} +Let $w_i=E_i/e_i+(1-E_i)/(1-e_i)$. The normalized H\'ajek ATE-style weighted outcome contrast is +\begin{equation} +\widehat\Delta_{\mathrm{IPW}}=\frac{\sum_i E_iY_i/e_i}{\sum_i E_i/e_i}-\frac{\sum_i(1-E_i)Y_i/(1-e_i)}{\sum_i(1-E_i)/(1-e_i)}. +\end{equation} +This would target a standardized average causal effect only under consistency, positivity, correctly specified estimation, conditional exchangeability, appropriate selection assumptions, and well-defined interventions. Here it is reported descriptively as an ATE-\emph{style} weighted contrast. + +Overlap weights are $w_i^{\mathrm{OW}}=E_i(1-e_i)+(1-E_i)e_i$. They emphasize subjects with intermediate estimated exposure probability. Their standardized difference targets the propensity-overlap population (often called an ATO-style target), not the same empirical average as IPW. No difference between the two estimates should automatically be described as evidence for effect heterogeneity, because the assumptions and weighting diagnostics also differ. + +Covariate balance is summarized by standardized mean differences (SMD). Large SMD, narrow effective sample size (ESS), and extreme weights warn that weighted associations may be dominated by a relatively small set of observations. Kish ESS is $(\sum_i w_i)^2/\sum_i w_i^2$. The primary recorded uncertainty interval is obtained by 1,000 bootstrap replicates refitting the propensity model in each draw; a fixed-propensity bootstrap is retained only as a secondary diagnostic. Such intervals quantify sampling/model-fit variability under the frozen cohort and specifications, \emph{not} confounding uncertainty. + +\section{Main Results} +\subsection{Outcome contrasts and uncertainty} +\begin{table}[ht]\centering\small\caption{Independently reproduced CCC/2014J contrasts. All are observational; last two intervals are full-refit percentile bootstrap intervals.}\label{tab:effects} +\begin{tabular}{lrrl}\toprule +Measure & Difference & 95\% interval & Population/interpretation\\\midrule +Raw early minus not-early & 0.3743 & --- & Unweighted final analytic set\\ +Horvitz--Thompson & 0.3915 & --- & IPW, ATE-style\\ +H\'ajek IPW & \textbf{0.3861} & [0.3242, 0.4447] & IPW, ATE-style\\ +Overlap weights & \textbf{0.3261} & [0.2667, 0.3870] & ATO-style, different target\\\bottomrule +\end{tabular}\end{table} +\begin{figure}[ht]\centering\includegraphics[width=.79\linewidth]{causal_estimates.png}\caption{Archived numerical contrasts with bootstrap uncertainty, plotted from existing summary metrics. Raw and weighted estimates do not share the same estimand.}\end{figure} +Within the selected landmark cohort, earlier submission is associated with a higher recorded probability of a favorable final result. The adjusted contrast is numerically large, but it must not be read as an expected effect of a deadline, a reminder, a tutoring intervention, or compulsory assessment completion. + +\subsection{Propensity overlap, effective sample size, and covariate balance} +The estimated propensities range from 0.3841 to 0.9915; the observed common-support interval is 0.4459--0.9741 and contains 97.03\% of cases. Under standard IPW the maximum weight is 38.64 and total ESS is about 509.52, despite 1,820 observed learners. The weighted effective sample size for the 196 unexposed learners is 133.81. These figures indicate substantial dependence on large weights in the sparse comparator group. + +Several SMDs improve with IPW but not all satisfy a $|\mathrm{SMD}|<0.1$ descriptive threshold: for example female gender falls from absolute SMD 0.307 to 0.116, still above this threshold. Overlap weighting has maximum recorded absolute SMD 0.0181, total ESS 649.71, and unexposed-group ESS 192.32. Because the fitted propensity regression includes an $L_2$ penalty, exact finite-sample moment balance is not guaranteed even under the usual logistic overlap-weight formulation \citep{li2018}. This better measured balance is associated with a change in target population; it does not establish exchangeability or resolve unknown confounding. +\begin{figure}[ht]\centering\includegraphics[width=.79\linewidth]{causal_balance.png}\caption{Selected absolute SMDs before and after primary IPW, reconstructed from existing empirical summary. Remaining imbalance is visible.}\end{figure} + +\subsection{Recorded sensitivity to analytic choices} +The propensity-specification sensitivity analyses produced H\'ajek contrasts 0.3912 without region, 0.3801 when adding quadratic numeric terms, and 0.3849 under stronger $L_2$ regularization (primary: 0.3861). Clipping probabilities at 0.05 produces 0.3808, and clipping at 0.10 produces 0.3771, the latter changing weights for 1,101 cases. The empirical common-support restricted contrast is 0.3829, with scores not re-estimated after restriction. Such stability across selected modifications is descriptive and does not address confounding by motivation or preparation. Moreover, the overlap-weighted contrast (0.3261) applies to a different population and should not be marketed as a robustness confirmation of the same estimand. + + +\section{Illustrative Unmeasured-Confounding Scenario} +The bootstrap intervals describe variability from resampling students and refitting the propensity model; they do not quantify uncertainty about unmeasured confounding. To illustrate the scale of the problem, consider an additive bias term $B=\gamma\eta$, where $\gamma$ is a stipulated outcome-risk difference associated with an unmeasured binary factor and $\eta$ is its stipulated weighted prevalence difference between the submission groups. Both are hypothetical. Subtracting $B=0.20$ from the observed IPW contrast of 0.3861 would leave 0.1861; using $B=0.40$ would reverse its sign. The data do not establish whether either assumption is plausible. This calculation is an algebraic illustration, not a sensitivity bound estimated from OULAD, and it does not turn the descriptive comparison into a causal estimate. + +\section{Independent Reproduction and Landmark Checks} +On 22 October 2026, we ran an independently written extraction, cohort-construction, propensity-estimation and outcome-analysis program on a fresh GitHub Actions runner. The program does not import the original project's causal analytics functions. It downloaded and checksum-verified the official UCI archive, extracted only the four required linked CSVs, calculated each file SHA-256, and independently rebuilt the day-30 CCC/2014J analytic cohort and primary contrasts. The run and aggregate JSON record are publicly auditable at +\url{https://github.com/devissaputra/causal_learning_analytics/actions/runs/39684326436}. The verification code is proposed in a separate, unmerged pull request \url{https://github.com/devissaputra/causal_learning_analytics/pull/1}. Raw student records are not bundled with this manuscript. + +The 1,820 learner sample, split (1,624 vs. 196), unadjusted risk difference (0.374296), H\'ajek IPW contrast (0.386110), and overlap-weighted contrast (0.326066) reproduce the archived point estimates to the stated tolerances. The independent 1,000-resample full-refit percentile intervals are 0.324225--0.444675 and 0.266654--0.387026, respectively. The IPW effective sample size of 509.52 and maximum weight of 38.64 were also reproduced. Consequently, the previous uncertainty about whether the reported day-30 estimates were reproducible from raw OULAD records is resolved for these primary numerical quantities. This verification is not an independent causal identification exercise. + +A pre-specified exploratory landmark check with the same data-processing logic yielded the following results: +\begin{table}[ht]\centering\small +\caption{Independently computed CCC/2014J landmark checks. Comparisons across days refer to different eligible learner populations. Day-45 point estimates do not have separately refitted bootstrap intervals.} +\begin{tabular}{lrrrrrr}\toprule +Landmark & Analytic $n$ & Early $n$ & Unexposed $n$ & Raw $\Delta$ & IPW $\Delta$ & OW $\Delta$ \\\midrule +Day 14 & 450 & -- & -- & -- & -- & -- \\ +Day 30 & 1,820 & 1,624 & 196 & 0.3743 & 0.3861 & 0.3261 \\ +Day 45 & 1,726 & 1,599 & 127 & 0.4130 & 0.4738 & 0.3606 \\\bottomrule +\end{tabular}\end{table} + +The day-14 analysis removed 1,465 complete cases under the categorical-support restriction, leaving 450 learners, but had fewer than 30 observations in at least one exposure arm; therefore no valid weighted comparison is reported. At day 45, the maximum IPW weight increased to 64.18 and the total IPW effective sample size fell to 314.31 (from 509.52 at day 30), with only 127 unexposed learners. This makes the larger day-45 contrast especially vulnerable to positivity problems and unstable weighting; no dose-response or strengthening causal effect may be inferred. The independent day-30 audit was extended to alternate presentations and post-landmark submission descriptions. Their outputs are reported in the following separate, exploratory section; none supplies causal identification. + + +\section{Other Course Presentations} +A second successful isolated GitHub Actions execution downloaded the same original UCI archive and verified its checksum, reproducing the focal CCC/2014J estimate again and calculating previously unreported diagnostics and exploratory comparisons (\href{https://github.com/devissaputra/causal_learning_analytics/actions/runs/39686498958}{run 39686498958}). The standalone audit source is available in the \href{https://github.com/devissaputra/causal_learning_analytics/pull/1}{draft research pull request}; the two JSON outputs are downloadable from the run artifact. The audited sample is selected without consulting outcome labels. The secondary comparisons were added during manuscript revision; therefore they should not be interpreted as confirmatory prespecified replications. + +\subsection{Arm-wise weight stability and balance} +The day-30 primary IPW weights have effective sample sizes of 1,603.91 among 1,624 early submitters and only 133.81 among 196 non-early submitters. The five largest weights contribute 8.84\% of the total non-early arm weight, and its maximum is 38.64. The alternative overlap weights give arm-wise effective sample sizes 1,045.10 and 192.32. A separately implemented standardized mean-difference diagnostic evaluates 37 numeric/categorical indicators using their weighted within-group variances: maximum absolute SMD falls from 0.5064 unweighted to 0.1161 under IPW (two indicators exceeding 0.10), and 0.0181 with overlap weighting (none exceeding 0.10). These numbers reinforce that overlap weighting balances the \emph{recorded} variables better, but its target population differs and residual or unmeasured confounding remains plausible. + +\subsection{Propensity model specifications} +Holding the focal sample and definition fixed, varying logistic regularization to $C=0.25$ gives an IPW contrast of 0.3849; $C=4$ gives 0.3865; and dropping region gives 0.3912. The numerical range is narrow for these particular specifications. It is not a formal sensitivity test of unmeasured confounding or a guarantee against misspecification. In particular, propensity-score extremes and small comparison arms persist. + +\subsection{Cross-presentation descriptive replication} +We identified the 17 additional module-presentations with at least 30 learners in each exposure group after the same day-30 complete-case and categorical-support restrictions. We selected the three largest eligible presentations \emph{only by resulting cohort size}, without looking at outcome rates or estimated contrasts. Table~\ref{tab:otherpresentations} reports the resulting point estimates. Each comparison refits its own propensity model, uses a distinct exposure-opportunity context, and is explicitly exploratory; we do not pool effects or claim a universal response to a policy. +\begin{table}[ht]\centering\small +\caption{Additional independently executed day-30 observational contrasts (exploratory). The post-hoc within-presentation bootstrap intervals appear in Table~\ref{tab:crossci}. IPW balance failures remain in all three.} +\label{tab:otherpresentations} +\begin{tabular}{lrrrrrr}\toprule +Presentation & $n$ & No early $n$ & Raw $\Delta$ & IPW $\Delta$ & OW $\Delta$ & IPW ESS\\\midrule +FFF / 2013J & 1,867 & 178 & 0.4933 & 0.5032 & 0.4215 & 445.13\\ +BBB / 2013J & 1,804 & 217 & 0.4984 & 0.4768 & 0.4301 & 653.69\\ +BBB / 2014J & 1,752 & 96 & 0.5770 & 0.5610 & 0.5416 & 217.39\\\bottomrule +\end{tabular} +\end{table} +\subsection{Full-refit uncertainty for three additional presentations} +After obtaining and inspecting the exploratory point contrasts, we executed a separate, reproducible follow-up that refits the propensity model within each of 1,000 student-level bootstrap samples for each of the same three presentations (UCI raw archive checksum unchanged). The presentation list and cohort definitions were held fixed; this procedure is \emph{post-hoc descriptive uncertainty estimation}, not new prospective confirmation. All 3,000 bootstrap fits succeeded and the numerical point estimates match the independently archived exploratory analysis. +\begin{table}[ht]\centering\small +\caption{Post-hoc 95\% full-refit bootstrap percentile intervals for three further day-30 OULAD presentations. Both contrasts and intervals describe observed submission groups only; IPW and overlap target different weighted populations.} +\label{tab:crossci} +\begin{tabular}{lrrrr}\toprule +Presentation & IPW $\Delta$ & IPW 95\% interval & Overlap $\Delta$ & Overlap 95\% interval\\\midrule +FFF / 2013J & 0.5032 & [0.4479, 0.5476] & 0.4215 & [0.3701, 0.4762]\\ +BBB / 2013J & 0.4768 & [0.4126, 0.5368] & 0.4301 & [0.3705, 0.4859]\\ +BBB / 2014J & 0.5610 & [0.4636, 0.6324] & 0.5416 & [0.4664, 0.6051]\\\bottomrule +\end{tabular}\end{table} +All intervals are strictly above zero, but they do not account for unmeasured confounding, retention selection, or the exploratory presentation-selection and analysis decisions. These nominal intervals are not adjusted for selection or multiplicity. Especially for BBB/2014J, the exposed/unexposed split is 1,656/96, the maximum IPW weight is 113.67, the IPW effective sample size is 217.39, and the maximum post-IPW absolute SMD is 0.2162. These diagnostics materially limit adjusted comparability despite the nonzero bootstrap interval. Source code, all aggregate estimates and the successful independent workflow are in \url{https://github.com/devissaputra/causal_learning_analytics/actions/runs/39777348662} and \url{https://github.com/devissaputra/causal_learning_analytics/blob/research/paper2-cross-presentation-final-20261022/results/paper2_cross_presentation_bootstrap_20261022.json}. + +The primary concern is not whether all contrasts are positive: the comparison sizes, maximum weights, and measured imbalance vary across presentations. Maximum absolute post-IPW SMDs are 0.1135, 0.1236, and 0.2162, respectively; maximum post-overlap SMDs are 0.0456, 0.0350, and 0.0543, using the same within-group-variance convention. The highest IPW contrasts occur under different selection structures, so they should not be interpreted as external causal validation. + +\subsection{Why the unexposed category is heterogeneous} +In CCC/2014J, 98 of the 196 learners without an early qualifying submission had a later qualifying submission recorded, and 98 had no qualifying later submission recorded. The final favorable-outcome counts are 32 of 98 (32.7\%) and 0 of 98 (0\%), respectively. These are purely \emph{retrospective} descriptions of groups classified by behavior after day 30. In a course where submitting assessments is closely tied to progression or grading, the absence of later recorded submissions is also structurally entangled with the final outcome. It would be incorrect to use later submission as a baseline confounder, to call the later/never contrast an intervention effect, or to claim that the association is independent of the assessment system's progression requirements. + +\section{Identification Boundary and a Testable Future Intervention} +The study does not identify the effect of \emph{making} a learner submit an assessment by day 30. In particular, an observed submission can be both a marker of underlying capacity and part of the grading and progression mechanism. No measured covariate model repairs this structural difference between a behavior and an intervention. The source dataset does not record an independently assigned encouragement, a policy instrument, individualized assessment access or reminder assignment, pre-course learning motivation, or the full chronology of assessment opportunities. Moreover, a hypothetical intervention initiated on day 30 cannot change whether submission occurred in the preceding 30 days; policy assignment and eligibility would have to precede that exposure window. + +A prospective follow-up study could instead randomize a \emph{defined, feasible support policy} at or before the beginning of an assessment window, such as offering a structured reminder and optional submission assistance at specified days when an assessment is demonstrably available. Eligibility, assignment, the intention-to-treat target population, outcome horizon, subgroup protections, implementation adherence, and missingness handling would need specification before assignment. Follow-up should retain participants assigned to each policy regardless of subsequent submission, and distinguish effects on submission rates from effects on final course outcomes. Such a design would estimate an effect of \emph{support offered}, not necessarily the effect of compulsory submission. The present OULAD analysis contains no such assignment and cannot be retroactively upgraded to that study. + +\section{Discussion} +The adjusted positive association is compatible with several explanations: students with greater preparation or available time may submit earlier and finish successfully; access barriers or employment demands may delay submission and independently worsen final outcomes; assessment schedules and course supports may affect both. Measured background adjustment cannot remove unobserved motivation, prior achievement, workload, digital access, or individualized support. Moreover, retained enrolment to day 30 may itself reflect these factors. The event ``at least one submission'' also conflates timing, opportunity, task type, and degree of completion. + +The results therefore support research on monitoring and clarification, not automatic learner risk labeling. Existing OULAD early-warning research likewise finds that calibration, subgroup auditing and cross-presentation transport matter before deployment \citep{wu2026}; these predictive properties still would not identify the benefit of the resulting interventions. Using submission timing as a punitive intervention trigger could disadvantage learners facing structural constraints. Aggregate descriptive analytics with human review and locally evaluated interventions would be more proportionate than policy claims based solely on these historical records. + +The missingness/support exclusions depend on measured record properties, not on a missing-at-random guarantee. A comparison of crude contrasts across excluded and retained samples is descriptive; its apparent numerical stability cannot substitute for identification assumptions. The analysis also conditions on being registered and retained to day 30, a potential collider affected by learner circumstances and course supports. Conditional on complete data, all reported point estimates still refer to selected cohorts and cannot be equated with the total enrollment population. This study uses de-identified historical public records; that fact does not eliminate re-identification risk in downstream joined datasets, nor does it license redistribution beyond the dataset terms. The present repository records no human-subject contact or new randomization. Ethical review requirements for later deployed interventions are separate from the reproducibility of this secondary analysis. + +\section{Conclusion} +Among CCC/2014J students still enrolled on day 30, those with a qualifying early assessment submission had a substantially higher rate of passing or earning distinction. The positive difference persisted under inverse-probability and overlap weighting, but those estimates describe different weighted populations. Sparse comparison groups, large weights, selection into the day-30 cohort, and unrecorded differences in opportunity or preparation limit what can be inferred. The three additional course presentations show similar descriptive patterns without resolving these problems. These results are useful as an audit of historical learning-analytics associations; they cannot justify an assessment-deadline intervention without a separately designed study. + +\section*{Data, code, and verification boundary} +The source is OULAD, UCI dataset 349 (\href{https://doi.org/10.24432/C5KK69}{DOI:10.24432/C5KK69}). Analysis code, numerical summaries, and independent cohort-reconstruction workflows are documented at \url{https://github.com/devissaputra/causal_learning_analytics}. The main 1,820-student analysis and its full-refit bootstrap intervals were independently rerun from the original checksum-verified UCI archive \href{https://github.com/devissaputra/causal_learning_analytics/actions/runs/39684326436}{(Actions 39684326436)}. Separate runs checked sample exclusions and the three additional course presentations, including 1,000 refitted bootstrap samples per presentation \href{https://github.com/devissaputra/causal_learning_analytics/actions/runs/39777348662}{(Actions 39777348662)}. These computations verify the reported observational quantities, not causal identification. The extended code is on an unmerged research branch \href{https://github.com/devissaputra/causal_learning_analytics/pull/2}{(draft PR 2)}. Individual student records are not redistributed. + +\section*{Use of computational and writing tools} +Generative AI tools assisted with analysis-code development, manuscript editing, and technical checks. The numerical findings are linked to executed code and aggregate output. The named human author is responsible for personally reviewing all methods, references, interpretations, and manuscript disclosures before submission. + +\begin{thebibliography}{99} +\bibitem[von Elm et al.(2007)]{strobe2007} von Elm, E., Altman, D. G., Egger, M., Pocock, S. J., G\"otzsche, P. C., and Vandenbroucke, J. P. (2007). The Strengthening the Reporting of Observational Studies in Epidemiology (STROBE) statement: guidelines for reporting observational studies. \emph{The Lancet}, 370(9596), 1453--1457. \url{https://doi.org/10.1016/S0140-6736(07)61602-X}. +\bibitem[Austin and Stuart(2015)]{austin2015} Austin, P. C. and Stuart, E. A. (2015). Moving towards best practice when using inverse probability of treatment weighting using the propensity score to estimate causal treatment effects in observational studies. \emph{Statistics in Medicine}, 34(28), 3661--3679. \url{https://doi.org/10.1002/sim.6607}. +\bibitem[Hern\'an et al.(2016)]{hernan2016} Hern\'an, M. A., Sauer, B. C., Hern\'andez-D\'iaz, S., Platt, R., and Shrier, I. (2016). Specifying a target trial prevents immortal time bias and other self-inflicted injuries in observational analyses. \emph{Journal of Clinical Epidemiology}, 79, 70--75. \url{https://doi.org/10.1016/j.jclinepi.2016.04.014}. +\bibitem[Wu et al.(2026)]{wu2026} Wu, S., Duan, J., and Luo, M. (2026). Calibrated early-warning models with fairness auditing and selective prediction for course withdrawal risk: Evidence from OULAD. \emph{PLOS ONE}, 21(7), e0352867. \url{https://doi.org/10.1371/journal.pone.0352867}. +\bibitem[Kuzilek et al.(2017)]{kuzilek2017} Kuzilek, J., Hlosta, M., and Zdrahal, Z. (2017). Open University Learning Analytics dataset. \emph{Scientific Data}, 4, 170171. \url{https://doi.org/10.1038/sdata.2017.171}. +\bibitem[Li et al.(2018)]{li2018} Li, F., Morgan, K. L., and Zaslavsky, A. M. (2018). Balancing covariates via propensity score weighting. \emph{Journal of the American Statistical Association}, 113(521), 390--400. \url{https://doi.org/10.1080/01621459.2016.1260466}. +\end{thebibliography} +\end{document} \ No newline at end of file diff --git a/paper/paper.md b/paper/paper.md index bcbcfe9..54a5617 100644 --- a/paper/paper.md +++ b/paper/paper.md @@ -1,124 +1,43 @@ -# Early Non-Banked Assessment Submission and Later Course Outcome in OULAD: A Day-30 Landmark IPW Study +# Paper 2 — Day-30 OULAD Landmark Observational Analysis -## Abstract +**22 October 2026 — current scientific status:** The author-review manuscript is [the nine-page integrated LaTeX source](main_integrated_20261022.tex). The repository's original focal numerical results have been independently reproduced from the source-verified original UCI archive. A new follow-up also calculated 1,000 full-refit student-bootstrap resamples for each of three other presentations. This overview is not a separate competing manuscript. -Learning-analytics studies often associate early engagement with later success, but a causal interpretation can be distorted when the exposure is accumulated over time while outcomes such as withdrawal can occur during the same window. This study uses a day-30 landmark design in the Open University Learning Analytics Dataset (OULAD). Learners must be registered and still under observation at day 30. Exposure is at least one non-banked assessment submitted after registration and by day 30. The analysis compares favorable final course outcomes using inverse-probability weighting over a frozen baseline adjustment set, reports overlap and covariate balance, uses a full-refit bootstrap for uncertainty, and performs common-support and propensity-specification sensitivity analyses. The study remains observational and does not claim that early submission itself causes success. +## Focal empirical results (CCC / 2014J) -## Research question +- Day-30 eligible 1,983; after missing covariates 1,850; after category support restriction 1,820 (1,624 earlier submissions; 196 no earlier submission). +- Raw favorable-outcome rate difference 0.374296. +- ATE-style normalized Hájek IPW contrast 0.386110, independent full-refit 95% percentile interval [0.324225, 0.444675]. +- ATO-style overlap-weighted contrast 0.326066, interval [0.266654, 0.387026]. **This targets a different weighted population.** +- IPW ESS 509.52, comparison-arm ESS 133.81, maximum inverse weight 38.64, maximum absolute weighted SMD 0.1161. +- Missingness and support restrictions exclude 8.22% of initially day-30-eligible cases; the unadjusted outcome rate difference is 0.376763 before exclusions versus 0.374296 in the final sample. -Within one day-30 landmark OULAD module-presentation cohort, what ATE-style adjusted outcome contrast is associated with early non-banked assessment submission? +## Independent new uncertainty across other presentations -## Background +The three cohorts were previously selected without examining outcomes, by their observed size and supported exposed/unexposed cell counts. The new uncertainty analyses were conducted **post hoc** and therefore are not confirmatory tests. -OULAD links learner background, registration timing, assessment records and final outcomes across historical Open University module-presentations (Kuzilek et al., 2017). +| Presentation | Analytic n | No earlier submission | IPW association | 95% full-refit bootstrap interval | +|---|---:|---:|---:|---| +| FFF / 2013J | 1,867 | 178 | 0.5032 | [0.4479, 0.5476] | +| BBB / 2013J | 1,804 | 217 | 0.4768 | [0.4126, 0.5368] | +| BBB / 2014J | 1,752 | 96 | 0.5610 | [0.4636, 0.6324] | -The temporal design follows the principle that eligibility, exposure assignment and the start of outcome follow-up should be aligned when observational data are used for causal questions (Hernán et al., 2016). This is especially important here because OULAD records withdrawals during the course and assessment exposure is accumulated through day 30. +[Successful isolated GitHub Actions verification](https://github.com/devissaputra/causal_learning_analytics/actions/runs/39777348662) · [Machine-readable full original results](../results/paper2_cross_presentation_bootstrap_20261022.json) · [Reproducible source](../scripts/independent_cross_presentation_bootstrap.py). -## Data +## Critical limitations -The runner obtains OULAD through UCI dataset 349 (DOI 10.24432/C5KK69), records the archive SHA-256 and uses studentInfo, studentRegistration, assessments and studentAssessment. +**This is not a causal intervention study.** Earlier submission can reflect motivation, assessment availability, learner workload and requirements for passing. Survival/registration to day 30 conditions on an outcome of earlier processes; post-landmark submission also has structural dependence with course completion. The non-earlier group includes 98 later submitters (32 favorable) and 98 with no later recorded submission (zero favorable). Covariate weighting does not eliminate hidden confounding, positivity failures or selection bias, and multiple course presentations do not prove universal transportability. -Raw data are not committed. +A prospective design would need assignment of a feasible intervention **before** the exposure window, such as a defined reminder and submission-support policy, with outcomes analyzed by original assignment. The present dataset does not contain such an assignment. -## Landmark design +## Source and evidence -The landmark is presentation day 30. +- [Original data](https://archive.ics.uci.edu/dataset/349/open+university+learning+analytics+dataset), SHA-256 `f2ed1902616c1fe8d2824d872c0b7d2d72be435bf0124d077044fe4be2c6d3e4`. +- [Primary official source independent reproduction](https://github.com/devissaputra/causal_learning_analytics/actions/runs/39684326436). +- [Extended propensity and cross-presentation exploratory analysis](https://github.com/devissaputra/causal_learning_analytics/actions/runs/39686498958). +- [Missingness/selection audit](https://github.com/devissaputra/causal_learning_analytics/actions/runs/39688599327). +- [New 3,000-resample cross-presentation uncertainty](https://github.com/devissaputra/causal_learning_analytics/actions/runs/39777348662). +- [Final manuscript](main_integrated_20261022.tex) and [QA proof](FINAL_QA_RESULTS_20261022.json). -Eligible learners: -1. registered on or before day 30; -2. did not unregister on or before day 30; -3. if recorded as Withdrawn, have an observed unregistration date after day 30. +## Release boundary -Exposure is at least one non-banked assessment submitted after registration and by day 30. - -The favorable outcome is Pass or Distinction. Fail and withdrawal after day 30 form the adverse outcome category. - -This design intentionally conditions the target population on continued registration to day 30. It therefore estimates a contrast in the landmark population, not in all original registrations. - -## Adjustment set and empirical support - -Numeric covariates are studied credits, previous attempts and registration timing. - -Categorical covariates are age band, highest education, deprivation band, disability, gender and region. They are one-hot encoded in the propensity model rather than mapped to arbitrary ordinal distances. - -Before propensity estimation, categorical baseline levels with no observed exposed/unexposed comparison are removed using an outcome-blind empirical support rule and the exclusions are recorded. This narrows the target population rather than extrapolating across unsupported strata. - -The causal rationale and omitted-variable boundary are documented in docs/causal_dag.md. - -## Analysis - -A standardized mixed-feature logistic model estimates propensity scores. The study reports: -- raw treated-minus-control difference; -- Horvitz-Thompson ATE-style estimate; -- normalized Hájek ATE-style estimate; -- empirical common support; -- weight distribution and effective sample size; -- standardized mean differences before and after weighting; -- fixed-propensity bootstrap uncertainty; -- full-refit bootstrap uncertainty; -- common-support restriction sensitivity; -- alternate propensity-specification sensitivity. - -The full-refit bootstrap is the primary uncertainty interval because the propensity model is re-estimated in each bootstrap sample. - -## Results - -Numerical evidence is generated by scripts/run_oulad_study.py into: -- results/oulad_metrics.json; -- results/summary.md; -- paper/results.md; -- results/figures/. - -This manuscript intentionally does not hard-code a favorable result independent of the generated evidence. - -## Limitations - -The landmark design corrects a temporal misalignment but does not eliminate confounding. Continued registration to day 30 is part of the target-population definition and may itself depend on measured and unmeasured factors. OULAD incompletely measures motivation, prior achievement, work constraints, access, support and other common causes. - -Complete-case analysis can induce selection. Propensity models can be misspecified. One module-presentation does not establish external validity. Good measured balance does not prove exchangeability. - -## Ethics and educational interpretation - -An observed contrast should not be converted directly into a policy that pressures learners to submit earlier. Early submission may be a marker of preparation, opportunity or constraints rather than an independently manipulable cause. - -The study is intended for methodological research, not learner scoring or automated intervention. - -## References - -Austin, P. C., & Stuart, E. A. (2015). Moving towards best practice when using inverse probability of treatment weighting using the propensity score to estimate causal treatment effects in observational studies. *Statistics in Medicine, 34*, 3661–3679. https://doi.org/10.1002/sim.6607 - -Hernán, M. A., Sauer, B. C., Hernández-Díaz, S., Platt, R., & Shrier, I. (2016). Specifying a target trial prevents immortal time bias and other self-inflicted injuries in observational analyses. *Journal of Clinical Epidemiology, 79*, 70–75. https://doi.org/10.1016/j.jclinepi.2016.04.014 - -Hernán, M. A., & Robins, J. M. *Causal Inference: What If*. Chapman & Hall/CRC. https://www.hsph.harvard.edu/miguel-hernan/causal-inference-book/ - -Kuzilek, J., Hlosta, M., & Zdrahal, Z. (2017). Open University Learning Analytics dataset. *Scientific Data, 4*, 170171. https://doi.org/10.1038/sdata.2017.171 - - -## Calculation definitions and evidence audit - -Weighted contrast = sum(wT·Y)/sum(wT) - sum(wC·Y)/sum(wC). - -Treated weights are 1/e and control weights 1/(1-e), where e is estimated exposure propensity. Effective sample size is (sum w)^2/sum(w^2). ATE-style weighting does not itself identify a causal effect; overlap weighting changes the target population. - -The recorded Hájek contrast is 0.3861, with a full-refit bootstrap interval of roughly 0.3242 to 0.4447, but the analysis flags extreme weights, limited effective sample size, and residual imbalance. An overlap-weighted sensitivity analysis yields 0.3261 for a different target population. These are observational contrasts; unmeasured confounding and selection remain barriers to claiming that requiring early submission would improve outcomes. - -The [calculation guide](../CALCULATIONS.md) provides exact evidence paths and a function-level implementation map. - -![Study design](../assets/review_overview.svg) - -![Calculation and selected evidence](../assets/review_calculations.svg) - -### Selected evidence and interpretation - -| Quantity | Value | Unit / meaning | JSON path | -|---|---:|---|---| -| Analysis cases | 1820 | count | `sample_size` | -| Raw contrast | 0.3742962702322309 | proportion difference | `raw_mean_difference` | -| Hájek weighted contrast | 0.3861104115308514 | proportion difference | `ipw_ate_hajek` | -| Effective sample size | 509.5228012320698 | weighted count | `weight_diagnostics.overall_ess` | - -These values are read from `results/oulad_metrics.json`. They must be interpreted with the split, data status and limitations above. The complete data/model experiment was not rerun in this review. Stored empirical results were inspected, not independently reproduced from raw data. - -### Reproduction and claim boundaries - -45 existing unittest checks passed. The figure generator can be checked with `python scripts/build_review_figures.py --check`. This verifies the displayed calculation evidence, not an independent replication of the complete scientific experiment. The manuscript is a working report, not a peer-reviewed publication. +The nine-page LaTeX manuscript compiles cleanly and **83/83 numeric/source/document QA assertions passed** against the archived sources, with a clean-room compilation. The minimal arXiv source ZIP and full research package are stored in the owner's ChatGPT Library folder `/Paper2_Final_20261022`. **Author review, independent human scientific assessment, any arXiv endorsement, and arXiv submission remain pending.** No draft GitHub branch is represented as merged or peer reviewed. diff --git a/results/paper2_cross_presentation_bootstrap_20261022.json b/results/paper2_cross_presentation_bootstrap_20261022.json new file mode 100644 index 0000000..7340f3d --- /dev/null +++ b/results/paper2_cross_presentation_bootstrap_20261022.json @@ -0,0 +1,287 @@ +{ + "status": "complete_independent_exploratory_cross_presentation_bootstrap", + "source_archive_sha256": "f2ed1902616c1fe8d2824d872c0b7d2d72be435bf0124d077044fe4be2c6d3e4", + "design": "After-the-fact selected three largest supported presentations; exploratory", + "bootstrap_method": "Student-level full-refit nonparametric bootstrap; fixed cohort definitions, propensity model re-estimated in every valid resample", + "bootstrap_draws_requested": 1000, + "presentation_selection": "The three largest previously identified day-30 populations with >=30 learners in both exposure groups; selected outcome-blind in earlier exploratory audit", + "warning": "All quantities are historical observational associations, not intervention effects. Bootstrap intervals do not account for hidden confounders or selection bias.", + "presentations": [ + { + "module": "FFF", + "presentation": "2013J", + "flow": { + "enrolled_any_module": 32593, + "eligible_any_module": 27350, + "focal_before_complete_case": 1972, + "after_complete_case": 1876, + "unsupported_exclusions": 9, + "final_n": 1867 + }, + "metrics": { + "n": 1867, + "exposed": 1689, + "control": 178, + "raw": 0.49331098116696936, + "ipw": 0.5031847904079672, + "overlap": 0.42150954324011547, + "exposed_outcome_mean": 0.5944345766725874, + "control_outcome_mean": 0.10112359550561797, + "ipw_max_weight": 36.59622996986506, + "ipw_ess": 445.1287133561921, + "overlap_ess": 588.356563682512, + "propensity_min": 0.1320393548942974, + "propensity_max": 0.978039265333607 + }, + "diagnostics": { + "ipw": { + "early": { + "n": 1689, + "ess": 1641.821532704122, + "weight_max": 5.2155674796077856, + "weight_top5_share": 0.009634118711667852 + }, + "non_early": { + "n": 178, + "ess": 113.36099822944796, + "weight_max": 36.59622996986506, + "weight_top5_share": 0.09278885776135254 + } + }, + "overlap": { + "early": { + "n": 1689, + "ess": 962.4989263399584, + "weight_max": 0.8082663096758168, + "weight_top5_share": 0.023792930777426897 + }, + "non_early": { + "n": 178, + "ess": 173.5543895464628, + "weight_max": 0.9726747809590375, + "weight_top5_share": 0.03276208528155288 + } + }, + "balance": { + "unweighted": { + "maximum_absolute_smd": 0.6393738780736689, + "n_above_0_1": 13, + "undefined": 0, + "n_covariate_indicators": 37 + }, + "ipw": { + "maximum_absolute_smd": 0.11346476485549128, + "n_above_0_1": 1, + "undefined": 0, + "n_covariate_indicators": 37 + }, + "overlap": { + "maximum_absolute_smd": 0.045645393066410155, + "n_above_0_1": 0, + "undefined": 0, + "n_covariate_indicators": 37 + } + } + }, + "bootstrap": { + "resamples_requested": 1000, + "resamples_valid": 1000, + "ipw_95ci": [ + 0.4478862371761754, + 0.5475633733915432 + ], + "overlap_95ci": [ + 0.37007583551654477, + 0.4762021180295742 + ] + }, + "ipw_interval_contains_zero": false, + "overlap_interval_contains_zero": false, + "note": "Within-presentation sampling confidence intervals, NOT causal confidence intervals" + }, + { + "module": "BBB", + "presentation": "2013J", + "flow": { + "enrolled_any_module": 32593, + "eligible_any_module": 27350, + "focal_before_complete_case": 1825, + "after_complete_case": 1811, + "unsupported_exclusions": 7, + "final_n": 1804 + }, + "metrics": { + "n": 1804, + "exposed": 1587, + "control": 217, + "raw": 0.49840727802798657, + "ipw": 0.4767747751285327, + "overlap": 0.4300608910124676, + "exposed_outcome_mean": 0.645872715816005, + "control_outcome_mean": 0.14746543778801843, + "ipw_max_weight": 24.105832450900383, + "ipw_ess": 653.6920671036402, + "overlap_ess": 717.2627094060742, + "propensity_min": 0.2122227929213314, + "propensity_max": 0.978834360361626 + }, + "diagnostics": { + "ipw": { + "early": { + "n": 1587, + "ess": 1558.3497295040918, + "weight_max": 4.712029213425199, + "weight_top5_share": 0.007814597965518819 + }, + "non_early": { + "n": 217, + "ess": 169.7232076556714, + "weight_max": 24.105832450900383, + "weight_top5_share": 0.0633554085571704 + } + }, + "overlap": { + "early": { + "n": 1587, + "ess": 1103.7918299364821, + "weight_max": 0.7877772070786686, + "weight_top5_share": 0.016923827457845878 + }, + "non_early": { + "n": 217, + "ess": 214.0357517050397, + "weight_max": 0.958516263562487, + "weight_top5_share": 0.02641079739135357 + } + }, + "balance": { + "unweighted": { + "maximum_absolute_smd": 0.413970615896566, + "n_above_0_1": 19, + "undefined": 0, + "n_covariate_indicators": 36 + }, + "ipw": { + "maximum_absolute_smd": 0.12363254112227812, + "n_above_0_1": 1, + "undefined": 0, + "n_covariate_indicators": 36 + }, + "overlap": { + "maximum_absolute_smd": 0.03504746911605657, + "n_above_0_1": 0, + "undefined": 0, + "n_covariate_indicators": 36 + } + } + }, + "bootstrap": { + "resamples_requested": 1000, + "resamples_valid": 1000, + "ipw_95ci": [ + 0.4125610643117547, + 0.5367980201554363 + ], + "overlap_95ci": [ + 0.37052574400516897, + 0.48592158244124356 + ] + }, + "ipw_interval_contains_zero": false, + "overlap_interval_contains_zero": false, + "note": "Within-presentation sampling confidence intervals, NOT causal confidence intervals" + }, + { + "module": "BBB", + "presentation": "2014J", + "flow": { + "enrolled_any_module": 32593, + "eligible_any_module": 27350, + "focal_before_complete_case": 1772, + "after_complete_case": 1759, + "unsupported_exclusions": 7, + "final_n": 1752 + }, + "metrics": { + "n": 1752, + "exposed": 1656, + "control": 96, + "raw": 0.5769927536231885, + "ipw": 0.5610345258582684, + "overlap": 0.5415574151757548, + "exposed_outcome_mean": 0.6811594202898551, + "control_outcome_mean": 0.10416666666666667, + "ipw_max_weight": 113.6696658364387, + "ipw_ess": 217.38809423282365, + "overlap_ess": 352.083961753834, + "propensity_min": 0.723221533258399, + "propensity_max": 0.9955858208160974 + }, + "diagnostics": { + "ipw": { + "early": { + "n": 1656, + "ess": 1652.9823884778434, + "weight_max": 1.3827021929153638, + "weight_top5_share": 0.003790368911357032 + }, + "non_early": { + "n": 96, + "ess": 53.7364282631661, + "weight_max": 113.6696658364387, + "weight_top5_share": 0.2081325699682912 + } + }, + "overlap": { + "early": { + "n": 1656, + "ess": 1102.884851265644, + "weight_max": 0.276778466741601, + "weight_top5_share": 0.014032880618954684 + }, + "non_early": { + "n": 96, + "ess": 95.73645893566159, + "weight_max": 0.9912025781668179, + "weight_top5_share": 0.055965475287777185 + } + }, + "balance": { + "unweighted": { + "maximum_absolute_smd": 0.3189155177724877, + "n_above_0_1": 15, + "undefined": 0, + "n_covariate_indicators": 36 + }, + "ipw": { + "maximum_absolute_smd": 0.21617442600832895, + "n_above_0_1": 5, + "undefined": 0, + "n_covariate_indicators": 36 + }, + "overlap": { + "maximum_absolute_smd": 0.05428470261377083, + "n_above_0_1": 0, + "undefined": 0, + "n_covariate_indicators": 36 + } + } + }, + "bootstrap": { + "resamples_requested": 1000, + "resamples_valid": 1000, + "ipw_95ci": [ + 0.4635714375041763, + 0.63237270680078 + ], + "overlap_95ci": [ + 0.46638850948009003, + 0.6051027378385583 + ] + }, + "ipw_interval_contains_zero": false, + "overlap_interval_contains_zero": false, + "note": "Within-presentation sampling confidence intervals, NOT causal confidence intervals" + } + ] +} diff --git a/scripts/independent_cross_presentation_bootstrap.py b/scripts/independent_cross_presentation_bootstrap.py new file mode 100644 index 0000000..fc27651 --- /dev/null +++ b/scripts/independent_cross_presentation_bootstrap.py @@ -0,0 +1,68 @@ +#!/usr/bin/env python3 +"""Exploratory independent OULAD 2013-14 cross-presentation bootstrap. + +Three presentations were previously selected by sample size and exposure support +without inspecting their outcome contrasts. This code does NOT perform causal +identification or reproduce a preregistered trial. Raw individual-level records +are never committed or uploaded. +""" +from __future__ import annotations +import hashlib +import json +import sys +import tempfile +from pathlib import Path +import numpy as np +from independent_oulad_audit import ( + acquire, raw_tables, build, fit, metrics, bootstrap, EXPECTED_ARCHIVE_SHA, +) +from independent_oulad_secondary import diagnostic + +PRESENTATIONS = [ + ("FFF","2013J",1867,178,0.5032), + ("BBB","2013J",1804,217,0.4768), + ("BBB","2014J",1752,96,0.5610), +] +N_BOOT=1000 +SEED=20261022 +def main(): + with tempfile.TemporaryDirectory(prefix="oulad-paper2-final-") as temp: + source,sha,hashes=acquire(temp) + if sha!=EXPECTED_ARCHIVE_SHA: + raise AssertionError("Original UCI archive mismatch") + tables=raw_tables(source) + result={ + "status":"complete_independent_exploratory_cross_presentation_bootstrap", + "source_archive_sha256":sha, + "design":"After-the-fact selected three largest supported presentations; exploratory", + "bootstrap_method":"Student-level full-refit nonparametric bootstrap; fixed cohort definitions, propensity model re-estimated in every valid resample", + "bootstrap_draws_requested":N_BOOT, + "presentation_selection":"The three largest previously identified day-30 populations with >=30 learners in both exposure groups; selected outcome-blind in earlier exploratory audit", + "warning":"All quantities are historical observational associations, not intervention effects. Bootstrap intervals do not account for hidden confounders or selection bias.", + "presentations":[], + } + for k,(module,term,expected_n,expected_unexposed,expected_ipw) in enumerate(PRESENTATIONS): + df,flow=build(tables,30,module,term) + if len(df)!=expected_n or int((df["exposed"]==0).sum())!=expected_unexposed: + raise AssertionError("Selection cohort changed for %s %s"%(module,term)) + probabilities=fit(df) + met=metrics(df,probabilities) + if abs(met["ipw"]-expected_ipw)>=0.0001: + raise AssertionError("Point estimate no longer matches frozen prior analysis") + diag=diagnostic(df,probabilities) + boot=bootstrap(df,n=N_BOOT,seed=SEED+100*k) + if boot["resamples_valid"]<950: + raise AssertionError("Insufficient full-refit resamples") + result["presentations"].append({ + "module":module,"presentation":term,"flow":flow, + "metrics":met,"diagnostics":diag,"bootstrap":boot, + "ipw_interval_contains_zero":bool(boot["ipw_95ci"][0]<=0<=boot["ipw_95ci"][1]), + "overlap_interval_contains_zero":bool(boot["overlap_95ci"][0]<=0<=boot["overlap_95ci"][1]), + "note":"Within-presentation sampling confidence intervals, NOT causal confidence intervals", + }) + print(json.dumps({"presentation":module+"/"+term,"n":len(df),"ipw":met["ipw"],"ipw_95ci":boot["ipw_95ci"],"overlap_95ci":boot["overlap_95ci"]}),flush=True) + Path("results").mkdir(exist_ok=True) + out=Path("results/paper2_cross_presentation_bootstrap_20261022.json") + out.write_text(json.dumps(result,indent=2,allow_nan=False)+"\n") + print("SAVED",out,flush=True) +if __name__=="__main__": main()