1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
d1i1m1o1n [39]
3 years ago
13

Use the Monte Carlo method to estimate the mean, variance, and 2.5th and 97.5th percentiles of a gamma distribution G(2, 4). Com

pare the estimates with the true values and comment how the sample size affects the estimates.
Mathematics
1 answer:
AfilCa [17]3 years ago
7 0

Answer:

Given information: shape = 2, scale = 4 for the gamma distribution under study (rate = 1/scale = 1/4)

Let us take different number of samples to study effect of sample size on estimates

R-code and Solution :

ss = c(50,100,200,500,1000,10000,100000)

sh = 2

sc = 4

i = 0

means = list()

vars = list()

quant_025 = list()

quant_975 = list()

for(s in ss)

{

i = i+1

sample_series = rgamma(n = s, shape = sh, scale = sc)

means[i] = mean(sample_series)

vars[i] = var(sample_series)

quant_025[i] = qgamma(p = c(0.025), shape = sh, scale = sc)

quant_975[i] = qgamma(p = c(0.975), shape = sh, scale = sc)

}

i = 0

true_mean = sh*sc

# 8

true_variance = sh*sc^2

# 32

# Means:

## True mean = 8

## as.matrix(means)

# [1] 9.82338

# [2] 8.970444

# [3] 7.859794

# [4] 8.204468

# [5] 7.613365

# [6] 8.055619

# [7] 7.990096 --> As sample size increases, the estimated mean tends to the theoretical mean

# Variances:

## True variance = 32

## as.matrix(vars)

# [1] 35.64035

# [2] 54.33689

# [3] 29.01417

# [4] 32.25097

# [5] 27.00697

# [6] 32.92603

# [7] 32.10989 --> As sample size increases, the estimated variance tends to the theoretical variance

# Quantiles:

## as.matrix(quant_025) and as.matrix(quant_975)

## 2.5% 97.5%

# [1] 0.9688371 22.28657

# [2] 0.9688371 22.28657

# [3] 0.9688371 22.28657

# [4] 0.9688371 22.28657

# [5] 0.9688371 22.28657

# [6] 0.9688371 22.28657

# [7] 0.9688371 22.28657

R-code and Solution

Step-by-step explanation:

You might be interested in
7/8 yard of material is needed to make a blanket, how many blankets can be made from 21 yards of material?
dmitriy555 [2]

Answer:

24

Step-by-step explanation:

the question translates to asking how many times does 7/8 fit in 21, so 21 divided by 7/8.

when we divide by a fraction, we can multiply by it's inverse, so 21 divided by 7/8, is 21 multiplied by 8/7. so:

21×8/7 = (21×8)/7 = (21/7)×8 = 3×8 = 24

8 0
2 years ago
Each of the 9 parking lots at an automobile plant holds the same number of new cars. The lots lots are full. If there are 431 ca
Serjik [45]

431 \div 9
=47.8888 when you round it up you can get get about 48 then you estimate to about 50.
3 0
3 years ago
How many times can 475 go into 1,662?
Solnce55 [7]
3.498947368421053 <- Exactly...

Evenly: Three times. It comes out to be 1425 with 237 left...

I hope this answers your question... Let me know if I didn't! <3 


7 0
3 years ago
Read 2 more answers
1. Which of the following is the standard form of y = (x – 3)(x – 7)?
Andrej [43]

9514 1404 393

Answer:

  b.  y = (x - 5)² - 4

Step-by-step explanation:

Here, we take "standard form" to mean "vertex form."

In the US, "standard form" would be ...

  y = x² -10x +21

Vertex form is ...

  y = (x -5)² -4 . . . . matches B

4 0
3 years ago
Dinner at your grandfather's favorite restaurant now costs $25.25 and has been increasing steadily at 4% per year. How much did
storchak [24]
This will be a little complex number...
assume 35 years ago, it cost x dollars
for now:      x×1.04^{35}=25.25
solve it! :) maybe too difficult without a calculator
5 0
3 years ago
Other questions:
  • Please help AND explain!
    5·1 answer
  • Jose can read 7 pages of his book in 5 minutes.At this rate, how long will it take him to read the entire 175 page book
    10·1 answer
  • Write the standard equation for the circle that passes through the points (- 5, 0), (0, 4), and (2, 4).
    14·1 answer
  • 5 (3 + 8 -2)1 (10 X 3+ 5 2)
    8·2 answers
  • Please I need help I don’t understand this!
    6·1 answer
  • If I have 4 groups of $29, about how much do I have?
    13·2 answers
  • Please help ASAP please thank you
    8·1 answer
  • A website sells sweaters. The amount of sales p(c) varies directly with the number of customers c.
    8·1 answer
  • ) Which object's liquid volume is best measured in milliliters? Bathtub, Milk carton, big spoon or small fish tank
    6·1 answer
  • solve for b 1/4(b-8)=2. I hope you have time to answer this. Thank you so much for your time you guys make me so happy
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!