What are the predictor variables

Assignment Help Programming Languages
Reference no: EM132305039

In this assignment, you will apply your learning to further analyse the 2013-2014 emergency department (ED) demands at Perth and its connection with weather events. This activity builds on Assignment 1; you may want to review your assignment 1 solution and identify any reusable code. Please start early so that you can identify any skill/knowledge gap and seek support from the teaching staff and other students.

This assignment contains two optional tasks (Task 3.2 and 4.3). You should complete the prescribed tasks before attempting the optional ones.

Application scenario

You work in a data science team that tries to model the ED demands in the Perth area to improve the demand prediction.

For your convenience, you are provided with the following data links, but you are encouraged to include other relevant data for your analyses.

The emergency departments admissions and attendances data set provided by the Department of Health of Western Australia:
The daily temperature and precipitation data for the region accessible through the NOAA data APIs.

Task 1: Source weather data

From Assignment 1, you have processed data for the ED demands. We still need to find local weather data from the same period. You are encouraged to find weather data online. Besides the NOAA data, you may also use data from the Bureau of Meteorology historical weather observations and statistics. (The NOAA Climate Data might be easier to process.)

Answer the following questions:

Which data source do you plan to use? Justify your decision.

From the data source identified, download daily temperature and precipitation data for the region during the relevant time period. (Hint: If you download data from NOAA you need to request an NOAA web service token for accessing the data.)

Answer the following questions:

  • How many rows are in the data?
  • What time period does the data cover?

Task 2: Model planning

Careful planning is essential for a successful modelling effort. Please answer the following planning questions.

How will the final model be used? How will it be relevant to the overcrowding problems at our EDs? Who are the potential users of your model?

What relationship do you plan to model or what do you want to predict? What is the response variable? What are the predictor variables? Will the variables in your model be routinely collected and made available soon enough for prediction?

As you are likely to build your model on historical data, will the data in the future have similar characteristics?

What statistical method(s) will be applied to generate the model? Why?

Task 3: Model the ED demands

We will start with simple models and gradually improve them. We will focus on the ED demand variable(s) that you defined in Assignment 1. Let's denote it Y.

Task 3.1: Models for a single facility

Randomly pick a hospital from the ED dataset.

Which hospital do you pick?

Fit a linear model for Y using date as the predictor variable. Plot the fitted values and the residuals. Assess the model fit. Is a linear function sufficient for modelling the trend of Y? Support your conclusion with plots.

As we are not interested in the trend itself, relax the linearity assumption by fitting a generalised additive model (GAM). Assess the model fit. Do you see patterns in the residuals indicating insufficient model fit?

Augment the model to incorporate the weekly seasonality. Compare the models using the Akaike information criterion (AIC). Report the best-fitted model through coefficient estimates and/or plots.

Analyse the residuals. Do you see any remaining correlation patterns among the residuals?

Is your day-of-the-week variable numeric, ordinal, or categorical? Does the decision affect the model fit?

Task 3.2: Models for all hospitals

Now fit a GAM for each hospital.

Use the map function to rerun your Task 2.1 code on all nine Perth hospitals.

Plot the trends and residuals. What patterns do you see? Given what you found in Assignment 1, do you gain any new understanding of the ED demands?

Task 4 Heatwaves and ED demands

The connection between heatwaves and the ED demands is widely reported, as in this news article.

Article - 'Going to be a big day': Heatwave to strain hospitals, power supplies in NSW By Peter Hannam and Kate Aubusson

In this task, you will try to measure the heatwave and assess its impact on the ED demands.

Task 4.1: Measuring heatwave

John Nairn and Robert Fawcett from the Australian Bureau of Meteorology have proposed a measure for the heatwave, called the excess heat factor (EHF). Read the following article to understand the definition of the EHF.

Use the NOAA data to calculate the daily EHF values for the Perth area during the relevant time period. Plot the daily EHF values.

Task 4.2: Models with EHF

Use the EHF as an additional predictor to augment the model(s) that you fitted before. Report the estimated effect of the EHF on the ED demand. Does the extra predictor improve the model fit? What conclusions can you draw?

(Optional task) Task 4.3: Extra weather features

Can you think of extra weather features that may be more predictive of ED demands? Try incorporating your feature into the model and see if it improves the model fit.

Task 5: Reflection

Answer the following questions:

We used some historical data to fit regression models. What are the limitations of such data, if any?

Regression models can be used for 1) understanding a process, or 2) making predictions. In this assignment, do we have reasons to choose one objective over the other? How would the decision affect our models?

Overall, have your analyses answered the questions that you set out to answer?

Attachment:- assignment instructions.rar

Reference no: EM132305039

Questions Cloud

Compare the role of a correctional administrator : Prisons and jails are both classified as correctional facilities, however their missions and day-to-day operations can vary significantly.
The value proposition of smart wool socks : On which of the following is the value proposition of Smart Wool socks most focused?
Major categories of grievances : Define and explain the differences between the 3 major categories of grievances?
Fundamental principle of accounting crucial : Describe five fundamental principle of Accounting crucial for effective management decision making
What are the predictor variables : How will the final model be used? How will it be relevant to the overcrowding problems at our EDs? Who are the potential users of your model?
Determine whether or not a contract has been formed : Prepare an APA formatted cover sheet with your memorandum. Do not forget to indicate which unit the Assignment is for.
What are some managerial strategies : What are some managerial strategies that are used in public administration and that impact public service.
Explains why customer expectations and perceptions : Which of the following explains why customer expectations and perceptions of a purchase do not align?
Roles of leaders and managers in business : Evaluate the roles of leaders and managers in business?

Reviews

Write a Review

Programming Languages Questions & Answers

  Deck of cards programming class

Write a complete program using "ECLIPS" that implements the functionality of a deck of cards. In writing your program, use the provided DeckDriver and Card classes shown below. Write your own Deck class so that it works in conjunction with the two..

  List the contents of the current directory

List the contents of the current directory. Create the directory structure and create the files as defined in the previous Individual Project.

  Grade book program

Grade Book Program

  Write a program that will generate an array

Write a program that will generate an array

  Write the sentence in symbolic form

Identify the primitive statements in the sentence "Plate tectonics explains mountain building and continental drift." Assign variable names to the primitive statements, and then write the sentence in symbolic form. (There is more than one primitiv..

  Design bank account class with data members-member functions

Design the Bank Account class with suitable data members and member functions - think of attributes or features of a bank account - think of kind of data (and actions) you require to open account.

  Good coding practices with a meaningful coding example

Documentation of good coding practices with a meaningful coding example, Avoid creating unnecessary objects and always prefer to do Lazy Initialization:

  Write a script that inputs a numeric check amount

Write a script that inputs a dollar amount to be printed on a check, then prints the amount in check protected format with leading asterisks if necessary. Assume that nine spaces are available for printing the amount.

  What graphical element appears on a shortcut icon

Which of the following locations is not a valid place from which to delete a file and send it to the Recycle Bin?

  A method to calculate the value of the entire inventory

Create a method to calculate the value of the entire inventory. Create another method to sort the array items by the name of the product.

  Write a program that can be used to assign seats for plane

Write a program that can be used to assign seats for a commercial airplane. The airplane has 13 rows, with six seats in each row. Rows 1 and 2 are first class. 3-7 are business rows. 8-13 are economy rows

  Create the external javascript file.

Using a text or HTML editor modify your lab5xx.htm page (see above) and save it as lab6xx.htm.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd