CrashRateDenominatorScenario
Statistics scenarios · Implementation: mlsysim/engine/scenario_definitions/statistics.py.
Construct this scenario with keyword inputs. The fields below show the types and defaults declared by this class.
A reported before-and-after crash rate and the same comparison on the cohort whose exposure is complete (rates per million miles).
Notes
Equation: Each fractional change is after divided by before minus one; the denominator choice remains explicit.
Assumptions: Before/after rates are comparable within each supplied denominator definition.
Excludes: Causal treatment effects and correction for missing exposure beyond the supplied cohort rates.
References
Derivation: Each fractional change is after divided by before minus one; the denominator choice remains explicit. Individual property contracts identify the exact accounting expression or reusable calculation. Registry entries supply the scenario inputs; this class does not turn them into measured outcomes.
Examples
Evaluate a named scenario using its declared inputs.
>>> from mlsysim import Scenarios
>>> scenario = Scenarios.AutosteerCrashRateDenominator
>>> round(float(scenario.reported_change), 4)
-0.3846Attributes
| Name | Description |
|---|---|
| cohort_after | |
| cohort_before | |
| cohort_change | Fractional after/before change in the complete-exposure cohort’s crash rate. |
| exact_exposure_share | |
| reported_after | |
| reported_before | |
| reported_change | Fractional after/before change in the reported crash rate. |
reported_before
Type: float.
Declared default: required.
reported_after
Type: float.
Declared default: required.
cohort_before
Type: float.
Declared default: required.
cohort_after
Type: float.
Declared default: required.
reported_change
engine.scenario_types.CrashRateDenominatorScenario.reported_change
Fractional after/before change in the reported crash rate.
Equation: reported_after / reported_before - 1.0.
cohort_change
engine.scenario_types.CrashRateDenominatorScenario.cohort_change
Fractional after/before change in the complete-exposure cohort’s crash rate.
Equation: cohort_after / cohort_before - 1.0.