Question

Assume X is distributed TRIA(4, 9, 10). Estimate E[X2 ] using Monte Carlo simulation

Assume X is distributed TRIA(4, 9, 10). Estimate E[X2 ] using Monte Carlo simulation

Homework Answers

Answer #1

The value of E[X^2]=60.59851

Here we use Monte Carlo simulation using R

The R-code is N=10000
X={}
a=4;b=10;m=9
F_m=(m-a)/(b-a)
for( i in 1:N){
set.seed(i)
U=runif(1)
if(U<F_m) X[i]=a+sqrt(U*(b-a)*(m-a)) else X[i]=b-sqrt((1-U)*(b-a)*(b-m))}
E_X=mean(X)
E_X2=mean(X^2)
E_X2

The Output of R-code is > N=10000
> X={}
> a=4;b=10;m=9
> F_m=(m-a)/(b-a)
> for( i in 1:N){
+ set.seed(i)
+ U=runif(1)
+ if(U<F_m) X[i]=a+sqrt(U*(b-a)*(m-a)) else X[i]=b-sqrt((1-U)*(b-a)*(b-m))}
> E_X=mean(X)
> E_X2=mean(X^2)
> E_X2
[1] 60.59851

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
. Assume that X is U[10,25], what is E[X2 ]? Estimate the answer using Monte Carlo...
. Assume that X is U[10,25], what is E[X2 ]? Estimate the answer using Monte Carlo simulation. Make sure your half width is less than 1.0.
You are using a Monte Carlo simulation to estimate the area of shape inside a unit...
You are using a Monte Carlo simulation to estimate the area of shape inside a unit square by taking n sample points. How big does n have to be in order for the estimate to be within about ±0.01 of the correct answer? I believe this has to do with binomial distribution.
Project#1. Conduct a Monte Carlo simulation and estimate the probability of a royal-flush in poker, if...
Project#1. Conduct a Monte Carlo simulation and estimate the probability of a royal-flush in poker, if 5 cards are selected at random from a deck of 52 cards?Write the simulation Rcode.
Three fair die are rolled. Use Monte Carlo simulation to estimate the probability distribution of the...
Three fair die are rolled. Use Monte Carlo simulation to estimate the probability distribution of the maximum of the three rolled die (i.e., let X represent the maximum when three fair die are rolled. Estimate p(X=i) for i= 1 to 6.). Simulate 10,000 times (10,000 replications/trials). Turn in a copy of the forecast frequency chart. please show screenshots of how to do it on Crystal ball.
A Monte Carlo simulation is a method for finding a value that is difficult to compute...
A Monte Carlo simulation is a method for finding a value that is difficult to compute by performing many random experiments. For example, suppose we wanted to estimate π to within a certain accuracy. We could do so by randomly (and independently) sampling n points from the unit square and counting how many of them are inside the unit circle (assuming that the probability of selecting a point in a given region is proportional to the area of the region)....
Perform Monte-Carlo estimation where theta = E(e^U) where U is a continuous uniform random variable between...
Perform Monte-Carlo estimation where theta = E(e^U) where U is a continuous uniform random variable between zero and one a. Estimate !using 1000 data points and obtain a 95% confidence interval for this case. b. Perform part a) 100 times. Check how often the true !actually does fall within the 100 resulting confidence intervals. Please solve in R.
Let X be a random variable of uniform distribution over the interval [−1, 1]. Calculate Monte...
Let X be a random variable of uniform distribution over the interval [−1, 1]. Calculate Monte Carlo estimate (in the form of a confidence interval asymptotic level 95%) of E [f (X)] for f (x) = e^x Assume number of simulations to any number.
Estimate the area under the graph of f(x)=x2+4x from x=2 to x=10 using 4 approximating rectangles...
Estimate the area under the graph of f(x)=x2+4x from x=2 to x=10 using 4 approximating rectangles and left endpoints. Approximation =
Two genes’ expression values follow a bivariate normal distribution. Let X and Y denote their expression...
Two genes’ expression values follow a bivariate normal distribution. Let X and Y denote their expression values respectively. Also assume that X has mean 9 and variance 3; Y has mean 10 and variance 5; and the covariance between X and Y is 2. In a trial, 50 independent measurements of the expression values of the two genes are collected, and denoted as 11 ( , ) XY, …, 50 50 ( , ) XY. We wish to find the...
Two genes’ expression values follow a bivariate normal distribution. Let X and Y denote their expression...
Two genes’ expression values follow a bivariate normal distribution. Let X and Y denote their expression values respectively. Also assume that X has mean 9 and variance 3; Y has mean 10 and variance 5; and the covariance between X and Y is 2. In a trial, 50 independent measurements of the expression values of the two genes are collected, and denoted as 1 1 ( , ) X Y , …, 50 50 ( , ) X Y ....
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT