Solve following using Program R studio. Please show code and results. Thank you. 3. Assume that ?...

90.2K

Verified Solution

Question

Basic Math

Solve following using Program R studio. Please show code andresults. Thank you.

3. Assume that ? is a random variable represents lifetime of acertain type of battery which is exponentially distributed withmean 60 hours.  
a. Simulate 500 pseudorandom numbers (using set.seed(10)) andassign them to a vector called expran.
b. Calculate average of simulated data and compare it withcorresponding theoretical value.
c. Calculate probability that lifetime is less than 50 hours usingcumulative probability function.
d. Calculate the total lifetime for these 500 simulatedlifetimes.
e. Calculate 80th percentile using quantile function.

Answer & Explanation Solved by verified expert
4.4 Ratings (554 Votes)
The RCode is provided as a setseed10 expran rpois500 lambda 60 expran 60 58 49 55 63 50 58 55 68 65 58 67 65 60 52 65 73 60 54 54 59 66 71 59 61 59 60 50 67 61 49 60 60 60 73 53 54 44 52 64 60 67 60 64 70 76 63 66 53 70 66 64 56 53 57 69 65 56 68 60 54 51 62 70 53 56 55 64 58 65 65 63 61 65 77 50 57 58 60 68 64 74 59 55 54 67 63 83 69 63 58 65 60 51 68 56 66 57 68 65 69 67 56 47 50 64 68 53 57 67 55 44 59 69 80 54    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students