Question: Write R code for each of the following: 1) The following bivariate data is obtained from a sample of 10 households whose monthly income (in

Write R code for each of the following:

1) The following bivariate data is obtained from a sample of 10 households whose monthly income (in Rupees) and their electricity consumption (in units). Examine whether the monthly income and the electricity consumption for the households are correlated at 5% & 10% level of significance. Also, plot the scatter diagram.

Income 12150 16500 17610 10800 16300 15300 14800 16500 14800 16800

Electricity Consumption 165 174 180 170 185 155 168 188 175 185

2) The following data represent the relationship between the number of alignment errors and the number of missing rivets for 10 different aircraft.

(a) Plot a scatter diagram.

(b) Estimate the regression coefficients.

(c) Test the hypothesis about whether the regression coefficient between the number of alignment errors and the number of missing rivets is zero at = 1% and 5%.

Number of Missing Rivets 13 15 10 22 30 7 25 16 20 15

Number of Alignment Errors 7 7 5 12 15 2 13 9 11 8

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 Mathematics Questions!