Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to generate scenaio?(Is Monte Carlo or Latin hypercube sampling or other methods) #3

Open
Jiuhaoqiu opened this issue Dec 29, 2018 · 2 comments

Comments

@Jiuhaoqiu
Copy link

Although this is a scene reduction program, I would like to ask everyone what method is used to generate the scenaio? (Is Monte Carlo or Latin hypercube sampling or other methods). Can you provide reproducible code or github links for wind power scenarios for reference?

@nepslor
Copy link
Contributor

nepslor commented Jan 7, 2019

Hi Jiuhaoqiu,
unfortunately I cannot provide you with a link, since the generation of scenarios depends on the assumptions you do when modeling the uncertainties. For example, if you predict the scenarios by means of multivariate linear regression, under the assumption of Gaussian errors, you could simply retrieve the scenarios using Montecarlo simulations: just retrieve the standard deviation for each step ahead and draw independent observations. Unfortunately, this method do not take into account temporal interdependencies (you sample independently from different step ahead), hence you would need to reconcile the statistical properties of the scenarios using some techniques, e.g. empirical copulas. A more sound way could be to use a forecasting method which exploits bagging for the forecasting, and then directly use the response from single forecasters as the scenarios to be reduced. For example, you could fit a 200 trees random forest using TreeBagger class in Matlab https://it.mathworks.com/help/stats/treebagger.html and then predict the response of each tree in the forest, or use the estimators_ attribute of the skgarden.quantile.ExtraTreesQuantileRegressor class in python https://scikit-garden.github.io/api/#skgardenforest_1 to do the same in python.
Best,
Lorenzo

@Jiuhaoqiu
Copy link
Author

Hi Jiuhaoqiu,
unfortunately I cannot provide you with a link, since the generation of scenarios depends on the assumptions you do when modeling the uncertainties. For example, if you predict the scenarios by means of multivariate linear regression, under the assumption of Gaussian errors, you could simply retrieve the scenarios using Montecarlo simulations: just retrieve the standard deviation for each step ahead and draw independent observations. Unfortunately, this method do not take into account temporal interdependencies (you sample independently from different step ahead), hence you would need to reconcile the statistical properties of the scenarios using some techniques, e.g. empirical copulas. A more sound way could be to use a forecasting method which exploits bagging for the forecasting, and then directly use the response from single forecasters as the scenarios to be reduced. For example, you could fit a 200 trees random forest using TreeBagger class in Matlab https://it.mathworks.com/help/stats/treebagger.html and then predict the response of each tree in the forest, or use the estimators_ attribute of the skgarden.quantile.ExtraTreesQuantileRegressor class in python https://scikit-garden.github.io/api/#skgardenforest_1 to do the same in python.
Best,
Lorenzo

Thanks a lot,I will try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants