Question: 1 Problem 1 ( 2 0 points ) Suppose that the smoking status, ( X ) , has ( operatorname {

1 Problem 1(20 points)
Suppose that the smoking status, \( X \), has \(\operatorname{Bernoulli}(\mu)\) distribution, where the prior distribution for \(\mu \) is \(\operatorname{Beta}(1,10)\). We have interviewed a random sample of 50 people and found that 8 of them smoke regularly. Find the posterior distribution of \(\mu \) given the observed data. Plot the posterior distribution and find the \(95\%\) credible interval for \(\mu \). What is the point estimate for \(\mu \) based on this distribution? Compare this point estimate to the sample proportion, which is also commonly used as a point estimate for the population proportion. Suppose that we hypothesize that less than \(20\%\) of the population smoke. Use the posterior probability distribution to find the probability that our hypothesis is true.
2 Problem 2(20 points)
For the above example, suppose that we want to conduct another study so that we can obtain more data. Use the beta distribution you found as the posterior probability distribution in the above example as your prior. This reflects what we know about \(\mu \) before conducting the next study. Now suppose that in our next study, we have interviewed 30 people and found that 6 of them smoke regularly. Use the new data to obtain the posterior probability distribution. What are the mean and the \(95\%\) credible interval for \(\mu \)?
3 Problem 3(20 points)
In R-Commander, clickData \(\rightarrow \) Data in pacakges \(\rightarrow \) Read data set from an attached package, then select the iris data from the datasets package. The data include the measurements in centimeters of the variables sepal length and width and petal length and width, respectively, for 50 flowers from each of three species of iris. Use these measurements to divide the flowers into three groups. Make sure the options Print cluster summary and Assign clusters to the data set are checked. Use the centroids to explain how the three identified clusters are different. Between sepal and petal, which one seems to be more important in distinguishing the three clusters? Use the newly created variable that identifies the clusters (by default, R-Commander assigns the name KMeans to this variable) to create a contingency table where the rows are different clusters and the columns are different species. What is the connection between clusters and the type of flowers?
4 Problem 4(20 points)
We want to examine the relationship between body temperature Y and heart rate X. Further, we would like to use heart rate to predict the body temperature.
(a) Use the "BodyTemperature.txt" data set to build a simple linear regression model for body temperature using heart rate as the predictor.
(b) Interpret the estimate of regression coefficient and examine its statistical significance.
(c) Find the \(95\%\) confidence interval for the regression coefficient.
(d) Find the value of \( R^{2}\) and show that it is equal to sample correlation coefficient.
(e) Create simple diagnostic plots for your model and identify possible outliers.
(f) If someone's heart rate is 75, what would be your estimate of this person's body temperature?
5 Problem 5(20 points)
We believe that gender might also be related to body temperature and could help us to predict its unknown values.
(a) Use the "BodyTemperature.txt" data set to build a multiple linear regression model for body temperature using heart rate and gender as predictors.
(b) How much \( R^{2}\) did increase compared the above simple linear regression model?
(c) Explain the estimates of regression coefficients in plain language.
(d) Find the \(95\%\) confidence intervals for regression coefficients.
(e) If a woman's heart rate is 75, what would be your estimate of her body temperature? What would be your estimate of body temperature for a man whose heart rate is 75. "temperature","gender","rate"
96.3,1,70
96.7,1,71
96.9,1,74
97,1,80
97.1,1,73
97.1,1,75
97.1,1,82
97.2,1,64
97.3,1,69
97.4,1,70
97.4,1,68
97.4,1,72
97.4,1,78
97.5,1,70
97.5,1,75
97.6,1,74
97.6,1,69
97.6,1,73
97.7,1,77
97.8,1,58
97.8,1,73
97.8,1,65
97.8,1,74
97.9,1,76
97.9,1,72
98,1,78
98,1,71
\(98,1,74\)
\(98,1,67\)
1 Problem 1 ( 2 0 points ) Suppose that the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!