A triathlon consisting of swimming, cycling, and running is one of the more strenuous amateur sporting events. The article Cardiovascular and Thermal Response of Triathlon Performance (Medicine and Science in Sports and Exercise, 1988: 385389) reports on a research study involving nine male triathletes. Maximum heart rate (beats/min) was recorded during performance of each of the three events. For swimming, the sample mean and sample standard deviation were 188.0 and 7.2, respectively. Assuming that the heart rate distribution is (approximately) normal, construct a 98% CI for true mean heart rate of triathletes while swimming.

#logistic regression analysis #the following data is about hiring status of 10 people #hiring status takes 0 and 1, 1 is currently hired and 0 is not hired. #independent variable is their previous year's salary hiring.status=c(rep(0,6),rep(1,4)) salary=c(61,52,65,35,42,70,67,73,90,88) #please predict the hiring status of an individual who earned 41k in last year #our dependent variable is a binary response #I will apply logistic regression m1=glm(hiring.status~salary,family="binomial") log.odds.new = -25+0.37*41 #predicting for individual who earned 41k hiring.status.new = 0 if(sign(log.odds.new)==1) hiring.status.new =1 hiring.status.new # we predict this individual is not hired #misclassification rate new.data = rbind(c(rep(1,10), salary)) prediction