Docsity

A Case Study in Modelling - Introduction to Statistics | STAT 2, Study notes of Statistics

Partial preview of the text

Download A Case Study in Modelling - Introduction to Statistics | STAT 2 and more Study notes Statistics in PDF only on Docsity!

STAT 2

Lecture 14:

A case study in modelling

Residuals โ— True value of y minus predicted value of y โ— Vertical distance from regression line โ— Plot residuals to check for patterns, outliers, homo- or heteroscedasticity

Normal distribution for residuals โ— Draw histogram of residuals to check for a normal distribution โ— If normal, can use new SD (RMS error) to find probabilities or percentiles of y given x

Today โ— Modelling margins in WNBA games โ— Some words about the midterm

Educational object of the exercise โ— Introduce you to techniques you can research in more detail later, should you ever need them โ— Show you some of the problems involved in building regression models in real life โ— Much of this is nonexaminable

Statistical object of the exercise โ— Predict WNBA margins based on past results (Margin = home score โ€“ away score) โ— Find the accuracy of predictions

What data do we want? โ— Aim: To predict margins for the rest of the current (2008) season โ— Relevant data will be 2008 WNBA scores โ— We'll use scores up until the end of June to build our model; we'll set aside July's scores to test our predictions later

A note on data entry โ— Getting the data into a usable form is often the most time-consuming part of the investigation โ— Need to check carefully that data is entered correctly e.g. are averages the same as those calculated by the WNBA?

II

Exploring the data

Margin For the 122 games in May and June: โ— Margin has mean 3.5 (i.e. home team wins by 3.5 points on average) and median 5 โ— SD is 11.3 points โ— 68 margins are greater than zero, i.e. home team wins 64% of games

Choosing a predictor Suppose we wish to create a single x -variable to predict margin. What should it be? โ— Points โ€“ doesn't account for number of games โ— Points per game โ€“ doesn't account for defence

Average margin โ— Can calculate average margin for each team e.g. Atlanta Dream โ— In 15 games, scored 1115 points, conceded 1308 points โ— Average margin = (1115-1308)/ = -12.

Average margin โ— Do we use average margin for all games before the one we're trying to predict? โ— Or do we use average for all games other than the one we're predicting? (Can't use the game we're predicting in the predictor, else it's circular)

Choosing a predictor โ— Average margin of home team? โ— Average margin of away team? โ— Average margin of home team minus average margin of away team?