Question

Simulate 20 values from the Exponential distribution with mean 3. Compute the mean and standard deviation...

Simulate 20 values from the Exponential distribution with mean 3. Compute the mean and standard deviation of these 20 values and compare with population values.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Using R

# lambda = 5

x<- rexp(20, rate = 5)
mean(x)
sd(x)

population mean = population sd = 1/lambda = 1/5 = 0.2

sample mean = 0.22

sample sd = 0.23

we see that sample values are close to population values, but there is some sampling error

error will decrease if we take a large sample

Please give me a thumbs-up if this helps you out. Thank you! :)

Add a comment
Know the answer?
Add Answer to:
Simulate 20 values from the Exponential distribution with mean 3. Compute the mean and standard deviation...
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
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