Assignments

1. GPA score
The data for this assignment are listed in the Excel file GPA score.
The admissions officer of a university is trying to develop a formal system of deciding which students to admit to the university. She believes that determinants of success include the standard variables: high school grades and SAT scores. However, she also believes that students who have participated in extracurricular activities are more likely to succeed than those who have not. To investigate the issue, she randomly sampled 100 fourth-year students and recorded the following variables (see the Excel file):
Univ GPA
GPA for the first 3 years at the university (range 0-12)
HS GPA
GPA from high school (range 0-12)
SAT
SAT score (range: 400-1600)
Activities
Numbers of hours on average spent per week in organized extracurricular activities in the last year of high school.
a. Determine b_0,b_1,b_2,b_3 in the following regression equation:
Univ GPA = b_0+b_1\cdot HS GPA+b_2\cdot SAT+b_3\cdot Activities
and generate the usual statistics.
b. What is the coefficient of determination and interpret its value.
c. Test the overall validity of the model.
d. Interpret each of the coefficients of the independent variables.
e. Predict with 95% confidence the GPA for the first 3 years of university for a student whose high school GPA is 10, whose SAT score is 1200 and who worked an average of 2 hours per week on organized extracurricular activities in the last year of high school.
f. Estimate with 90% confidence the mean GPA for the first 3 years of university for all students whose high school GPA is 8, whose SAT score is 1100, and who worked an average of 10 hours per week organized extracurricular activities in the last year of high school.

Solution
a. b_0=0.721; b_1=0.611; b_2=0.00135; b_3=0.0462. See table below.
b. The coefficient of determinations R^2=0.2882; so 28.82% of the variation in university GPAs is explained by the model. The model does not fit the data very well.
c. H_0: \beta_1=\beta_2=\beta_3=0. At least one \beta_i is not equal to zero. F=12.96, p-value =0. There is enough evidence to reject H_0 and thus conclude that the model is valid.
d. b_1=0.611; for each additional point of HS GPA Univ GPA increases on average by 0.611 provided that the other variables remain constant. Since p=0, HS GPA is very relevant to University GPA.
b_2=0.00135; for each additional point of SAT Univ GPA increases on average by 0.00135 provided that the other variables remain constant. Since p>0.05, we may conclude that the SAT score may not be relevant for University GPA.
b_3=0.0462; for each additional hour of Activities Univ GPA increases on average by 0.0462 provided that the other variables remain constant. Since p>0.05, we may conclude that the number of hours of Activities may not be relevant for University GPA.
e. See table below. We predict that the student’s Univ GPA will fall between 4.45 and 12.00 (12 is the maximum).
f. See table below. The mean Univ GPA is estimated to lie between 6.90 and 8.22.

SUMMARY OUTPUT     
Regression Statistics    
Multiple R0.5369    
R Square0.2882    
Adjusted R Square0.2660    
Standard Error2.0302    
Observations100    
ANOVA     
 dfSSMSFp
Regression3160.2353.4112.960.0000
Residual96395.704.12  
Total99555.93   
 CoefficientsStandard Errort Statp 
Intercept0.7211.870.390.7006 
HS GPA0.6110.1016.060.0000 
SAT0.001350.001350.001440.3485 
Activities0.04620.06410.720.4720 
Prediction interval  
  Univ GPA
Predicted value8.55
Prediction interval 
Lower limit4.55
Upper limit12.65
Interval Estimate of Expected Value 
Lower limit 7.79
Upper limit 9.31
Prediction interval  
  Univ GPA
Predicted value7.56
Prediction interval 
Lower limit4.12
Upper limit10.99
Interval Estimate of Expected Value 
Lower limit 6.90
Upper limit 8.22

2.Delivery trucks
The data for this assignment are listed in the Excel file Delivery trucks.
Delivery trucks operating from a central warehouse regularly resupply stores. In an analysis of a chain’s operations, the general manager wanted to determine the factors that are related to how long it takes to unload delivery trucks.
A random sample of 50 deliveries to one store was observed. The times (in minutes) to unload the truck, the total number of boxes, the total weight (in hundreds of pounds) of the boxes and a code indicating the time of day (morning, early afternoon, late afternoon) were recorded.
a. First determine the multiple regression equation with the total number of boxes and the total weight as independent variables. Give the coefficients of both variables.
b. How well does the model fit the data? Is the model valid?

The general manager realized that another variable, the time of day, may affect unloading time. He recorded the following codes: 1 = morning, 2 = early afternoon, and 3 = late afternoon. These data can be found in the column Codes. Since these nominal variables are hard to interpret in a regression model, he introduced indicator or dummy variables.

c. Give the definition of the indicator variables based on Codes.
d. Determine the multiple regression equation with the total number of boxes, the total weight and the indicator variables as independent variables.
e. Compare the results of this model with those of the model in a. with respect to the fit of data and the validity. Which model would you prefer?
You need to use Excel.

