Question

6. Estimate expr)dx by generating random numbers. Generate at least 100 values and stop when the standard deviation of your estimator is less than 0.01. 12. To estimate θ, we generated 20 independent values having mean θ. If the successive values obtained were 102. 112. 131, 107, 114. 95, 133, 145, 139, 117 93. 111, 124, 122, 136, 141, 119. 122, 151, 143 how many additional random variables do you think we will have to generate if we want to be 99 percent certain that our final estimate of θ is correct to within +0.5? 15. If n 15 and the data are 5, 4, 9. 6, 21, 17. 11, 20. 7, 10,21, 15, 13, 16, 8 approximate (by a simulation) the bootstrap estimate of Var(S).

can u solve those 3 questions and in R program as well ?

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

The R code for finding the definite integral e dx using Mote Carlo Simulation is given below. We generate uniform random numbers between 0 and 1 starting with N=100 . The iteration stops when the standard deviation is less than 0.01.

g <- function (x)
{
gg <- exp(x^2)
return (gg)
}
N < - 100
While (sd > 0.01)
{
I <- 0
I2 <- 0
X <- runif(N)
for(i in 1:N)
{
  
I <- I + g(X[i])/N
I2 <- I2 + g(X[i])^2/N
}
sd <- sqrt((I2-I^2)/N)
N <- N + 1
}
N
I

The simulated value is  1.461569. While the exactt value is 1.46265.

We are required to solve only one question. Please post the remaining questions as another post.

Add a comment
Know the answer?
Add Answer to:
can u solve those 3 questions and in R program as well ? 6. Estimate expr)dx...
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
  • The measurements of a temperature sensor (in °F) are provided. Is the set of measurements well...

    The measurements of a temperature sensor (in °F) are provided. Is the set of measurements well described by a normal distribution? Calculate the R^2 and R^2 adjusted values. Show all the calculations. Order Temperature (F) 1 118 2 119 3 120 4 121 5 121 6 122 7 123 8 123 9 124 10 124 11 124 12 124 13 125 14 125 15 125 16 125 17 125 18 126 19 127 20 128 21 128 22 129 23...

  • (Use Excel) italy common for people to put on weight when they quit smoking While a...

    (Use Excel) italy common for people to put on weight when they quit smoking While a small weight gain is normal c e weight gain can create new health concerns that brode the benefits of not smoking. The accompanying table shows a portion of the weight data for 50 women before quitting and six months after quitting Use Table 2 Weight Before Quilling 140 144 138 Weight After Quilling 155 142 163 146 129 149 136 127 158 145 118...

  • Maintaining a healthy weight is important for women’s health. Some physicians recommend being back to your...

    Maintaining a healthy weight is important for women’s health. Some physicians recommend being back to your pre-pregnancy weight six months after giving birth. Public health officials are interested in whether this is a realistic goal. Do the women in North Carolina weigh more than their pre-pregnancy weight six months postpartum? In other words, is the six months post-pregnancy weight greater than their pre-pregnancy weight? Use a paired samples t-test to compare pst6wght (variable 1) and prewght (variable 2). This uses...

  • what should line 155 and 156 say? 117 print (AverageAdulLupului 118 19 #Though wait... If you...

    what should line 155 and 156 say? 117 print (AverageAdulLupului 118 19 #Though wait... If you look at AdultTotal and Number of Species, the calculation 20 #should be 114/9....That's not 12! It's 12 and two thirds! (or 12.66666666... 121 #The problem is that python automatically interprets whole numbers as integers 122 #Try and see the difference between the below examples 123 print( 3/5) 124 print(3.0/5) 125 #If you put a decimal in the number, python knows that the numbers aren't...

  • Your IT department provided you data on patients that received ER services, their GHHS, and their recovery time. Prepare a report to share with the owners of the facility that will help you make infor...

    Your IT department provided you data on patients that received ER services, their GHHS, and their recovery time. Prepare a report to share with the owners of the facility that will help you make informed decisions about how long you can expect a patients’ recovery time would be based on their GHHS. Based on your findings provide recommendations on your plan moving forward to improve the functioning of your facilities in generating revenue. Prepare a report that addresses each of...

  • In a study of government financial aid for college students, it becomes necessary to estimate the...

    In a study of government financial aid for college students, it becomes necessary to estimate the percentage of full-time college students who earn a bachelor's degree in four years or less. Find the sample size needed to estimate that percentage. Use a 0.02 margin of error and use a confidence level of 99%. Complete parts (a) through (c) below. a. Assume that nothing is known about the percentage to be estimated. n (Round up to the nearest integer.) b. Assume...

  • Download the hypothesis testing dataset from the class website. 1. This is case 1, in which...

    Download the hypothesis testing dataset from the class website. 1. This is case 1, in which the value of population standard deviation is assumed to be known. a. Compute the standard deviation of the textbook price and assume this to be the population standard deviation. Type this value in E5. b. Pick a random sample of size 15. c. Compute the mean of your random sample in E4 using the AVERAGE function. d. Calculate the standard error in cell E9...

  • Bubba's Burgers - Statistics Question

    Sampled StoreDessert Orders Per 1,000 TransactionsStore 1185Store 2226Store 3290Store 4226Store 5255Store 6293Store 7138Store 8203Store 9276Store 10173Store 11275Store 12199Store 13213Store 14321Store 1597Store 16152Store 17319Store 18193Store 19126Store 20215Store 21186Store 22289Store 23181Store 24196Store 25183Store 2690Store 27178Store 28103Store 29173Store 30231Store 31158Store 32202Store 33234Store 34273Store 35218Store 36247Store 37223Store 38108Store 39238Store 40143Store 41206Store 42300Store 4389Store 44202Store 45250Store 46210Store 47137Store 48215Store 49204Store 50188Store 51255Store 52196Store 53123Store 54189Store 55206Store 56146Store 57136Store 58211Store 59164Store 60246Store 61324Store 62125Store 63195Store 64173Store 65179Store 6676Store 67248Store 68199Store 69223Store 70240Store 71224Store 72215Store 73222Store 74170Store...

  • 33 On May 6, Jim Ryan borrowed $14,000 from Lane Bank at 7 % interest. Jim...

    33 On May 6, Jim Ryan borrowed $14,000 from Lane Bank at 7 % interest. Jim plans to repay the loan on March 11. Assume the loan is on ordinary interest. How much will Jim repay on March 11? (Use Days in a year table) (Round your answer to the nearest cent.) Jm repay etbook 7-1 TABLE Exact days-in-a-year calendar (excluding leap year)" Day of month 30 31 30 31 28 31 30 31 31 30 31 31 Dec Mar...

  • Determination of Molecular Structure from molecular formula, mass, IR, and Mass Spec data. Molecular Weight: 134.22...

    Determination of Molecular Structure from molecular formula, mass, IR, and Mass Spec data. Molecular Weight: 134.22 Molecular Formula: C10H14 I need help finding the structure. IR Data (3300-2650 Range): *No peaks between 2650 and 2100* IR Data (2100-600 Range): MS Data (Two different views): MS Peaks Labeled: Transmittance 60 80 100 3250 43088.1; 95. +3060.1; 93.5 -3022.9; 93.9 2961.4; 64.843 3200 3150 3100 3050 3000 Wavenumber (cm-1) 2950 TTTTTTTTTTTTTIIIIIITTTTTTTTTTTTTTTTTTTTTTTTTTT 29002850 2800 2750 2700 2650 2903.6; 86.663 2866.3; 86.398 20... 40...

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