Purpose and learning objectives
L09-L12 · sampling, likelihood, fit, and posterior. This investigation develops a numerical method and tests its output against a declared benchmark, invariant, uncertainty model, or independent implementation.
- Run a specified scientific workflow from the pinned environment.
- Measure an explicit numerical or statistical diagnostic with units and provenance.
- Separate numerical error from physical model discrepancy and interpret a limitation.
Preparation, setup, and inputs
Software: CPython 3.14.6; dependencies in requirements.txt. From repository root run .venv/Scripts/python.exe materials/ASTR474/src/astr474_computations.py. Then use the corresponding CSV/JSON under materials/ASTR474/data/generated/. Required data: generated/monte_carlo_trials.csv and generated/radial_velocity_observations.csv.
Apparatus: computer with local CPU, terminal, text editor, and browser; no telescope, GPU, network account, or paid service is required. Preserve the generated input files and record file hash/version.
Model scope: Both the transmission experiment and radial-velocity observations are synthetic, seeded teaching records.
Procedure
- Reproduce transmission estimates at N=100, 500, 2,000, and 20,000 using the documented NumPy generator seeds.
- Report analytic transmission, estimate, standard error, and whether the analytic value falls within a stated interval; repeat with at least 20 independent seeds.
- Compare ordinary Bernoulli sampling with the likelihood-weighted tilted proposal and inspect the realized weights.
- Fit the provided velocity series with weighted SciPy least_squares; plot model and residuals, report covariance assumptions, chi-square and degrees of freedom.
- For 84/100 detections, draw a Beta(85,17) posterior and compare Monte Carlo quantiles with an analytic or independently evaluated reference.
Measurement record
| Quantity | Value or field | Unit/convention | Source/method |
|---|---|---|---|
| Input configuration | Record solver, version, seed, timestep/grid/tolerance | As defined by the experiment | Command line and source file |
| Primary diagnostic | Record every resolution/sample/fit row, not just the preferred result | State units and normalization | Generated CSV/JSON |
| Independent reference | At N=10000, ordinary-sampling standard error is 0.0013723; the likelihood-weighted proposal gives 0.00036502. One run is evidence for this seed, not a universal variance guarantee. | As stated in the generated example | Analytic/JPL/invariant cross-check |
| Uncertainty/sensitivity | Repeat with changed resolution, seed, parameter, or method | Report interval or relative change | Student analysis |
Analysis and uncertainty
Separate sampling error, posterior Monte Carlo error, measurement uncertainty, and model misfit; seed changes are required sensitivity checks.
Plot the diagnostic against the controlled parameter; label axes, units, normalization, and reference. Explain any non-monotonic point rather than smoothing or dropping it. If propagating independent errors, state why independence is plausible; preserve correlated/common-mode terms separately.
Deliverables and assessment
- Runnable source or notebook export with command, package versions, and all input/output paths.
- One scientific figure plus a machine-readable table of measurements and convergence/sampling/residual diagnostics.
- A 700-1000 word technical report describing model, method, validation, uncertainty categories, and one failed assumption.
- A short claim-evidence table separating result, numerical check, and domain limitation.
Rubric: 30% correct method and setup; 25% validation and numerical diagnostics; 20% uncertainty/provenance; 15% physical interpretation; 10% clarity and reproducibility. Revisions and resubmissions are encouraged under the syllabus mastery policy.
Data and source provenance
Both the transmission experiment and radial-velocity observations are synthetic, seeded teaching records. Provenance levels, request records, and source verification limits are documented in reference-log.md; generated files and seeds are documented in data/README.md.
References:
- NumPy 2.5 documentation, random Generator
- SciPy 1.18 documentation, solve_ivp
- SciPy 1.18 documentation, least_squares
- Astropy 8.0.1 documentation, units and constants
- REBOUND documentation, WHFast and units
- NASA/JPL Horizons API documentation
- Rein & Liu 2012, REBOUND: An open-source multi-purpose N-body code for collisional dynamics, A&A 537, A128
- Rein & Tamayo 2015, WHFast, MNRAS 452, 376-388