Struct JumpDiffusionPriorResult
#[non_exhaustive]pub struct JumpDiffusionPriorResult {Show 15 fields
pub prior: JumpDiffusionPrior,
pub window_years: f64,
pub annualization_factor: f64,
pub prior_jump_variance: f64,
pub realized_total_variance: f64,
pub realized_diffusive_variance: f64,
pub realized_jump_variance: f64,
pub cross_check_relative_gap: f64,
pub diffusion_corrected: bool,
pub raw_event_count: usize,
pub max_test_statistic: f64,
pub noise_scale: JumpPriorNoiseScale,
pub truncation_corrected: bool,
pub detection_probability: Option<f64>,
pub detection_cutoff: Option<f64>,
}Expand description
Parametric jump-diffusion prior payload: the JumpDiffusionPrior anchor
plus the realized-variance legs a consumer needs to cross-check it.
The realized legs use the same conventions as FerroRisk’s
realized_jump_split (undemeaned quadratic variation Σr²/n, bipower
variation (π/2)·Σ|rᵢ||rᵢ₋₁|/(n−1) over close-to-close log returns, both
annualized by the profile factor), so prior_jump_variance vs
realized_jump_variance is exactly the comparison FerroRisk’s
jump_prior_cross_check performs.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.prior: JumpDiffusionPriorThe physical-measure Merton triple with uncertainty.
window_years: f64Window length in years (valid returns / annualization factor).
annualization_factor: f64Annualization factor used for λ and the realized legs (e.g. 252).
prior_jump_variance: f64Prior-implied annualized jump variance λ·(μ_J² + σ_J²).
realized_total_variance: f64Annualized undemeaned quadratic variation of the window’s log returns.
realized_diffusive_variance: f64Annualized bipower variation (jump-robust diffusive leg).
realized_jump_variance: f64Annualized realized jump variance max(total − diffusive, 0).
cross_check_relative_gap: f64Symmetric relative gap between prior_jump_variance and
realized_jump_variance: |prior − realized| / max(prior, realized)
(0 when both are 0), matching FerroRisk’s cross-check statistic.
diffusion_corrected: boolWhether the per-period bipower diffusive variance was subtracted from
the raw jump-size variance before taking σ_J.
raw_event_count: usizeRaw scale-level threshold breaches before consolidation, after the
periodic-boundary wrap region has been excluded (see the
boundary_candidates_excluded diagnostic).
max_test_statistic: f64Maximum jump test statistic observed across the detected events.
noise_scale: JumpPriorNoiseScaleNoise scale the detector’s test statistic was standardized with.
truncation_corrected: boolWhether the truncation correction (#86) was applied: λ inflated by the
fitted 1/p̂_det, μ/σ from the outer-truncated-normal EM fit. false
means the detection-conditional triple was published (see the
truncation_correction_skipped diagnostic for why).
detection_probability: Option<f64>Effective detection probability: N / (λ_total·T), so
intensity = (N/T) / detection_probability holds exactly. Equals the
fitted truncated-normal p̂ when every detected size is outside the
modeled cutoff; interior detections (threshold blur / multi-return
channel), which enter λ at face value, pull it toward 1. Some iff
truncation_corrected.
detection_cutoff: Option<f64>Level-1 detection cutoff in simple-return units (|r| > cutoff is
detectable). Some iff truncation_corrected.
Trait Implementations§
§impl Clone for JumpDiffusionPriorResult
impl Clone for JumpDiffusionPriorResult
§fn clone(&self) -> JumpDiffusionPriorResult
fn clone(&self) -> JumpDiffusionPriorResult
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for JumpDiffusionPriorResult
impl Debug for JumpDiffusionPriorResult
§impl PartialEq for JumpDiffusionPriorResult
impl PartialEq for JumpDiffusionPriorResult
impl StructuralPartialEq for JumpDiffusionPriorResult
Auto Trait Implementations§
impl Freeze for JumpDiffusionPriorResult
impl RefUnwindSafe for JumpDiffusionPriorResult
impl Send for JumpDiffusionPriorResult
impl Sync for JumpDiffusionPriorResult
impl Unpin for JumpDiffusionPriorResult
impl UnwindSafe for JumpDiffusionPriorResult
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)§impl<T> IntoEither for T
impl<T> IntoEither for T
§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.