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

Other questions on the subject: Mathematics

image
Mathematics, 21.06.2019 23:30, bhopainting
Simplify (8x2 − 1 + 2x3) − (7x3 − 3x2 + 1). −5x3 + 11x2 − 2 5x3 − 11x2 + 2 x3 + 2x2 + x3 x3 − 2x2 − x3
Answers: 1
image
Mathematics, 22.06.2019 00:10, gamerhunter425
2. (09.01 lc) a function is shown in the table. x g(x) −3 17 −1 −3 0 −4 2 13 which of the following is a true statement for this function? (5 points) the function is increasing from x = −3 to x = −1. the function is increasing from x = −1 to x = 0. the function is decreasing from x = 0 to x = 2. the function is decreasing from x = −3 to x = −1.
Answers: 3
image
Mathematics, 22.06.2019 00:30, Haileydusenbery
How many doughnuts are equal to 20 cookies.? 3 apples = 5 bananas6 cookies = 7 apples2 doughnuts = 1 banana
Answers: 2
image
Mathematics, 22.06.2019 01:30, peno211
Acompany that makes? hair-care products had 5000 people try a new shampoo. of the 5000 ? people, 35 had a mild allergic reaction. what percent of the people had a mild allergic? reaction?
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 in other subjects:

Konu
History, 30.06.2021 19:20