Work: W = (2w − f) · n · h + n · Wstring. The two weights lose gravitational potential energy as they fall; pulley and string corrections are included in the historical baseline.
Heat: Q = C · ΔT, where C is the water plus the copper vessel, brass wheel and stopper expressed as an equivalent mass of water. The estimate is J = W / (C · ΔT).
Noise model: each friction reading and each no-friction control reading resamples a centred residual from Joule’s 40 published readings in Table I. This empirical bootstrap preserves the observed run-to-run spread; readings are then rounded to the selected thermometer increment. The ambient drift uses Joule’s measured 0.04654 °F response per °F of room–apparatus difference.
Historical correction: Joule reported a 0.575250 °F mean friction gain and a 0.012975 °F mean radiation gain. He corrected the difference for small temperature-distribution effects to obtain 0.563209 °F. His water-series result was 773.640 in air and 772.692 after correction to a vacuum.
Simplifications: the visual fall is time-compressed; a fixed-step drag model approaches the documented 2.42 in s⁻¹ descent speed. The modern comparison uses the rounded room-temperature water heat capacity 4.184 kJ kg⁻¹ K⁻¹, so its reference temperature is not an exact match to Joule’s 55–60 °F interval. The fixed string-energy correction and vessel heat capacity remain at their historical baseline when sliders change.
This is an independent educational reconstruction, not affiliated with the Royal Society, the Science Museum Group or the estate of James Prescott Joule.