Question

You cannot simulate 10000 values of U, where U ∼ Unif[0, 1]. The only thing you...

You cannot simulate 10000 values of U, where U ∼ Unif[0, 1].

The only thing you can do is simulate 10000 values of Y where Y ∼ f(y|θ) and f(y|θ) = 1/θ * e-y/θ .

Is there any way you can simulate 10000 observations of X, where X is the number of heads in 3 flips of a coin where P(H) = .7 using only the simulated values of Y you have?

Homework Answers

Answer #1

The following images contain the complete solution and the algorithm to generate the final simulations:

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
Conducting a Simulation For example, say we want to simulate the probability of getting “heads” exactly...
Conducting a Simulation For example, say we want to simulate the probability of getting “heads” exactly 4 times in 10 flips of a fair coin. One way to generate a flip of the coin is to create a vector in R with all of the possible outcomes and then randomly select one of those outcomes. The sample function takes a vector of elements (in this case heads or tails) and chooses a random sample of size elements. coin <- c("heads","tails")...
Let Y ∼ Unif(1, 5) R1. Write code in R that will simulate the setup in...
Let Y ∼ Unif(1, 5) R1. Write code in R that will simulate the setup in question 3a, and hence, allow you to roughly check your answer. 3a. If you generate 5 random numbers based on Y , what is the probability you’ll get more (numbers greater than 4) than (numbers less than or equal to 4)? R2. Write code in R that will simulate the setup in question 3b, and hence, allow you to roughly check your answer. 3b....
Problem 3 you can use Matlab and also i give u the Problem 1 code its...
Problem 3 you can use Matlab and also i give u the Problem 1 code its on Matlab Using the same initial code fragment as in Problem 1, add code that calculates and plays y (n)=h(n)?x (n) where h(n) is the impulse response of an IIR bandpass filter with band edge frequencies 750 Hz and 850 Hz and based on a 4th order Butterworth prototype. Name your program p3.sce this is the Problem 1 code and the solutin clear; clc;...
Suppose there are only two types of cars in the used car market q=0 and q=1....
Suppose there are only two types of cars in the used car market q=0 and q=1. Half the cars are q=0 and the other half are q=1. Buyers still cannot tell the quality but they are aware of the quality distribution. Sellers are willing to accept any price p ? 0, but prefer to receive a higher price. If buyers do not know q, then they are willing to pay p=10000*Q+500 where Q is the average quality of the cars...
Jen’s utility function is U (X, Y ) = (X + 2)(Y + 1), where X...
Jen’s utility function is U (X, Y ) = (X + 2)(Y + 1), where X is her consumption of good X and Y is her consumption of good Y . a. Write an equation for Jen’s indifference curve that goes through the point (X, Y ) = (2, 8). On the axes below, sketch Jen’s indifference curve for U = 36 b. Suppose that the price of each good is 1 and that Jen has an income of 11....
Hello! I hope you are healthy and well! I am hoping that this message finds you...
Hello! I hope you are healthy and well! I am hoping that this message finds you happy and content! I am having trouble solving this 5-part practice problem. I would greatly appreciate any and all help that you could lend! Thanks in advance! In the following proof, what is the justification for line 7? 1.     [(W ⊃ X) ⊃ Y] ∨ ( P ≡ Q) 2.     ∼X • ∼Y 3.     ∼(P ≡ Q) / ∴ ∼W 4.     ∼X                  2 Simp 5.     ∼Y                  2 Simp 6.     (W ⊃ X)...
In this question, you will carry out the algebraic equivalent to the diagrammatic analysis investigating the...
In this question, you will carry out the algebraic equivalent to the diagrammatic analysis investigating the effect of amenities on incomes and real-estate prices. To start, let the consumer utility function be given by q1/2c1/2a1/2, where c  is consumption of “ bread ” (a catch-all commodity), q is real estate (housing), and a is amenities, which are valued by the consumer given that a’s exponent is positive. Letting y denote income, it can be shown that the consumer demand functions for...
Claraís utility function is u (x; y) = (x + 2) (y + 1) where x...
Claraís utility function is u (x; y) = (x + 2) (y + 1) where x is her consumption of good x and y is her consumption of good y. (a) Write an equation for Claraís indi§erence curve that goes through the point (x; y) = (2; 8). (b) Suppose that the price of each good is $1 and Clara has an income of $11. Can Clara achieve a utility level of at least 36 with this budget? ( c)...
Problem 1....... you can use Matlab The following Scilab code generates a 10-second “chirp” with discrete...
Problem 1....... you can use Matlab The following Scilab code generates a 10-second “chirp” with discrete frequencies ranging from 0 to 0.2 with a sampling frequency of 8 kHz. clear; Fs = 8000; Nbits = 16; tMax = 10; N = Fs*tMax+1; f = linspace(0.0,0.2,N); x = zeros(f); phi = 0; for n=0:N-1 x(n+1) = 0.8*sin(phi); phi = phi+2*%pi*f(n+1); end sound(x,Fs,Nbits); sleep(10000); //allows full sound to play Add code that calculates and plays y (n)=h(n)?x (n) where h(n) is the...
Question 3 (a) [10 marks] FAEN102 students must attend t hours, where t ∈ [0,H], of...
Question 3 (a) [10 marks] FAEN102 students must attend t hours, where t ∈ [0,H], of lectures and pass two quizzes to be in good standing for the end of semester examination. The number of students who attended between t1 and t2 hours of lectures is de- scribed by the integral ? t2 20t2 dt, 0≤t1 <t2 ≤H. t1 As a result of COVID-19, some students attended less than H2 hours of lectures before the university was closed down and...