\(Weight = -1.93*Parity + 120.07\)
First born babies have a predicted birth weight 1.93 ounces lower than babies who are not first born.
Since the p-value for the slope is >0.1 at the confidence level of 0.05, there is not a statistically significant relationship between average birth weight and parity.
\(AbsentDays = -9.11*Ethnicity + 3.10*Sex + 2.15*Learner + 18.93\)
Ethnicity - All else being constant, the predicted number of absent days for not aboriginal students is 9.11 days lower than aboriginal students.
Sex - All else being constant, the predicted number of absent days for males is 3.1 days higher than females.
Learner Status - All else being constant, the predicted number of absent days for slow learners is 2.15 days higher than average learners.
predicted = -9.11*0 + 3.10*1 + 2.15*1 + 18.93
observed = 2
predicted - observed
## [1] 22.18
Rsquared = 1 - (240.57/264.17)
RsquaredAdj = 1 - ((240.57/(146 - 3 - 1))/(264.17/(146-1)))
Rsquared
## [1] 0.08933641
RsquaredAdj
## [1] 0.07009704
Learner status should be removed because it increases the adjusted Rsquared when it is removed.
The lower the temperature, the higher the likelihood that there were damaged O-rings.
Intercept - The estimated number of O-ring failures when the temperature is zero is 11.66.
Temperature - As temperature increases by one degree, the estimated number of O-ring failures decreases by 0.2162.
$log(phat/1-phat) = -0.2162*Temperature + 11.663 $
The concerns regarding O-rings are justified because there is a statistically significant negative relationship between temperature and O-ring failures. This means that if the temperature is too low, it is very likely that there will be an O-ring failure.
p51 = 11.663 - (0.2162 * 51)
p53 = 11.663 - (0.2162 * 53)
p55 = 11.663 - (0.2162 * 55)
probCalc = function(px){
output = exp(px)/(1+ exp(px))
return(output)
}
probCalc(p51)
## [1] 0.6540297
probCalc(p53)
## [1] 0.5509228
probCalc(p55)
## [1] 0.4432456
logitcalc = function(x){
px = 11.663 - (0.2162 * x)
output = probCalc(px)
return(output)
}
logitx = seq(20,90,1)
logity = sapply(logitx,logitcalc)
plot(logitx,logity, type = "l")
Each predictor is linearly related to logit(p) - This is true and shown by the model output.
Each outcome is independent of all other outcomes - This assumption may be violated since subsequent launches are improved based off of previous launches. It is possible that over time, the technology of the launches are getting better and O-ring failures may be dependent on those improvements.