I have a matlab question, i hope someone is familiar with this as I am not. Here's the problem:
Generate a stream of i.i.d (independent identically distributed random variables U={U(N), N>=n>=1} which are uniformly distributed over [0,1], for N=1000, 5000, 10000.
Use resulting streams to draw probability distribution histograms which show the probabilities that U is in the interval (0.1i,0.1i+0.1], for i=0,1...,9. Compute the sample means and variances, for each of the three runs.
I'd appreciate it if someone could help me get started, i don't even know how to generate the i.i.d. Thanks in advance.
Generate a stream of i.i.d (independent identically distributed random variables U={U(N), N>=n>=1} which are uniformly distributed over [0,1], for N=1000, 5000, 10000.
Use resulting streams to draw probability distribution histograms which show the probabilities that U is in the interval (0.1i,0.1i+0.1], for i=0,1...,9. Compute the sample means and variances, for each of the three runs.
I'd appreciate it if someone could help me get started, i don't even know how to generate the i.i.d. Thanks in advance.
