Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Rstudio Code is needed This time you must answer both questions! Question 1 A hospital ER manager has been monitoring the admissions to her clinic

Rstudio Code is needed

This time you must answer both questions!

Question 1

A hospital ER manager has been monitoring the admissions to her clinic over the course of a week. The data she collected is found in the clinic.csv file in your data folder. There were 600 admissions to the ER that week.

The previous year she calculated the average percentage of admissions in the four time blocks: - Morning 15% - Afternoon 30% - Evening 35% - Night 20%

Is there sufficient evidence in the recent data to indicate the proportions have changed?

Question 2

A promoter has gotten a state to consider legalizing online betting. The state took an opinion poll and the data is found in the gambling.cvs file in your data folder.

Is there a difference between poll participants who are and are not gamblers on whether gambling should be online or not online?

Follow the Downey's Infer process steps to answer the questions fully.

These are the generalized steps. You will need most/all depending upon how you choose to answer the question.

  • Step 1: Calculate a sample statistic, or "delta," . This is the main measure you care about: the difference in means, the average, the median, the proportion, the difference in proportions, etc.
  • Step 2: Use simulation to invent a world where is null. Simulate what the world would look like if there was no difference between two groups, or if there was no difference in proportions, or where the average value is a specific number.
  • Step 3: Look at in the null world. Put the sample statistic delta in the null world and see if it fits well.
  • Step 4: Calculate the probability that could exist in null world. This is the p-value, or the probability that you'd see a at least that high in a world where there's no difference.
  • Step 5: Decide if is statistically significant. Choose some evidentiary standard or threshold for deciding if there's sufficient proof for rejecting the null world. Standard thresholds (from least to most rigorous) are 0.1, 0.05, and 0.01.

https://drive.google.com/file/d/11rqrYw0c_RB9RcPfISVuhAITDCW5qTcD/view?usp=sharing (Gambling.csv)

https://drive.google.com/file/d/1SCaX3YWzTACknTy_UjgPgiVlWVd0eFX5/view?usp=sharing (Clinic.csv)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions