This page simulates a simple model of a weight loss intervention with dynamic adherence to a prescribed diet. For each day of the model, a random uniform number decides if the daily intake will be above or below the prescribed amount. A uniform random 0.5 kg fluctuation is added to each day to simulate water and fecal mass. The moving average trend shown is adapted from The Hacker's Diet, and is commonly used in weight tracking tools like TrendWeight.

Starting weight (kg)
Age
Sex
Height (cm)
Daily calories required to maintain starting weight (sedentary)
Goal daily calorie intake
Average calories overeaten on "cheat" days
500
Average calories BELOW GOAL on "strict" days
200
Average number of "strict" days per week
6
Number of days to simulate
182
Uses the Mifflin St Jeor estimation for BMR with a fixed TDEE multiplier of 1.2
Inspired by Thomas et al..