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)...
-
Match each of the numbered definitions with the correct term in the following list. Write the letter of your choice in the answer column. a. Bailee b. Bailment c. Bailor d. Carriers lien e. Common...
-
A major criticism of the regulatory regime in the past was that it lacked independence from the accounting profession. Discuss the extent to which that criticism is still valid for the new regulatory...
-
Use the Get Wired. Inc., data from Problem 16-45B. Requirements 1. Prepare the 2005 statement of cash flows by the direct method. Follow the statement format given in Exhibit 16A-3. 2. How will what...
-
1. What business- level strategies is Nike pursuing? 2. How have Nikes business- level strategies changed the nature of industry competition? Nike, headquartered in Beaverton, Oregon, was founded...
-
MAX plans to issue common stock to the public at $80. The last paid dividend was $3 per share (D0=$3). Dividend growth rate is 5%. If floatation cost of the stock issuance is 10%, what's the net...
-
A secret service courier carrying a briefcase with the codes to the USA's nuclear defense system has a mean delivery time of 62 minutes with a standard deviation of 13 minutes. What is the...
-
Balance Sheet - Assets Only Cash 8 , 0 0 0 Accounts Receivable 1 4 , 0 0 0 Inventory 4 2 , 0 0 0 PP&E ( Net ) 1 3 6 , 0 0 0 Total Assets 2 0 0 , 0 0 0 What is the common - size percentage for each of...
-
3.6. (a) Show that the definitions of momentum and kinetic energy can be combined to express kinetic energy in terms of p and m without any v for velocity. (b) Someone looking at the expression you...
-
Answer the following questions for the given Time-Scaled CPM Network: 2 3 4 5 6 7 8 9 10 11 12 13 14 A JM C B The TF for activity A is: D E LL F G K H Assume 7-day Work Calendar O
-
Cost of Goods Manufactured and Sold LeMans Company produces specialty papers at its Fox Run plant. At the beginning of June, the following information was supplied by its accountant: Direct materials...
-
Feed water enters a steam boiler at 1 0 bar pressure and 8 0 \ deg C and the mass The flow rate is 5 0 0 0 0 kg / h . Since saturated steam is produced from this steam boiler at 1 0 bar pressure, If...
-
How far above the floor is the bottom mirror? and What is the length of the mirror? A person stands in front of a mirror which is attached to a vertical wall. The height of the person from ground...
-
IDENTIFY the main characteristics of the period: Objectives and use of economic policy instruments*, internal and external conditions that favored or affected the achievement of the objectives and...
-
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.
-
How closely related do you believe language and thought to be? During the production of Chapter 3 in this book, the authors and editors debated whether we should use the word "autistics" or the...
-
When did human language originate?
-
How do children learn language?
Study smarter with the SolutionInn App