Healthy (y=0) At-risk (y=1) Decision boundary
⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.

Patient Risk Prediction — Logistic Regression

This simulator builds a real medical-data-analytics pipeline in miniature: a synthetic patient cohort with two biomarkers, a logistic-regression classifier fit by gradient descent on cross-entropy loss, and a 3D probability surface you can inspect from any angle. Drag the decision threshold to see the exact trade-off every risk-prediction tool faces — catching more true cases always costs false alarms — while sensitivity, specificity, accuracy, the confusion matrix and a live ROC curve update in real time. Resample the cohort or change the class separation to see how the fitted boundary and its performance shift with the underlying data, the same dynamic that drives personalized treatment-threshold decisions in real clinical risk scores.