Hi. I need to generate 2 time series. the first one with 7000 numbers and the second with 20000. The first one has to be normally distributed and the second log-normally. How do you do that?
After creating that, I have to get a regression model for both time series.
Please help!

댓글 수: 2

Adam Danz
Adam Danz 2020년 3월 10일
Are you talking about random numbers?
ingCr
ingCr 2020년 3월 10일
Yes, just random numbers that have to resemble a time series and then use those numbers and create a regression model.

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

 채택된 답변

Adam Danz
Adam Danz 2020년 3월 10일
편집: Adam Danz 2020년 3월 10일

0 개 추천

You can use r = normrnd(mu,sigma,1,100) to generate 100 random numbers from a Gaussian distribution with mean mu and standard deviation sigma.
See documentation on regression for the next step.

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기

질문:

2020년 3월 10일

편집:

2020년 3월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by