0
votes
1answer
30 views

Finding variance .

Suppose that $f : [0, 1] → [0, 1]$ and we wish to estimate $$I = \int_{0}^{1} f(x) dx$$ Using the hit-and-miss method, we obtain the estimate $$\hat I_{HM}=\frac{1}{n}\sum_{i=1}^{n}X_i$$ where ...
0
votes
1answer
119 views

Plot the cdf and simulate a random variable (rv) with this cdf using the inversion method.

Consider the continuous random variable with pdf given by: $$f(x) = 2(x − 1)^2;\quad 1 < x ≤ 2$$ $$f(x) = 0;\quad \text{otherwise}$$ Plot the cdf for this random variable. Show how to simulate ...
0
votes
1answer
42 views

Generating samples from $u(7,10)$

I have the following assignment: It requires to generate samples from $u(7,10)$,the uniform distribution on the interval $2 \leq x \leq 11$. Compare the normalized histogram with the density ...