Class RegressionResult
- Namespace
- Balsam
- Assembly
- Balsam.Backtester.dll
A class that encapsulates the result of simple linear regression.
public class RegressionResult
- Inheritance
-
RegressionResult
- Inherited Members
- Extension Methods
Properties
Count
Gets the number of observations.
public int Count { get; }
Property Value
Date
Gets the date associated with this result, if any.
public DateTime Date { get; }
Property Value
FStat
Gets the F statistic.
public double FStat { get; }
Property Value
Intercept
Gets the intercept (alpha) of the regression.
public RegressionCoefficient Intercept { get; }
Property Value
RSquared
Gets the R-squared.
public double RSquared { get; }
Property Value
Slope
Gets the slope (beta) of the regression.
public RegressionCoefficient Slope { get; }
Property Value
StdErrEstimate
Gets the standard error of the estimate.
public double StdErrEstimate { get; }
Property Value
Methods
GetPredicted(TimeSeries)
Returns a timeseries of the predicted dependent values based on the specified timeseries of independent or x variables.
public TimeSeries GetPredicted(TimeSeries independentObservations)
Parameters
independentObservations
TimeSeries
Returns
GetPredicted(double)
Returns the predicted dependent or y variable for based on the specified independent or x variable.
public double GetPredicted(double independentObservation)
Parameters
independentObservation
double
Returns
GetResidual(TimeSeries, TimeSeries)
Returns the residual between the specified dependent or y variable and the predicted value based on the specified independent or x variable.
public TimeSeries GetResidual(TimeSeries dependentObservations, TimeSeries independentObservations)
Parameters
dependentObservations
TimeSeriesindependentObservations
TimeSeries
Returns
GetResidual(double, double)
Returns the residual between the specified dependent or y variable and the predicted value based on the specified independent or x variable.
public double GetResidual(double dependentObservation, double independentObservation)
Parameters
Returns
ToString()
Returns a string representation of this object.
public override string ToString()