Question

24. (Correlation) A researcher wants to determine if there is a linear relationship between height and weight. The following
0 0
Add a comment Improve this question Transcribed image text
Answer #1

-----------------------------Please find R code

age=c(10,15,45,32,66,75,81,55,45)
height=c(4,5.7,5.5,5.2,6,5.2,5.1,5.9,5.8)
plot(age,height,main="Regression",col="red")
fit=lm(height~age)
fit$coefficients
abline(fit)
summary(fit)
cor(age,height)
cor.test(age,height)
qt(0.975,9-2) #Critical value

---------------------------------------------------------OUTPUT

summary(fit)

Call:
lm(formula = height ~ age)

Residuals:
Min 1Q Median 3Q Max
-1.0519 -0.4227 0.1408 0.4530 0.6042

Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 4.964121 0.455303 10.903 1.21e-05 ***
age 0.008780 0.008645 1.016 0.344
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Residual standard error: 0.6107 on 7 degrees of freedom
Multiple R-squared: 0.1284,   Adjusted R-squared: 0.003943
F-statistic: 1.032 on 1 and 7 DF, p-value: 0.3436

cor.test(age,height)

   Pearson's product-moment correlation

data: age and height
t = 1.0157, df = 7, p-value = 0.3436
alternative hypothesis: true correlation is not equal to 0
95 percent confidence interval:
-0.4012218 0.8259319
sample estimates:
cor
0.358399

> qt(0.975,9-2)
[1] 2.364624

-----------------------------------------------------------------------------

Scatter plot with line of best fit

height 4.0 4.5 50 5 60 이 age 10203040 506070 80 Regression

The line of best fit is :- Height = 4.964121 +  0.008780*(age)

Correlation is found to be 0.358399

P value from the output above is 0.3436,, hence we reject H0 and conclude correlation is not significant

Critical value at 7 degree of freedom with alpha 0.05 is  2.364624

Add a comment
Know the answer?
Add Answer to:
24. (Correlation) A researcher wants to determine if there is a linear relationship between height and...
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
  • Using excel, I need a simple linear regression equation to help define the relationship between height...

    Using excel, I need a simple linear regression equation to help define the relationship between height and weight using the table below. Using that equation, I need to predict the weight for a height of 5.75 inches. Height (in feet) Weight (in pounds) 4.8 115.10 4.9 117.11 5.0 120.11 5.1 123.11 5.2 126.10 5.2 129.12 5.3 132.12 5.4 135.12 5.5 139.13 5.6 142.13 5.7 146.12 5.7 150.13 5.8 154.15 5.9 159.15 6.0 164.16

  • Bivariate data for the quantitative variables x and y are given in the table below. These...

    Bivariate data for the quantitative variables x and y are given in the table below. These data are plotted in the scatter plot shown next to the table. In the scatter plot, sketch an approximation of the least squares regression line for the data. y 3.4 4.8 11+ 10+ х ? 3.2 5.9 4.4 3 8.7 6.4 2.7 10.5 5.1 7.6 7.3 6.2 2.8 5.5 1.4 6.6 7.0 6.9 5.8 5.7 3.2 8.1 6.2 4.2 5.2 9.5 2.2

  • 1. Find and interpret the coefficient of​ determination, r squared r2. Select the correct choice ...

    1. Find and interpret the coefficient of​ determination, r squared r2. Select the correct choice below and fill in the answer box within your choice. 2. Find and interpret the coefficient of​ determination, r squared r2. Select the correct choice below and fill in the answer box within your choice. The quality of the crange juice produced by a cerlain manufaclurer is constantly monitored. Data collected on the swectness index of an orange juice sample and amount of water-soluble pectin...

  • Please show all work AND any calculator functions. The table below summarizes data of heights and...

    Please show all work AND any calculator functions. The table below summarizes data of heights and weights of 8 randomly selected adults. Use this information to answer parts a) – h). Height (x) in inches 5.2 5.6 5.8 5.9 5.4 6.1 6.0 5.7 Weight (y) in pounds 119 136 155 185 135 202 194 165 a) Test the claim ρ ≠ 0. Use α = 0.01. • State the hypotheses and label the claim. • State the significance level (α)....

  • 1. A researcher is interested to learn if there is a linear relationship between the hours...

    1. A researcher is interested to learn if there is a linear relationship between the hours in a week spent exercising and a person's life satisfaction. The researchers collected the following data from a random sample, which included the number of hours spent exercising in a week and a ranking of life satisfaction from 1 to 10 being the lowest and 10 the highest). Hours of Exercise Life Satisfaction Participant 3 14 14 10 51 71 81 918 107 9...

  • Correlation/Linear Regression (20-25) The scatterplot below shows the drop height (in feet) and speed (in mph)...

    Correlation/Linear Regression (20-25) The scatterplot below shows the drop height (in feet) and speed (in mph) of 75 rollercoasters. Answer the following questions using this data. Speed 80 70 60 50 40 50 100 150 200 250 300 Drop 20. Describe the scatterplot above. Be sure to use the three key descriptors 21. Which of the following is the most likely value of the correlation coefficient (r) for this data? (Circle one) A)r0.523 B)r 0.187 D)r 0.9097 D)r0.875 22. Which...

  • A psychologist wants to determine if there is a linear relationship between the number of hours...

    A psychologist wants to determine if there is a linear relationship between the number of hours a person goes without sleep and the number of mistakes he/she makes on a simple test. The following data is recorded. Determine the equation of the regression line and graph the line on a scatter plot. Hours without Sleep, x Number of Mistakes, y x y 32 6 38 8 48 13 24 5 46 7 35 6 30 5 34 8 42 12...

  • Math 243 Activity #4 Correlation Names Do the following problems with your team. Show all your...

    Math 243 Activity #4 Correlation Names Do the following problems with your team. Show all your work. This activity is due at the next class meeting. Zoologists wish to study the feeding behavior of a species of blackbream fish. They record the number of 1) strikes of randomly selected fish as they feed off the bottom of an aquarium. This data is shown with the age of the fish (in days) in the table given below. Week Number of Strikes...

  • Simple Linear regression 1. A researcher uses a simple linear regression to measure the relationship between...

    Simple Linear regression 1. A researcher uses a simple linear regression to measure the relationship between the monthly salary (Salary measured in dollars) of data scientists and the number of years since being awarded a Master degree (Master Degree). A random sample of 80 observations was collected for the analysis. A researcher used the econometric model which has the following specification Salary,-β0 + β, Master-Degree, + εί, where i = 1, , 80 The (incomplete) Excel output of equation (1)...

  • You wish to determine if there is a positive linear correlation between the age of a...

    You wish to determine if there is a positive linear correlation between the age of a driver and the number of driver deaths. The following table represents the age of a driver and the number of driver deaths per 100,000. Use a significance level of 0.05 and round all values to 4 decimal places. Driver Age 18 65 72 33 74 66 51 Number of Driver Deaths per 100,000 25 32 21 33 19 18 23 Ho: p = 0...

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