Question

In: Electrical Engineering

1)      Do linear regression (includes line, r-coefficient) for data taken from a thermocouple during calibration for:...

1)      Do linear regression (includes line, r-coefficient) for data taken from a thermocouple during calibration for:

Voltage (Volts)

Temperature (ºC)

0.032

0

0.063

10

0.16

25

0.29

50

0.36

63

0.51

75

0.63

100

Solutions

Expert Solution

Hello,
          Please find the answer attached as under. Please give a thumbs up rating if you find the answer useful! Have a rocking day ahead!

NOTE: I have used Matlab to do the regression. Please find the code and output below:

Matlab Code:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% linear regression on set of data

Y = [0.032;0.063;0.16;0.29;0.36;0.51;0.63];         % input data
X = [1 0;1 10;1 25;1 50;1 63;1 75;1 100];
B = X\Y;                                            % calculating regression coefficient
clc;
fprintf('The regression coefficient is r = %f\n',B(2));
x = X(:,2);
%%%%%%%%%% Plotting routines
scatter(x,Y)
hold;
plot(x,(B(2)*x)+B(1));
grid;
xlabel('X');
ylabel('Y');
title('Regression plot between X and Y')

**********************

Output:


Related Solutions

Find the equation of the least-squares regression line ŷ and the linear correlation coefficient r for...
Find the equation of the least-squares regression line ŷ and the linear correlation coefficient r for the given data. Round the constants, a, b, and r, to the nearest hundredth. {(0, 10.8), (3, 11.3), (5, 11.2), (−4, 10.7), (1, 9.3)}
In simple linear regression, r 2 is the _____. a. coefficient of determination b. coefficient of...
In simple linear regression, r 2 is the _____. a. coefficient of determination b. coefficient of correlation c. estimated regression equation d. sum of the squared residuals QUESTION 3 A least squares regression line ______. a. may be used to predict a value of y if the corresponding x value is given b. implies a cause-effect relationship between x and y c. can only be determined if a good linear relationship exists between x and y d. All of the...
If the coefficient of determination is 0.497, what percentage of the data about the regression line...
If the coefficient of determination is 0.497, what percentage of the data about the regression line is explained? 24.7% 49.7% 50.3% 50.0%
The following is a regression summary from R for a linear regression model between an explanatory...
The following is a regression summary from R for a linear regression model between an explanatory variable x and a response variable y. The data contain n = 50 points. Assume that all the conditions for SLR are satisfied. Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) -1.1016 0.4082 -2.699 -------** x 2.2606 0.0981 ---- < 2e-16 *** (a) Write the equation for the least squares regression line. (b) R performs a t-test to test whether the slope is significantly...
1. The linear correlation coefficient r measures of the linear relationship between two variables. (a) Distance...
1. The linear correlation coefficient r measures of the linear relationship between two variables. (a) Distance (b) size (c) strength (d) direction 2. 10 pairs of sample data were obtained from a study which looked at household income and the number of people in the household who smoked (cigarettes). The value of the linear correlation coefficient r was computed and a result of - 0.989 was obtained. All of the following (below) are conclusions that can be drawn from the...
1. The linear correlation coefficient r measures of the linear relationship between two variables. (a) Distance...
1. The linear correlation coefficient r measures of the linear relationship between two variables. (a) Distance (b) size (c) strength (d) direction 2. 10 pairs of sample data were obtained from a study which looked at household income and the number of people in the household who smoked (cigarettes). The value of the linear correlation coefficient r was computed and a result of - 0.989 was obtained. All of the following (below) are conclusions that can be drawn from the...
1. The linear correlation coefficient r measures of the linear relationship between two variables. (a) Distance...
1. The linear correlation coefficient r measures of the linear relationship between two variables. (a) Distance (b) size (c) strength (d) direction 2. 10 pairs of sample data were obtained from a study which looked at household income and the number of people in the household who smoked (cigarettes). The value of the linear correlation coefficient r was computed and a result of - 0.989 was obtained. All of the following (below) are conclusions that can be drawn from the...
1. The linear correlation coefficient r measures of the linear relationship between two variables. (a) Distance...
1. The linear correlation coefficient r measures of the linear relationship between two variables. (a) Distance (b) size (c) strength (d) direction 2. 10 pairs of sample data were obtained from a study which looked at household income and the number of people in the household who smoked (cigarettes). The value of the linear correlation coefficient r was computed and a result of - 0.989 was obtained. All of the following (below) are conclusions that can be drawn from the...
1) A thermocouple element when taken from a liquid at 50 degrees Celsius and plunged into...
1) A thermocouple element when taken from a liquid at 50 degrees Celsius and plunged into a liquid at 100 degrees celsius at time equal to zero gave the following e.m.f. values. Determine the 95% response time. Time 0 20 40 60 80 100 120 e.m.f. (mV) 2.5 3.8 4.5 4.8 4.9 5.0 5.0 2) What are the advantages and disadvantages of a plastic film type of potentiometer and when compared with the wired-wound potentiometer. 3) A shaft encoder is...
Compare the coefficients of determination (r-squared values) from the three linear regressions: simple linear regression from...
Compare the coefficients of determination (r-squared values) from the three linear regressions: simple linear regression from Module 3 Case, multivariate regression from Module 4 Case, and the second multivariate regression with the logged values from Module 4 Case. Which model had the “best fit”? Calculate the residual for the first observation from the simple linear regression model. Recall, the Residual = Observed value - Predicted value or e = y – ŷ. What happens to the overall distance between the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT