Skip to main content

StylizedFactsReport

Struct StylizedFactsReport 

Source
pub struct StylizedFactsReport {
    pub excess_kurtosis: f64,
    pub abs_return_autocorr: f64,
    pub vol_clustering_acf: f64,
    pub gain_loss_skew: f64,
    pub aggregational_gaussianity: f64,
    pub zumbach_asymmetry: f64,
}
Expand description

The measured stylized-facts profile of a return series. Each field is a plain statistic; the realism predicates (StylizedFactsReport::has_fat_tails …) compare them against a RealismThresholds.

Fields§

§excess_kurtosis: f64

Excess kurtosis (kurtosis - 3). > 0 ⇒ fatter tails than a Gaussian.

§abs_return_autocorr: f64

Lag-1 autocorrelation of |returns| — the cleanest single volatility-clustering signal (magnitudes persist even when signed returns do not).

§vol_clustering_acf: f64

Mean autocorrelation of squared returns over the first several lags — the slow-decaying persistence that is the hallmark of volatility clustering.

§gain_loss_skew: f64

Skewness of returns — the gain/loss asymmetry (equity indices fall faster than they rise, so this is typically negative). Reported, not gated.

§aggregational_gaussianity: f64

Excess-kurtosis drop under temporal aggregation (raw − aggregated). > 0 ⇒ the distribution becomes more Gaussian at longer horizons (aggregational Gaussianity); the aggregation block size is AGGREGATION_BLOCK.

§zumbach_asymmetry: f64

Time-reversal-asymmetry (Zumbach/leverage) score: lev_fwd − lev_rev, the difference between “past return → future volatility” and “past volatility → future return” lead-lag correlation. ~0 under time reversal; markedly non-zero (usually negative, from the leverage effect) in real markets.

Implementations§

Source§

impl StylizedFactsReport

Source

pub fn has_fat_tails(&self, t: &RealismThresholds) -> bool

Fat tails: excess kurtosis clears the bar.

Source

pub fn has_volatility_clustering(&self, t: &RealismThresholds) -> bool

Volatility clustering: |return| autocorrelation clears the bar.

Source

pub fn has_aggregational_gaussianity(&self, t: &RealismThresholds) -> bool

Aggregational Gaussianity: kurtosis shrinks enough under aggregation.

Source

pub fn has_time_reversal_asymmetry(&self, t: &RealismThresholds) -> bool

Time-reversal asymmetry: the Zumbach/leverage score is large enough in magnitude (either sign) to distinguish the series from its time reversal.

Source

pub fn is_realistic(&self, t: &RealismThresholds) -> bool

Every gated stylized fact holds.

Source

pub fn failures(&self, t: &RealismThresholds) -> Vec<RealismFailure>

The specific stylized facts the series fails to exhibit (empty ⇒ realistic).

Trait Implementations§

Source§

impl Clone for StylizedFactsReport

Source§

fn clone(&self) -> StylizedFactsReport

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for StylizedFactsReport

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

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

Source§

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
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

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

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

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

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

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

Source§

type Error = Infallible

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

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

Performs the conversion.
Source§

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

Source§

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

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

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

Performs the conversion.