subject
Mathematics, 18.12.2019 00:31 Absynthe3986

Project assignment: the aim of this project is to derive and implement a computer algorithm to generate observed values (random samples) of three different random variables using the inverse transform method. the three random variables of interest are: (1) x1~uniform(θ1,θ2), (2) x2~exponential(β), and (3) x3~cauchy(θ). we have not introduced the cauchy random variable in this class but its probability density function (pdf) is given by: ) = (1/pi)(1/(1+(x-theta)^2)) on -[infinity] < x < [infinity], -[infinity] < θ < [infinity].the first part of your assignment is to derive the above procedure for the three random variables x1, x2 and x3.the second part of your assignment is to implement the method in r and provide the following results: 1. generate a random sample of size 100,000 from a uniform(-2,1). 2. generate a random sample of size 100,000 from an exponential(3). 3. generate a random sample of size 100,000 from a cauchy(2).for cases (1) and (2), report the mean and variance of your random sample, and display its histogram. compare the mean, variance and histogram obtained using your approach to those obtained via a random sample using the built-in r functions runif(1,-2,1) and rexp(1,1/3). for case (3), report the median of your random sample and compare it to the median obtained via a random sample using the built-in r function rcauchy(1,2).

ansver
Answers: 2

Another question on Mathematics

question
Mathematics, 21.06.2019 15:30
Solve the system of equations. y= 2x y= x^2 - 15
Answers: 1
question
Mathematics, 21.06.2019 17:10
Which is a graph of a proportional relationship?
Answers: 1
question
Mathematics, 21.06.2019 21:30
Data from 2005 for various age groups show that for each $100 increase in the median weekly income for whites, the median weekly income of blacks increases by $105. also, for workers of ages 25 to 54 the median weekly income for whites was $676 and for blacks was $527. (a) let w represent the median weekly income for whites and b the median weekly income for blacks, and write the equation of the line that gives b as a linear function of w. b = (b) when the median weekly income for whites is $760, what does the equation in (a) predict for the median weekly income for blacks?
Answers: 2
question
Mathematics, 21.06.2019 23:20
Interpret the following expression (5y^2-7)^3/(2y)^2
Answers: 2
You know the right answer?
Project assignment: the aim of this project is to derive and implement a computer algorithm to gene...
Questions
question
Business, 03.05.2020 13:25
question
Mathematics, 03.05.2020 13:25
question
Chemistry, 03.05.2020 13:25
question
Mathematics, 03.05.2020 13:25
Questions on the website: 13722362