Question

1. BEFORE you start working on this problem, enter the following commands: set.seed (2) height = 1:50 weight rbeta(50, 3, 7)

0 0
Add a comment Improve this question Transcribed image text
Answer #1

If we run the given code in R and then fit a regression model to it, using height as the explanatory variable and weight as the response,the following output is obtained:

Coefficients:
(Intercept) height
10.3081578 -0.0009283

The R code is:

set.seed(2)
> height <- 1:50
> weight <- rbeta(50,3,7)+10
> model <- lm(weight~height)
> model

Therefore, from the output the regression equation is:

weight = 10.3081578 + (-0.0009283)height

Hence if height = 25,

weight = 10.3081578 + (-0.0009283) * 25

= 10.285

The correct answer is: A. 10.285

Add a comment
Know the answer?
Add Answer to:
1. BEFORE you start working on this problem, enter the following commands: set.seed (2) height =...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Children's height as a function of their age has been researched so extensively that we can...

    Children's height as a function of their age has been researched so extensively that we can consider known results to describe the relationship for all children in the United States. For instance, between the ages of 13 and 15, population mean height for teenage males (in inches) satisfies μy = 22 + 3x, where x is age in years. Spread about the line is 3.1 inches. (a) Notice that the slope of the regression line for the population is β1...

  • Response Questions Part A I& B Measuring tree height is not an easy task. How well...

    Response Questions Part A I& B Measuring tree height is not an easy task. How well does trunk diameter predict tree trees in an old-growth forest in Canada provides us with the information: The mean tree height is 15.6 meters (m) with standard deviation 13.4m; the mean diameter, measured at "breastheight (1.3m above ground), is 23.4 centimeters (cm), and the standard deviation is 23.5 cm. The correlation between the height and diameter is very high:r-0.96 A survey of 958 live...

  • Question 1 Marmots are large, stocky animals. Yellow-bellied marmots are easily identified by the brownish fur...

    Question 1 Marmots are large, stocky animals. Yellow-bellied marmots are easily identified by the brownish fur on their back coupled with their yellow to orange undersides. Males are larger than females They usually weigh about ten pounds, and grow to about 30 inches. The mean length of 50 male marmots was found to be 10.74 inches with a standard deviation of 6.44 inches. The mean weight was found to be 7.7 pounds with a standard deviation of 2.64 pounds (a)...

  • Before you start For this homework, we will need to import some libraries. You need to...

    Before you start For this homework, we will need to import some libraries. You need to execute the following cell only once; you don't need to copy this in every cell you run. In [ ]: import pandas import numpy from urllib.request import urlretrieve from matplotlib import pyplot %matplotlib inline ​ #This library is needed for testing from IPython.display import set_matplotlib_close set_matplotlib_close(False) Introduction In this homework, you will work with data from the World Bank. The subject of study is...

  • 3. (20 pts) Do not use a computer to complete the answers for this problem. Show your work in all...

    Please solve the problems (d),(e),(f),(g) 3. (20 pts) Do not use a computer to complete the answers for this problem. Show your work in all problems. Consider the following data: 2 -2 2 1 0 4 0 2 10 0 -2 8 Consider the multiple regression model where ci ~ iid N(0, σ*) for i 1, 2, 3, 4, 5. (a) Fill in the values for response vector, design matrix and coefficient vector: X- (b) Find the vector of least...

  • According to the World Health Organization, obesity has reached epidemic proportions globally. While obesity has generally been linked with chronic disease and disability, researchers argue that i...

    According to the World Health Organization, obesity has reached epidemic proportions globally. While obesity has generally been linked with chronic disease and disability, researchers argue that it may also affect wages. Body Mass Index (BMI) is a widely used weight measure that also adjusts for height. A person is considered normal weight if BMI is between 18.5 to 25, overweight if BMI is between 25 to 30, and obese if BMI is over 30. The accompanying table shows a portion...

  • Homework 4 Use the hand span data that we collected in class for homework Suppose you...

    Homework 4 Use the hand span data that we collected in class for homework Suppose you want to buy someone a pair of love, but you do not know their love size. Usually, we do have a pretty good idea of the person's height. Let' asume that the right hand span is a rood indicator of the love size. So let find the best predictor of right hand span be on the person's height. Once we can predict the right...

  • Before you start doing this code Read carefully there is a format that you have to...

    Before you start doing this code Read carefully there is a format that you have to follow HERE IS THE FORMAT YOU MUST USE FOR HW #2 - NOTE THE IF ELSE IF...not IF IF IF HW #2 Format : Instructions: This program will generate some information for a user about interplanetary travel (pretend we can travel easily to other planets for this problem). This program will perform calculations concerning weight on various planets as well as travel time between...

  • Problem Value: 1 point(s). Problem Score: 62%. Attempts Remaining: Unlimited. (1 point) From 1995 to 2012,...

    Problem Value: 1 point(s). Problem Score: 62%. Attempts Remaining: Unlimited. (1 point) From 1995 to 2012, researchers surveyed the number of honeybee colonies in order to determine whether the population changed over time. The scatterplot below shows the relationship between these two variables along with the least squares fit. Round all calculated results to 4 decimal places. 2700 2600 Colonies 2500 2400 2300 1995 2000 2010 2005 Year 1. The relationship between year and number of honeybee colonies is negative....

  • Given are five observations for two variables, 7 and y. 2 1 3 4 S M...

    Given are five observations for two variables, 7 and y. 2 1 3 4 S M 3 7 5 11 14 The estimated regression equation is y = 0.2 +2.67 a. Compute the mean square arror using the following equation to 3 decimals), - MSE SSE - 2 b. Compute the standard error of the estimate using the following equation (to 3 decimals). 5 VMSE SSE N-2 c. Compute the estimated standard deviation by using the following equation (to 3...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT