3.Binary Categorical Variables: Weight Based on Height and Gender Categorical variables with only two categories (such as male/female or yes/no) can be used in a multiple regression model if we code the answers with numbers. We have looked at a simple linear model to predict Weight based on Height. What role does gender play? If a male and a female are the same height, do we predict the same weight for both of them? Is gender a significant factor in predicting weight? We can answer these questions by using a multiple regression model to predict weight based on height and gender. Using 1 for females and 0 for males in a new variable called GenderCode in the dataset StudentSurvey, we obtain the following output. The regression equation is Weight = -23.9 + 2.86Height - 25.5GenderCode Predictor Coef SE Coef T P Constant -23.92 27.36 -0.87 0.383 Height 2.8589 0.3855 7.42 0.000 GenderCode -25.470 3.138 -8.12 0.000 S = 22.8603   R - Sq = 48.2%   R - Sq (adj) = 47.9%   (a) What weight does the model predict for a male who is 5'5'' ( 65 inches)? For a female who is 5'5''? Round your answers to two decimal places. b) Which of the variables which are significant at the 5% level?

MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
icon
Related questions
icon
Concept explainers
Question
100%

3.Binary Categorical Variables: Weight Based on Height and Gender


Categorical variables with only two categories (such as male/female or yes/no) can be used in a multiple regression model if we code the answers with numbers. We have looked at a simple linear model to predict Weight based on Height. What role does gender play? If a male and a female are the same height, do we predict the same weight for both of them? Is gender a significant factor in predicting weight? We can answer these questions by using a multiple regression model to predict weight based on height and gender. Using 1 for females and 0 for males in a new variable called GenderCode in the dataset StudentSurvey, we obtain the following output.

The regression equation is Weight = -23.9 + 2.86Height - 25.5GenderCode

Predictor Coef SE Coef T P
Constant -23.92 27.36 -0.87 0.383
Height 2.8589 0.3855 7.42 0.000
GenderCode -25.470 3.138 -8.12

0.000

S = 22.8603   R - Sq = 48.2%   R - Sq (adj) = 47.9%

 

(a) What weight does the model predict for a male who is 5'5'' ( 65 inches)? For a female who is 5'5''? Round your answers to two decimal places.

b) Which of the variables which are significant at the 5% level?

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Correlation, Regression, and Association
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, statistics and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman