Documentation of 'net.finmath.montecarlo.conditionalexpectation.MonteCarloConditionalExpectationRegression' Java class
MonteCarloConditionalExpectationRegression
net.finmath.montecarlo.conditionalexpectation

Class MonteCarloConditionalExpectationRegression

  • All Implemented Interfaces:
    MonteCarloConditionalExpectation


    public class MonteCarloConditionalExpectationRegression
    extends java.lang.Object
    implements MonteCarloConditionalExpectation
    A service that allows to estimate conditional expectation via regression. In oder to estimate the conditional expectation, basis functions have to be specified. The class can either estimate and predict the conditional expectation within the same simulation (which will eventually introduce a small foresight bias) or use a different simulation for estimation (using basisFunctionsEstimator) to predict conditional expectation within another simulation (using basisFunctionsPredictor). In the latter case, the basis functions have to correspond to the same entities, however, generated in different simulations (number of path, etc., may be different).
    • Constructor Detail

      • MonteCarloConditionalExpectationRegression

        public MonteCarloConditionalExpectationRegression(RandomVariableInterface[] basisFunctions)
        Creates a class for conditional expectation estimation.
        Parameters:
        basisFunctions - A vector of random variables to be used as basis functions.
      • MonteCarloConditionalExpectationRegression

        public MonteCarloConditionalExpectationRegression(RandomVariableInterface[] basisFunctionsEstimator,
                                                          RandomVariableInterface[] basisFunctionsPredictor)
        Creates a class for conditional expectation estimation.
        Parameters:
        basisFunctionsEstimator - A vector of random variables to be used as basis functions for estimation.
        basisFunctionsPredictor - A vector of random variables to be used as basis functions for prediction.
    • Method Detail

      • getLinearRegressionParameters

        public double[] getLinearRegressionParameters(RandomVariableInterface dependents)
        Return the solution x of XTX x = XT y for a given y.
        Parameters:
        dependents - The sample vector of the random variable y.
        Returns:
        The solution x of XTX x = XT y.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.