Examples¶
This section collects end-to-end, runnable examples.
WPPM¶
- Quick start: one reference point, fitted in seconds on a CPU.
- Fit your own data: trials from a CSV file, the calls in order, and checks for a fit with no ground truth. Any number of stimulus dimensions.
- Recovering Weber's law: a 1-D fit that relearns Weber's law from simulated trials.
- Full WPPM fit (end-to-end)
- Reproducing a published fit (Hong et al. 2025): fits real human data and compares against the authors' own published fit.
- Sampling the posterior with NUTS: full posterior inference, and credible bands on thresholds.
- Checking MCMC samples with ArviZ: the four diagnostics, and which sampler argument to change when one fails.
- Plotting ellipse fields: drawing covariance and threshold fields with
psyphy.viz.