You work in a data science team that tries to model the ED demands in the Perth area
Ask Expert

Be Prepared For The Toughest Questions

Practice Problems

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

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.

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:

http://data.gov.au/dataset/emergency-department-admissisons-and-attendances

The daily temperature and precipitation data for the region accessible through the NOAA data APIs.

https://www.ncdc.noaa.gov/cdo-web/webservices/v2

Of particular relevance is the “Global Historical Climatology Network - Daily” data:

https://www.ncdc.noaa.gov/ghcn-daily-description

https://www1.ncdc.noaa.gov/pub/data/ghcn/daily/readme.txt

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 https://www.ncdc.noaa.gov/cdo-web/, 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? (You may find some inspiration here http://bit.ly/2p5qLH6 .) 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.

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 4 Heatwaves and ED demands

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

http://bit.ly/2kTE4cu

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.

https://dx.doi.org/10.3390%2Fijerph120100227

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 (5 points)

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?

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?

Hint
ComputerData science offers meaningful information created on large amounts of multifaceted data or big data. Data science, links different fields of work in statistics and computation to infer data for decision-making functions. Data made from ED provide quick assessment and management of life-threatening illnesses...

Know the process

Students succeed in their courses by connecting and communicating with
an expert until they receive help on their questions

1
img

Submit Question

Post project within your desired price and deadline.

2
img

Tutor Is Assigned

A quality expert with the ability to solve your project will be assigned.

3
img

Receive Help

Check order history for updates. An email as a notification will be sent.

img
Unable to find what you’re looking for?

Consult our trusted tutors.

Developed by Versioning Solutions.