Question
Will rate!!
Only need help on problems that do NOT involve R simulation

Part 3. (13 polnts) SImulatlon of Gamma Random Varlables Background: When we use the probablity denslty function to find probabiltles for a random varlable, we are using the density function as a model. This Is a smooth curve, based on the shape of observed outcomes for the random varlable. The observed distribution will be rough and may not follow the model exactly. The probabillty density curve, or function, is still just a model for what is actually happening with the random variable. In other words, there can be some discrepancies between the actual proportion of values above x and the proportion of area under the curve above the same value x. Our expectation is as the number of observations increase, literally or theoretically, the observed distribution will align more with the density curve. Over the long run, the differences are negligible, the model is sufficlent and more convenient to find desired information Simulation: Use R to simulate 1000 observations from a gamma distribution. To begin alpha 2 and beta = 7. Highlight and run the parameters and observation values. Run the simulation code to plot the observations and fit the probability density function over the observations. You dont need to change anything. You may run the section all at once by highlighting all of the section and running it by clicking the run button at the top of the script window. a. Given the values are from a gamma distribution with alpha- 2 and beta -7, i. li. (1 points) What is the expression for the probability density function? (1 point) What is the average and standard deviation of random variable? Show work. li. (1 point What is the probability x is less than 47 Show work. b. (2 point) Run the simulation and paste your plot. Comment on the general shape of the distribution. How well does the density curve fit the observations? (2 point) What is the exact proportion of values below 4? How does the actual proportion compare to the probability from the density curve in part 2-a-ii? (1.5 point) Increase the number of observations to 10000, rerun the simulation. Paste your plot. How does increasing the number of observations affect the fit of the density curve? (1.5 point) What is the exact proportion of values below 4? How does increasing the number of observations affect the accuracy of the model? Make a comparison between this proportion and 2-a-ili and 2c. c. d. e. f. (1 point) Rerun the simulation with alpha 1, beta 7, and observations 10000. Paste your plot. Comment on the general shape of the distribution. (2 points) This model is a special case of the gamma distribution, what is it specifically? What is the expression for the probability density function? g.
0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
Will rate!! Only need help on problems that do NOT involve R simulation Part 3. (13...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Will rate!! Show good work plz! Only need help on problems that do NOT involve R...

    Will rate!! Show good work plz! Only need help on problems that do NOT involve R simulation Part 3. (13 points) Simulation of Gamma Random Variables Background: When we use the probability density function to find probabilities for a random variable, we are using the density function as a model. This is a smooth curve, based on the shape of observed outcomes for the random variable. The observed distribution will be rough and may not follow the model exactly. The...

  • Question 2 a. Show that, for the exponential model with gamma prior, the posterior Π(9121m) under...

    Question 2 a. Show that, for the exponential model with gamma prior, the posterior Π(9121m) under n observations can be computed as the posterior given a single observation xn using the prior q(の는 1101r1:n-1). Give the formula for the parameters (an,ßn) of the posterior ll(θ|X1:n, α0,Ao) as a function of (an-1, Bn-1). b. Visualize the gradual change of shape of the posterior II(01:n, ao, Bo) with increasing n: . Generate n 256 exponentially distributed samples with parameter θ-1. . Use...

  • please I need help with excel or matlab part. part 3 Lab 1 BASIC DATA PROCESSING...

    please I need help with excel or matlab part. part 3 Lab 1 BASIC DATA PROCESSING PRE-LAB ASSIGNMENT 1. Read the lab manual carefully so you know what you have to do when you walk into the lab. 2. In a lab, the resistance of a resistor was measured using 50 samples giving the following values: 119.95 (6), 121.32 (5), 119.57 (7), 117.43(1), 120.76 (15), 120.67 (1), 119.78 (8), 121.43(3), 121.82(1), and 118.47 (3) 2 Estimate the average value of...

  • For this exercise we will run a regression using Swiss demographic data from around 1888. The...

    For this exercise we will run a regression using Swiss demographic data from around 1888. The sample is a cross-section of French speaking counties in Switzerland This data come with the R package datasets. The first step is to load the package into your current environment by typing the command libraryldatasets) in to the R console. This loads a number of datasets including one called swiss. Type help/swiss) in the console for additional details. The basic variable definitions are as...

  • R studio #Exercise : Calculate the following probabilities : #1. Probability that a normal random variable...

    R studio #Exercise : Calculate the following probabilities : #1. Probability that a normal random variable with mean 22 and variance 25 #(i)lies between 16.2 and 27.5 #(ii) is greater than 29 #(iii) is less than 17 #(iv)is less than 15 or greater than 25 #2.Probability that in 60 tosses of a fair coin the head comes up #(i) 20,25 or 30 times #(ii) less than 20 times #(iii) between 20 and 30 times #3.A random variable X has Poisson...

  • I only need help with part B. I need help with the sketch and all of B, not just the first part (like others have answer...

    I only need help with part B. I need help with the sketch and all of B, not just the first part (like others have answered previously.) THIS IS THE PART I REALLY NEED HELP WITH 1. [70 total points/ (the Exchange Paradox) You're playing the following game against an opponent, with a referee also taking part. The referee has two envelopes (numbered 1 and 2 for the sake of this problem, but when the game is played the envelopes...

  • I need help answering questions 1-3 32,33,35,36 Fitted Line Plot Time = 994.2-0.3930 Year 280 270 260 250 240 230 220 210 200 6.76343 79.3% 784% R-Sq R-Sq(a 1900 1920 19401960 1980 Year y...

    I need help answering questions 1-3 32,33,35,36 Fitted Line Plot Time = 994.2-0.3930 Year 280 270 260 250 240 230 220 210 200 6.76343 79.3% 784% R-Sq R-Sq(a 1900 1920 19401960 1980 Year y a+bx Question 1 ive the equation for the least squares regression line, and interpret it in context. Question 2: Give the equation for this new line and compare it with the line you found for the whole dataset, commenting on the effect of the outlier Question...

  • Can Dogs Understand Human Cues? EXPLORATION Dogs have been domesticated for about 14,000 years. In that...

    Can Dogs Understand Human Cues? EXPLORATION Dogs have been domesticated for about 14,000 years. In that time, have they been able to develop an understanding of human gestures such as pointing or glancing? How about simi lar nonhuman cues? Researchers Udell, Giglio, and Wynne tested a small number of dogs in order to answer these questions. In this exploration, we wll first see whether dogs can understand human gestures as well as nonhuman gestures. To test this, the researchers positioned...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT