Class LinearRegression

java.lang.Object
net.finmath.montecarlo.conditionalexpectation.LinearRegression

public class LinearRegression extends Object
Performs a linear regression on random variables implementing RandomVariable.
Author:
Christian Fries
  • Constructor Details

    • LinearRegression

      public LinearRegression(RandomVariable[] basisFunctions)
      Create the linear regression with a set of basis functions.
      Parameters:
      basisFunctions - A vector of (independent) random variables to be used as basis functions.
  • Method Details

    • getRegressionCoefficients

      public double[] getRegressionCoefficients(RandomVariable value)
      Get the vector of regression coefficients.
      Parameters:
      value - The random variable to regress.
      Returns:
      The vector of regression coefficients.