Approximating a continuous distribution with grid points
Suppose a random coefficient follows a standard normal
distribution. The solid curve shows its continuous CDF, while
the stepped curve shows a discrete approximation using
equally-weighted quantile grid points. Use the slider to change
the number of grid points, R, and see how the approximation
improves as R increases.
Six-hour glucose prediction
Adjust the model inputs to explore how a meal and rapid-acting
insulin might affect an illustrative glucose curve over six
hours.
This is a simplified educational model, not a validated clinical
model or dosing advice. Parameters do not reproduce every
individual response. Please use a diabetes care plan and consult
a healthcare professional for real decisions.
Bivariate distribution of health and income
This illustrative example uses a standard bivariate normal
distribution. The health axis represents a standardized health
outcome and the income axis represents standardized log median
household income. Adjust rho to see how their association changes
both the joint CDF level curves and density heatmap.