All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.finmath.montecarlo.conditionalexpectation.MonteCarloConditionalExpectationLocalizedOnDependentRegressionFactory Maven / Gradle / Ivy

Go to download

finmath lib is a Mathematical Finance Library in Java. It provides algorithms and methodologies related to mathematical finance.

There is a newer version: 6.0.19
Show newest version
package net.finmath.montecarlo.conditionalexpectation;

import net.finmath.stochastic.ConditionalExpectationEstimator;
import net.finmath.stochastic.RandomVariable;

/**
 * Provides a localized linear regression with an indicator function as localization weight for a vector of regression basis functions.
 *
 * The regression only considers sample paths where \( - M < y_{i} < M \) where M is a multiple of the standard deviation of y.
 *
 * @author Christian Fries
 */
public class MonteCarloConditionalExpectationLocalizedOnDependentRegressionFactory implements MonteCarloConditionalExpectationRegressionFactory {

	private final double standardDeviations;

	public MonteCarloConditionalExpectationLocalizedOnDependentRegressionFactory(final double standardDeviations) {
		super();
		this.standardDeviations = standardDeviations;
	}

	@Override
	public ConditionalExpectationEstimator getConditionalExpectationEstimator(final RandomVariable[] basisFunctionsEstimator, final RandomVariable[] basisFunctionsPredictor) {
		return new MonteCarloConditionalExpectationRegressionLocalizedOnDependents(basisFunctionsEstimator, basisFunctionsPredictor, standardDeviations);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy