pub struct ResidualDiagnostics {
pub mean: f64,
pub variance: f64,
pub std_dev: f64,
pub skewness: f64,
pub kurtosis: f64,
pub jarque_bera: (f64, f64),
pub ljung_box: (f64, f64),
pub durbin_watson: f64,
pub min: f64,
pub max: f64,
}Expand description
Residual diagnostics
Fields§
§mean: f64Mean of residuals
variance: f64Variance of residuals
std_dev: f64Standard deviation
skewness: f64Skewness
kurtosis: f64Kurtosis
jarque_bera: (f64, f64)Jarque-Bera test (statistic, p-value)
ljung_box: (f64, f64)Ljung-Box test (statistic, p-value)
durbin_watson: f64Durbin-Watson statistic
min: f64Minimum residual
max: f64Maximum residual
Implementations§
Source§impl ResidualDiagnostics
impl ResidualDiagnostics
Sourcepub fn has_autocorrelation(&self) -> bool
pub fn has_autocorrelation(&self) -> bool
Check if residuals show autocorrelation (5% level)
Sourcepub fn durbin_watson_interpretation(&self) -> &'static str
pub fn durbin_watson_interpretation(&self) -> &'static str
Check Durbin-Watson for autocorrelation
DW ≈ 2: no autocorrelation
DW < 1.5: positive autocorrelation
DW > 2.5: negative autocorrelation
Trait Implementations§
Source§impl Clone for ResidualDiagnostics
impl Clone for ResidualDiagnostics
Source§fn clone(&self) -> ResidualDiagnostics
fn clone(&self) -> ResidualDiagnostics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResidualDiagnostics
impl Debug for ResidualDiagnostics
Source§impl<'de> Deserialize<'de> for ResidualDiagnostics
impl<'de> Deserialize<'de> for ResidualDiagnostics
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResidualDiagnostics, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResidualDiagnostics, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ResidualDiagnostics
impl Serialize for ResidualDiagnostics
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ResidualDiagnostics
impl RefUnwindSafe for ResidualDiagnostics
impl Send for ResidualDiagnostics
impl Sync for ResidualDiagnostics
impl Unpin for ResidualDiagnostics
impl UnsafeUnpin for ResidualDiagnostics
impl UnwindSafe for ResidualDiagnostics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.