Q5 (15 points) Continuing the scenario from the previous question, let's look at Lucy and Lei's...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Q5 (15 points) Continuing the scenario from the previous question, let's look at Lucy and Lei's waiting time data: waiting.csv. Part (i) Run this code to load and to transform the data. Make sure the data file is in your working directory before you run the code. waiting <- read_csv("./waiting.csv") customers1 <- tibble (waiting) %>% mutate (totaltime = cumsum (waitingtime), numberofminutes = ceiling (totaltime)) %>% group_by (numberofminutes) %>% summarize (numberofcustomers = n()) zeroes <- tibble (numberofminutes = 1:max(customers1$numberofminutes)) customers <- zeroes %>% left join (customers1, by = "numberofminutes") %>% replace_na(list (numberofcustomers = 0)) What is the variable name for the Y;'s? What is the value of m? Part (ii) For the random sample Y₁,..., Y. it can be shown that Ho ~N (0, #) where it is the MLE from Question 4. Compute a 95% confidence interval for using this asymptotic distribution and the observed values of the random sample Y₁,..., Ym. Part (iii) Compute the likelihood ratio A based on the sample Y₁,..., Ym and evaluate the claim that μ = 2, that is, two customers enter the shop per minute. Is this claim supported by the data? Part (iv) Use a bootstrap procedure to estimate a p-value corresponding to the claim that μ = 2 based on Y₁,..., Ym. Is your value different than what you got in Part (iii)? Say why you would expect them to be the same OR explain why they are different. Q5 (15 points) Continuing the scenario from the previous question, let's look at Lucy and Lei's waiting time data: waiting.csv. Part (i) Run this code to load and to transform the data. Make sure the data file is in your working directory before you run the code. waiting <- read_csv("./waiting.csv") customers1 <- tibble (waiting) %>% mutate (totaltime = cumsum (waitingtime), numberofminutes = ceiling (totaltime)) %>% group_by (numberofminutes) %>% summarize (numberofcustomers = n()) zeroes <- tibble (numberofminutes = 1:max(customers1$numberofminutes)) customers <- zeroes %>% left join (customers1, by = "numberofminutes") %>% replace_na(list (numberofcustomers = 0)) What is the variable name for the Y;'s? What is the value of m? Part (ii) For the random sample Y₁,..., Y. it can be shown that Ho ~N (0, #) where it is the MLE from Question 4. Compute a 95% confidence interval for using this asymptotic distribution and the observed values of the random sample Y₁,..., Ym. Part (iii) Compute the likelihood ratio A based on the sample Y₁,..., Ym and evaluate the claim that μ = 2, that is, two customers enter the shop per minute. Is this claim supported by the data? Part (iv) Use a bootstrap procedure to estimate a p-value corresponding to the claim that μ = 2 based on Y₁,..., Ym. Is your value different than what you got in Part (iii)? Say why you would expect them to be the same OR explain why they are different.
Expert Answer:
Answer rating: 100% (QA)
Part i The variable name for the Ys is numberofcustomers and m is the total number of observations t... View the full answer
Related Book For
Posted Date:
Students also viewed these organizational behavior questions
-
Based on the video for which link is given below, explain in your own words what Virtue Ethics is and tell if it works. In addition, discuss the downside of Virtue Ethics...
-
How would you address Brads reluctance to pay off his credit card balance? Show him what he could earn in five years if he paid it off and invested the interest saved at 6%. Future Value of a Lump...
-
How would you address the high turnover rate? Could this problem be related to compensation?
-
During the software design phase, software engineers define details about the product construction, behavior, components, and interfaces. Explain how you can use the Unified Modeling Language (UML)...
-
Bluebird Products, Inc. provided the following information from its current- year trial balance. Bluebird Products, Inc. Trial Balance For the Year Ended December 31 Debit Account Retained Earnings,...
-
Brazil Group purchases a tractor at a cost of ¬50,000 on January 2, 2019. Individual components of the tractor and useful lives are as follows (zero residual value). Instructions a. Compute...
-
Fill in the Blank. The single-plane balancing is also known as ____________ balancing.
-
Changes in Cost Structure; Break-Even Analysis; Operating Leverage; Margin of Safety Morton Companys contribution format income statement for last month is given below: The industry in which Morton...
-
Home Depot's cash conversion cycles are reported as follows: Days sales outstanding (DSO) + Days inventory outstanding (DIO) - Days payable outstanding (DPO) Cash conversion cycle Sales (Revenues)...
-
A test of tennis serve accuracy resulted in the following data: Note: Higher scores indicate better performance. X 15 12 12 10 8 7 5 4 4 1. What is the percentile rank of a person who scored (a) 7;...
-
While going over your expenses, your financial adviser noticed that you have been eating out too often lately. He suggests that you cut down your restaurant bill and put the money saved into your IRA...
-
What was the cost of goods manufactured? $4,000 $460 $490 Selected financial information for Brookeville Manufacturing is presented in the following table (000s omitted). Sales revenue Purchases of...
-
Roza Corp. issues 1,500 convertible bonds at the beginning of 2019. The bonds have a four-year term with a stated rate of interest of 6 percent and are issued at par with a face value of 1,000 per...
-
Two point charges of magnitude 2 nC and -3 nC are separated by 29.6 cm. What is the potential difference between a point infinitely far away and a point midway between the charges? The Coulomb...
-
4. An object travels 40.0 m east at a constant speed of 10.0 m/s. The object then travels 30.0 east of north, starting at 10.0 m/s but undergoing a constant acceleration to final speed of 20.0 m/s...
-
TUTORING IN ENGLISH, DOOR TO DOOR SALES OF SOLAR PANELS, GETTING CONTACTS BY A FINANCIAL ADVISOR, MOTORCYCLE ACCESSORIES there are four major categories of variables that can be used to segment...
-
The original balance in Aisha's account was $760. Last week, she wrote five checks to her employees, each for $100. Find Aisha's net balance. Evaluate -4pq for p = -6, and q = -3
-
Why is inventory management important for merchandising and manufacturing firms and what are the main tradeoffs for firms in managing their inventory?
-
Is a stock mutual funds past performance necessarily an indicator of future performance? What type of risk affects all stock mutual funds? Describe the tradeoff between the expected return and risk...
-
Based on the information you provided, Brad decides not to buy the condo at this time. How can he save the necessary funds to purchase a condo or house in the future? Be specific in your...
-
List and briefly describe the types of bond mutual funds.
-
A diesel engine of mass \(300 \mathrm{~kg}\) and operating speed \(1800 \mathrm{rpm}\) is found to have a rotating unbalance of \(1 \mathrm{~kg}-\mathrm{m}\). It is to be installed on the floor of an...
-
A sensitive electronic system, of mass \(30 \mathrm{~kg}\), is supported by a spring-damper system on the floor of a building that is subject to a harmonic motion in the frequency range \(10...
-
A machine of mass \(1150 \mathrm{~kg}\) is mounted on springs. A piston of mass \(m=25 \mathrm{~kg}\) moves up and down in the machine at a speed of \(600 \mathrm{rpm}\) with a stroke of \(350...
Study smarter with the SolutionInn App