JumpDiffusionPriorResult

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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§prior: JumpDiffusionPrior

The physical-measure Merton triple with uncertainty.

§window_years: f64

Window length in years (valid returns / annualization factor).

§annualization_factor: f64

Annualization factor used for λ and the realized legs (e.g. 252).

§prior_jump_variance: f64

Prior-implied annualized jump variance λ·(μ_J² + σ_J²).

§realized_total_variance: f64

Annualized undemeaned quadratic variation of the window’s log returns.

§realized_diffusive_variance: f64

Annualized bipower variation (jump-robust diffusive leg).

§realized_jump_variance: f64

Annualized realized jump variance max(total − diffusive, 0).

§cross_check_relative_gap: f64

Symmetric 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: bool

Whether the per-period bipower diffusive variance was subtracted from the raw jump-size variance before taking σ_J.

§raw_event_count: usize

Raw scale-level threshold breaches before consolidation, after the periodic-boundary wrap region has been excluded (see the boundary_candidates_excluded diagnostic).

§max_test_statistic: f64

Maximum jump test statistic observed across the detected events.

§noise_scale: JumpPriorNoiseScale

Noise scale the detector’s test statistic was standardized with.

§truncation_corrected: bool

Whether 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 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

§

fn clone(&self) -> JumpDiffusionPriorResult

Returns a duplicate of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for JumpDiffusionPriorResult

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl PartialEq for JumpDiffusionPriorResult

§

fn eq(&self, other: &JumpDiffusionPriorResult) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl StructuralPartialEq for JumpDiffusionPriorResult

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> IntoEither for T

§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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>
where F: FnOnce(&Self) -> bool,

Converts 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

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> Same for T

§

type Output = T

Should always be Self
§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,