필터 지우기
필터 지우기

Hi everyone, I have to use monte carlo time series method to generate synthetic smart meter data for about a million houses. Any heads up on this will be really helpful. Thanks

조회 수: 1 (최근 30일)
Monte Carlo Time Series Synthetic Data generation

채택된 답변

Image Analyst
Image Analyst 2017년 10월 30일
편집: Image Analyst 2017년 10월 30일
Search for Monte Carlo for lots of posts, many of which have code. https://www.mathworks.com/matlabcentral/answers/?term=tag%3A%22Monte+Carlo%22
I've attached some demos that use Monte Carlo.
  댓글 수: 1
Ragini Gupta
Ragini Gupta 2017년 11월 4일
편집: Walter Roberson 2017년 11월 4일
Thank you so much. Turns out I have to model the data using Monte Carlo Markov Chain. I created the Transition probability matrix from the consumption values after the binning stage. However, I am not sure how to proceed to simulate the matrix and generate new consumption values.
Here is the code, if you can have a look at it? Please. Thanks in advance
filename = 'newTestingExcel.xlsx';
Furnace=xlsread(filename,'B:B'); %H1D1
edges = linspace(min(Furnace),max(Furnace),8);
[counts,bins] = histc(Furnace, edges);
[counts,bins] = histc(Furnace, edges);
%# transition matrix
m = max(bins);
n = numel(bins);
y = zeros(m,1);
p = zeros(m,m);
for k=1:n-1
y(bins(k)) = y(bins(k)) + 1;
p(bins(k),bins(k+1)) = p(bins(k),bins(k+1)) + 1;
end
p = bsxfun(@rdivide,p,y); p(isnan(p)) = 0;
disp(trans);

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Monte-Carlo에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by