pub struct RegressionPrediction {
pub fit: f64,
pub se_fit: f64,
pub confidence_lower: f64,
pub confidence_upper: f64,
pub prediction_lower: f64,
pub prediction_upper: f64,
}Expand description
A fitted regression’s prediction at one new point, with its uncertainty.
Fields§
§fit: f64The point prediction ŷ₀.
se_fit: f64Standard error of the fitted mean at the point, √(x₀’ V x₀) with V the coefficients’ covariance.
confidence_lower: f64Confidence interval of the mean response at the point:
ŷ₀ ± t · se_fit.
confidence_upper: f64Upper end of the confidence interval.
prediction_lower: f64Prediction interval of a new observation at the point:
ŷ₀ ± t · √(MSE + se_fit²).
prediction_upper: f64Upper end of the prediction interval.
Trait Implementations§
Source§impl Clone for RegressionPrediction
impl Clone for RegressionPrediction
impl Copy for RegressionPrediction
Source§impl Debug for RegressionPrediction
impl Debug for RegressionPrediction
Source§impl PartialEq for RegressionPrediction
impl PartialEq for RegressionPrediction
impl StructuralPartialEq for RegressionPrediction
Auto Trait Implementations§
impl Freeze for RegressionPrediction
impl RefUnwindSafe for RegressionPrediction
impl Send for RegressionPrediction
impl Sync for RegressionPrediction
impl Unpin for RegressionPrediction
impl UnsafeUnpin for RegressionPrediction
impl UnwindSafe for RegressionPrediction
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