pub struct FactorExposure {
pub asset: String,
pub betas: Vec<f64>,
pub alpha: f64,
pub r_squared: f64,
pub residual_variance: f64,
}Expand description
Regression output for one asset against a set of factors.
Fields§
§asset: StringAsset identifier.
betas: Vec<f64>Factor loadings (betas), one per factor in the same order as factors passed to fit.
alpha: f64Intercept term (alpha): excess return unexplained by factors.
r_squared: f64Coefficient of determination R² ∈ [0, 1].
residual_variance: f64Variance of the OLS residuals (idiosyncratic variance).
Trait Implementations§
Source§impl Clone for FactorExposure
impl Clone for FactorExposure
Auto Trait Implementations§
impl Freeze for FactorExposure
impl RefUnwindSafe for FactorExposure
impl Send for FactorExposure
impl Sync for FactorExposure
impl Unpin for FactorExposure
impl UnsafeUnpin for FactorExposure
impl UnwindSafe for FactorExposure
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