12.07.2015 Views

Course Notes - Department of Mathematics and Statistics

Course Notes - Department of Mathematics and Statistics

Course Notes - Department of Mathematics and Statistics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Multiple linear regression prediction• We can predict the TLC for someone given their height <strong>and</strong> agenow. For example, if we had someone who was 25 years old <strong>and</strong>160 cm.ŷ = −11.1565 − 0.0300age + 0.1084heightŷ = −11.1565 − 0.0300 × 25 + 0.1084 × 160ŷ = 5.3757Including binary predictor variables• The predictor variable SEX, has two categories (males <strong>and</strong> females)• We need a technique for including these binary variables in theregression models.• We will use a dummy variable.Dummy variables• A dummy variable is defined to take the value <strong>of</strong> 0 for one <strong>of</strong> thecategories <strong>and</strong> 1 for the other category.• For our total lung capacity example we will set{0 if femaled =1 if male• If there are two other predictors X 1 <strong>and</strong> X 2 then the fitted equationis then.ŷ = ˆβ 0 + ˆβ 1 x 1 + ˆβ 2 x 2 + ˆβ 3 d234

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!