Prism: Angle of Deviation Curve-Fitting

Simulates a non-linear regression workflow on corrupted experimental data. Diagnoses the divergent effects of random measurement noise, systematic alignment offsets, and uncalibrated geometric parameters on the extracted refractive index.

System Parameters

Target Material
True bulk refractive index. Overridden if a specific wavelength is selected.
Geometric Calibration
True physical angle (Solver assumes exactly 60°).
Table Alignment
Rigidly shifts data (e.g., inaccurate normal reference).
Visual Precision
Gaussian scatter scale multiplier.
Extracted Index (nglass)
--
True Value: --
Extraction Error (Δn)
--
Deviation from True Index
Non-Linear Regression Fit
Fit Residuals (Diagnostics)

The Angle of Deviation Curve-Fitting Diagnostic

1. Forward Kinematics vs. Inverse Regression

A forward kinematic simulation maps a known cause to a theoretical effect (e.g., mapping a known refractive index to a specific continuous curve). The curve-fitting method fundamentally reverses this direction. The solver takes a discrete array of noisy physical measurements and applies an optimization algorithm to extract the unknown cause (the refractive index) by minimizing the sum of squared residuals between the theoretical geometry and the raw scatter data.

2. Metrological Vulnerabilities

Different types of experimental error propagate through optimization algorithms differently:

3. Identifying Error Signatures in Residuals

The secondary diagnostic plot tracks the residual error (the vertical distance between each data point and the solver's best-fit curve). By analyzing the shape of these residuals, the experimenter can diagnose the health of the calibration: