Regression Analysis of Maximum Heart Rate vs Age
A recent study proposes that the maximum heart rate of an individual is determined by their age, using the equation: Max Rate = 220 - Age. To empirically validate this equation, 15 individuals of different ages were tested for their maximum heart rate. The collected data includes ages and corresponding maximum heart rates, which can be entered into R for further analysis.
The first task involves plotting the regression line of the maximum heart rate on age using the provided data. This involves fitting a linear model to the data and visualizing the relationship between age and maximum heart rate. The results of this plot will show how well the data points align with the proposed equation and provide insights into the accuracy of the model.
Additionally, a researcher has suggested that the slope of the regression line should be -1. To test this hypothesis, a p-value will be calculated using a suitable test statistic. The hypothesis test will determine whether the observed slope significantly differs from -1, and comments will be made on the validity of the researcher's suggestion based on the test results.
R for Actuarial Students - CS1B Paper C - Question 4 - Regression Analysis