Monte Carlo Simulation to generate 10,000 data from 100 data.

3 visualizaciones (últimos 30 días)
Ahmad Mujahid bin Turin
Ahmad Mujahid bin Turin el 12 de Oct. de 2019
Respondida: Jeff Miller el 13 de Oct. de 2019
Hey there. I have a set of data. I've been told to do a Monte Carlo Simulation to make the data more. My data set has 100 data, I want to generate it to 10,000. Can Monte Carlo Simulation do that? If yes, what should I do first?

Respuestas (1)

Jeff Miller
Jeff Miller el 13 de Oct. de 2019
Here is one way:
originalSample = rand(100,1); % You have your own original sample. This is some fake data to use instead for this example.
expandedSample = datasample(originalSample,10000);
Depending on exactly what you are doing, you might also be interested in looking at some of the functions for bootstrapping.

Categorías

Más información sobre Monte-Carlo en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by