public class MonteCarloConditionalExpectationRegression extends Object implements ConditionalExpectationEstimator
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).| Modifier and Type | Class and Description |
|---|---|
static interface |
MonteCarloConditionalExpectationRegression.RegressionBasisFunctions
Interface for objects specifying regression basis functions (a vector of random variables).
|
class |
MonteCarloConditionalExpectationRegression.RegressionBasisFunctionsGiven
Wrapper to an array of RandomVariable[] implementing RegressionBasisFunctions
|
| Constructor and Description |
|---|
MonteCarloConditionalExpectationRegression() |
MonteCarloConditionalExpectationRegression(RandomVariable[] basisFunctions)
Creates a class for conditional expectation estimation.
|
MonteCarloConditionalExpectationRegression(RandomVariable[] basisFunctionsEstimator,
RandomVariable[] basisFunctionsPredictor)
Creates a class for conditional expectation estimation.
|
| Modifier and Type | Method and Description |
|---|---|
MonteCarloConditionalExpectationRegression.RegressionBasisFunctions |
getBasisFunctionsEstimator() |
MonteCarloConditionalExpectationRegression.RegressionBasisFunctions |
getBasisFunctionsPredictor() |
RandomVariable |
getConditionalExpectation(RandomVariable randomVariable)
Return the conditional expectation of a given random variable.
|
double[] |
getLinearRegressionParameters(RandomVariable dependents)
Return the solution x of XTX x = XT y for a given y.
|
public MonteCarloConditionalExpectationRegression()
public MonteCarloConditionalExpectationRegression(RandomVariable[] basisFunctions)
basisFunctions - A vector of random variables to be used as basis functions.public MonteCarloConditionalExpectationRegression(RandomVariable[] basisFunctionsEstimator, RandomVariable[] 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 RandomVariable getConditionalExpectation(RandomVariable randomVariable)
ConditionalExpectationEstimatorgetConditionalExpectation in interface ConditionalExpectationEstimatorrandomVariable - Given random variable.randomVariable.public double[] getLinearRegressionParameters(RandomVariable dependents)
dependents - The sample vector of the random variable y.public MonteCarloConditionalExpectationRegression.RegressionBasisFunctions getBasisFunctionsEstimator()
public MonteCarloConditionalExpectationRegression.RegressionBasisFunctions getBasisFunctionsPredictor()
Copyright © 2019. All rights reserved.