Ce diaporama a bien été signalé.
Le téléchargement de votre SlideShare est en cours. ×

Matlab all the terms should be dened- and anyone reading it Law of Lar.docx

Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Prochain SlideShare
Data Analysis Homework Help
Data Analysis Homework Help
Chargement dans…3
×

Consultez-les par la suite

1 sur 2 Publicité

Matlab all the terms should be dened- and anyone reading it Law of Lar.docx

Télécharger pour lire hors ligne

Matlab
all the terms should be dened, and anyone reading it
Law of Large Numbers and the Central Limit Theorem:
Generate N random variables that are uniformly distributed on [0,1] and nd the average (e.g., in Matlab you can use sum(rand(1,N))/N). Is this number close to the expected value of a uniform random variable? Plot this average versus N, and observe whether it converges to the expected value. Now do the same as above, except we subtract the mean, and normalize with N instead of N, so that you have sum(rand(1,N)-0.5)/sqrt(N). Do this many (say M) times, which will give you M numbers at the end. What distribution should these number follow if N is large? Draw a histogram of these M numbers using the hist command to get a clue. Comment on the reason. What is the eect of N on your conclusion. Say, if N = 2 would this work? What about N = 10?
Solution
Matlab
all the terms should be dened, and anyone reading it
Law of Large Numbers and the Central Limit Theorem:
Generate N random variables that are uniformly distributed on [0,1] and nd the average (e.g., in Matlab you can use sum(rand(1,N))/N). Is this number close to the expected value of a uniform random variable? Plot this average versus N, and observe whether it converges to the expected value. Now do the same as above, except we subtract the mean, and normalize with N instead of N, so that you have sum(rand(1,N)-0.5)/sqrt(N). Do this many (say M) times, which will give you M numbers at the end. What distribution should these number follow if N is large? Draw a histogram of these M numbers using the hist command to get a clue. Comment on the reason. What is the eect of N on your conclusion. Say, if N = 2 would this work? What about N = 10?
.

Matlab
all the terms should be dened, and anyone reading it
Law of Large Numbers and the Central Limit Theorem:
Generate N random variables that are uniformly distributed on [0,1] and nd the average (e.g., in Matlab you can use sum(rand(1,N))/N). Is this number close to the expected value of a uniform random variable? Plot this average versus N, and observe whether it converges to the expected value. Now do the same as above, except we subtract the mean, and normalize with N instead of N, so that you have sum(rand(1,N)-0.5)/sqrt(N). Do this many (say M) times, which will give you M numbers at the end. What distribution should these number follow if N is large? Draw a histogram of these M numbers using the hist command to get a clue. Comment on the reason. What is the eect of N on your conclusion. Say, if N = 2 would this work? What about N = 10?
Solution
Matlab
all the terms should be dened, and anyone reading it
Law of Large Numbers and the Central Limit Theorem:
Generate N random variables that are uniformly distributed on [0,1] and nd the average (e.g., in Matlab you can use sum(rand(1,N))/N). Is this number close to the expected value of a uniform random variable? Plot this average versus N, and observe whether it converges to the expected value. Now do the same as above, except we subtract the mean, and normalize with N instead of N, so that you have sum(rand(1,N)-0.5)/sqrt(N). Do this many (say M) times, which will give you M numbers at the end. What distribution should these number follow if N is large? Draw a histogram of these M numbers using the hist command to get a clue. Comment on the reason. What is the eect of N on your conclusion. Say, if N = 2 would this work? What about N = 10?
.

Publicité
Publicité

Plus De Contenu Connexe

Similaire à Matlab all the terms should be dened- and anyone reading it Law of Lar.docx (20)

Plus par sngyun4t79 (20)

Publicité

Plus récents (20)

Matlab all the terms should be dened- and anyone reading it Law of Lar.docx

  1. 1. Matlab all the terms should be dened, and anyone reading it Law of Large Numbers and the Central Limit Theorem: Generate N random variables that are uniformly distributed on [0,1] and nd the average (e.g., in Matlab you can use sum(rand(1,N))/N). Is this number close to the expected value of a uniform random variable? Plot this average versus N, and observe whether it converges to the expected value. Now do the same as above, except we subtract the mean, and normalize with N instead of N, so that you have sum(rand(1,N)-0.5)/sqrt(N). Do this many (say M) times, which will give you M numbers at the end. What distribution should these number follow if N is large? Draw a histogram of these M numbers using the hist command to get a clue. Comment on the reason. What is the eect of N on your conclusion. Say, if N = 2 would this work? What about N = 10? Solution Matlab all the terms should be dened, and anyone reading it Law of Large Numbers and the Central Limit Theorem: Generate N random variables that are uniformly distributed on [0,1] and nd the average (e.g., in Matlab you can use sum(rand(1,N))/N). Is this number close to the expected value of a uniform random variable? Plot this average versus N, and observe whether it converges to the expected value. Now do the same as above, except we subtract the mean, and normalize with N instead of N, so that you have sum(rand(1,N)-0.5)/sqrt(N). Do this many (say M) times, which will give you M numbers at the end. What distribution should these number follow if N is large? Draw a histogram of these M numbers using the hist command to get a clue. Comment on the reason. What is the eect of N on your conclusion. Say, if N = 2 would this work? What about N = 10?

×