public class MonteCarloConditionalExpectationRegression extends Object implements MonteCarloConditionalExpectation
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 and Description |
|---|
MonteCarloConditionalExpectationRegression(RandomVariableInterface[] basisFunctions)
Creates a class for conditional expectation estimation.
|
MonteCarloConditionalExpectationRegression(RandomVariableInterface[] basisFunctionsEstimator,
RandomVariableInterface[] basisFunctionsPredictor)
Creates a class for conditional expectation estimation.
|
| Modifier and Type | Method and Description |
|---|---|
RandomVariableInterface |
getConditionalExpectation(RandomVariableInterface randomVariable)
Return the conditional expectation of a given random variable.
|
double[] |
getLinearRegressionParameters(RandomVariableInterface dependents)
Return the solution x of XTX x = XT y for a given y.
|
public MonteCarloConditionalExpectationRegression(RandomVariableInterface[] basisFunctions)
basisFunctions - A vector of random variables to be used as basis functions.public MonteCarloConditionalExpectationRegression(RandomVariableInterface[] basisFunctionsEstimator, RandomVariableInterface[] basisFunctionsPredictor)
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.public RandomVariableInterface getConditionalExpectation(RandomVariableInterface randomVariable)
MonteCarloConditionalExpectationgetConditionalExpectation in interface MonteCarloConditionalExpectationrandomVariable - Given random variable.randomVariable.public double[] getLinearRegressionParameters(RandomVariableInterface dependents)
dependents - The sample vector of the random variable y.Copyright © 2015. All rights reserved.