Solution.
a. The multiple regression equation is: Time = -28.43+0.60 \cdot Boxes + 0.37\cdot Weight.
.b.The coefficient of determination equals R^2=0.8072. So, we may conclude that the model fits the data very well. Furthermore, F=98.37 with a p-value \approx0, so the model is a linear model and thus valid.
c. Morning = 1 if Code = 1, Morning = 0 if not. Early afternoon = 1 if Code = 2, Early afternoon = 0 if not. Late afternoon does not need to be defined, since Morning = 0 and Early afternoon = 0 implies Late afternoon.
d. Now, the multiple equation becomes: Time = -29.72 + 0.66 \cdot Boxes + 0.35\cdot Weight - 6.76\cdot Morning + 6.48 \cdot Early afternoon.
e. Now R^2=0.95. So, we may conclude that the model fits the data even better. Furthermore, F=197.66 with a p-value \approx0, so the model is a linear model and thus valid. This enhanced model performs much better than the model in a. and is to be preferred.

3. Longevity
The data for this assignment are listed in the Excel file Longevity.
Life insurance companies are keenly interested in predicting longevity of their customers (i.e., how long will their customers live) because their premiums and profitability depend on such numbers. An actuary for one insurance company gathered data from 100 recently deceased male customers. He recorded the age at death of the customer plus the ages at death of his mother and father, the mean ages at death of his grandmothers, and the mean ages at death of his grandfathers.
a. Perform a multiple regression analysis on these data and give the regression equation.
b. The F-test concludes about the validity of the model. Formulate the null (H_0) and alternative (H_1) hypotheses for this F-test. Give the results and explain why the model is or is not valid.
c. Interpret the coefficients of the regression equation.
d. Test the coefficients of the regression equation and explain the results.
e. Is the normality requirement satisfied?
f. Is the variance of the error variable constant?
g. Would you expect multicollinearity to be a problem?

Solution.
a. See the table below.
Longevity =3.24+0.451\cdot Mother +0.411\cdot Father +0.017\cdot Gmothers +0.087\cdot Gfathers
b. The null and alternative hypotheses are: H\0: \beta_i=0; at least one \beta_i is not equal to zero. We find: F=67.97 and p-value =0. There is overwhelming evidence to conclude that the model is valid.
c. b_0=3.24; intercept, not really useful since there are no data available around zero ages.
b_1=0.451; for each one year increase in the mother’s age the customer’s age increases on average by 0.451 year provided the other variables are constant (which may not be possible because of multicollinearity).
b_2=0.411; for each one year increase in the father’s age the customer’s age increases on average by 0.411 year provided the other variables are constant.
b_3=0.017; for each one year increase in the grandmother’s mean age the customer’s age increases on average by 0.017 year provided the other variables are constant.
b_4=0.087; for each one year increase in the grandfather’s mean age the customer’s age increases on average by 0.087 year provided the other variables are constant.
d. The null and alternative hypotheses for each of these coefficients are H_0: \beta_i=0 and H_1: \beta_i\neq0
Mothers: t=8.27, p=0
Fathers: t=8.26, p=0
Grandmothers: t=0.25, p=0.8028
Grandfathers: t=1.32, p=0.1890
The ages of mothers and fathers are linearly related to the ages of their children. The other two variables are not.
e. The histogram for Frequency vs. Standard Residuals shows a normal distribution with mean approximately 0, so the normality requirement is satisfied.
f. The plot of Residuals vs. Predicted values shows that the variance of the error variable is constant.
g. The correlation matrix (Data Analysis) between Father, Mother, Gmothers and Gfathers coefficients shows correlations, some of which may cause problems with the -tests.

SUMMARY OUTPUT     
Regression Statistics    
Multiple R0.8608    
R Square0.7411    
Adjusted R Square0.7301    
Standard Error2.66    
Observations100    
ANOVA     
 dfSSMSFp
Regression41930482.3867.970.0000
Residual956747.10  
Total992604   
 CoefficientsStandard Errort Statp 
Intercept3.245.420.600.5512 
Mother0.4510.05458.270.0000 
Father0.4110.04988.260.0000 
Gmothers0.01660.06610.250.8028 
Gfathers0.08690.06571.
32
0.1890 

4. Finger length
The data for this assignment are listed in the Excel file Finger length.
A computer dating service typically asks for various pieces of information such as height, weight, income and so on. One such service requested the length of index fingers. The only plausible reason for this request is to act as an indication of the height. Women have often complained that men lie about their height. If there is a strong relationship between heights and index fingers, the information can be used to “correct” false claims about heights.
To test the relationship between the two variables researchers gathered the heights and lengths of index fingers (in centimeters) of 121 male (Gender=1) and female (Gender=0) students.
a. Compute the formula of the regression line without gender. What can you conclude about how well the model fits the data and whether the model is valid? Explain your answer.
b. Is there sufficient evidence to infer that height and length of index fingers are linearly related.
c. Now also include gender in the model and see the difference in expected height.

Solution.
a. Use Excel and get the formula of the regression line: Height =119.220 +7.271\cdot Finger. The model fits the data poorly R^2=32.45. The model is valid because the F-value is large with a p-value <0.0001 which tells you that it is highly certain that there is a linear relation between Height and Finger length.
b. Excel gives as a result that the correlation between both variables is r=0568644, There is a moderately strong positive correlation.
c. The gender makes a great difference. Take the same finger length and see the difference in height between males and females. If the finger length is 8.2 cm then a male is assumed to be 180 cm tall and a female only 169 cm.

0
Web Design BangladeshWeb Design BangladeshMymensingh