Question

In: Statistics and Probability

Supose you have a table with the next values that represent the change of temperature in...

Supose you have a table with the next values that represent the change of temperature in 10 hours, based on the data of the table respond the next questions

Hour Temperature (K)

9:00

287.5
10:00 289.3
11:00 290.75
12:00 292.8
13:00 294.5
14:00 296.37
15:00 298.15
16:00 300.00
17:00 301.8
18:00 303.5

Considering that the measurements can only be taken at those hours and there can be small errors in them, if you were asked to know what was the temperature at 14:30 it would need to use linear regression.
1- Describe as better you can the algorithm of that method
2- Explain and express clearly the outcome of that hour (14:30) using linear regression

3- Respecting the linear regression, Is the given temperature exactly what it was at that hour?
4- How could you know exactly the answer to this question?

Solutions

Expert Solution

The given data is:

Hour (H)

Temperature (K)

9 287.5
10 289.3
11 290.75
12 292.8
13 294.5
14 296.37
15 298.15
16 300
17 301.8
18 303.5

We can fit this data using the Linear Regression Algorithm. Hence, it would follow an equation of the form K = mH + c, where m is the slope of the line and c is the y-intercept. To solve for the values of these parameters, we solve the equation:

where N is the number of data points. Hence, N = 10.

First, we shall evaluate the sums that are required in the formulae. Doing so, we get:

Hour (H) Temperature (K) HK H^2
9 287.5 2587.5 81
10 289.3 2893 100
11 290.75 3198.25 121
12 292.8 3513.6 144
13 294.5 3828.5 169
14 296.37 4149.18 196
15 298.15 4472.25 225
16 300 4800 256
17 301.8 5130.6 289
18 303.5 5463 324
TOTAL 135 2954.67 40035.88 1905

Substituting the values in the formulae, we get:

Hence, the equation of the linear regression model becomes:

Using this model, we can calculate the temperature at 14:30. This can be done by substituting H=14.5 in the model. Doing so, we get:

Hence, the temperature as predicted by the model at 14:30 is 297.26 K.

To check for how accurate the model is predicting the values, we can determine the coefficient of determination.

To do so, we first normalize each of the values of H and K. This is done by subtracting each value from the mean of that column and then dividing it by the standard deviation. Let Z_H be the normalized H and Z_K be the normalized K. Thus, we get:

Hour (H) Temperature (K) Z_H Z_K
9 287.5 -1.4863 -1.4682
10 289.3 -1.156 -1.1365
11 290.75 -0.8257 -0.8693
12 292.8 -0.4954 -0.4915
13 294.5 -0.1651 -0.1782
14 296.37 0.1651 0.1664
15 298.15 0.4954 0.4944
16 300 0.8257 0.8354
17 301.8 1.156 1.1671
18 303.5 1.4863 1.4804

Next, we determine the product of Z_H and Z_K, we get:

Hour (H) Temperature (K) Z_H Z_K Z_H * Z_K
9 287.5 -1.4863 -1.4682 2.1822
10 289.3 -1.156 -1.1365 1.3138
11 290.75 -0.8257 -0.8693 0.7178
12 292.8 -0.4954 -0.4915 0.2435
13 294.5 -0.1651 -0.1782 0.0294
14 296.37 0.1651 0.1664 0.0275
15 298.15 0.4954 0.4944 0.2449
16 300 0.8257 0.8354 0.6898
17 301.8 1.156 1.1671 1.3492
18 303.5 1.4863 1.4804 2.2003

The coefficient of determination si given using the formula:

Summing the last column, we get:

Substituting this in the above formula, we get:

Since, R2 = 1, the model is giving exact values for each of the intermediate points. Thus, the value obtained using the model at time 14:30 is exact and reliable.


Related Solutions

1. The experimental results in the table below represent real values from an experiment on the...
1. The experimental results in the table below represent real values from an experiment on the cat soleus muscle. For our purposes we will assume the muscle weighs 4 grams and is shaped like a cylinder that is 1 cm2 in cross-sectional area. Force                                                            Power Velocity Experiment # Force (N) Velocity (mm/s) 1 20 0 2 18 2 3 14 9 4 9 20 5 6 29 6 3 43 7 1.0 62 2. a Draw and label the...
For the following exercises, use the table of values that represent points on the graph of a quadratic function. By determining..
For the following exercises, use the table of values that represent points on the graph of a quadratic function. By determining the vertex and axis of symmetry, find the general form of the equation of the quadratic function.
Prepare a table of values for the change of electron density at each layer by 10%...
Prepare a table of values for the change of electron density at each layer by 10% rise from [6M] lower D layer to the top F2 layer, and calculate the variation of refractive index for each layer assuming the frequency to be 1MHz, assume initial value of electron density as 5x109 and plot a graph between ionospheric layer vs. electron density and refractive index. Give your analysis over the graph.
Use only the information in the following table for the next few questions.  The following statistics represent...
Use only the information in the following table for the next few questions.  The following statistics represent samples of copper wire submitted by two companies for tensile strength testing (psi). Statistic                                                      Company A          Company B Arithmetic Mean                                       500                         600 Median                                                       500                        500 Mode                                                           500                       300 Standard Deviation                                   40                          20 Mean Absolute Deviation                         32                        16 Quartile Deviation                                     25                         14 Range                                                       240                         120 Sample Size                                          100                           80 The middle 95% of the wires from Company A tested between _____ and _____ .  Record ONLY the lower limit as a whole number. The middle 50 percent of the wires of Company A tested...
5-38 Consider the two mutually exclusive projects in the table below. Salvage values represent the net...
5-38 Consider the two mutually exclusive projects in the table below. Salvage values represent the net proceeds​ (after tax) from disposal of the assets if they are sold at the end of each year. Both projects B1 and B2 will be available​ (or can be​ repeated) with the same costs and salvage values for an indefinite period. B1 B2 n Cash Flow Salvage Value Cash Flow Salvage Value 0 −​$15,000 — −​$30,000 — 1 −2,500 7,500 −2,700 6,500 2 −2,500...
1-A solution has a temperature change of 20 K. What is the temperature change in degree...
1-A solution has a temperature change of 20 K. What is the temperature change in degree Celsius? Flag this Question Question 2 Students used two thermometers in Thermo lab. If both thermometers consistently read temperature exactly 1.0 degree higher than the actual temperature, how does this affect the experimental molar heat of neutralization? A-It has an unknown impact on the molar heat of neutrailization. B-This will make the molar heat of neutrailization higher C-Since the temperature differences are used in...
Imagine you have two wire loops lying next to each other on a table. The first...
Imagine you have two wire loops lying next to each other on a table. The first one is connected to an AC power supply (like a wall outlet), producing a time-varying current through the wire, which in turn produces a time-varying magnetic field. The second wire loop reacts to this time varying magnetic field according to Faraday's law. Describe the current produced in the second loop.
1. Create a table and identify ranges of acceptable vital sign values (temperature, pulse rate, respiration...
1. Create a table and identify ranges of acceptable vital sign values (temperature, pulse rate, respiration rate, blood pressure and oxygen saturation) for an infant, a child, and an adult. 1.a--J.P. is a 15-year-old African American adolescent who was diagnosed with sickle cell disease 3 years ago. J.P. presents to the emergency department with pain related to sickle cell crisis. Subjective Data Pain level is an 8/10 location = bilateral legs, described as deep muscle pain Student in 10th grade,...
Lab Assignment Create a table and identify ranges of acceptable vital sign values (temperature, pulse rate,...
Lab Assignment Create a table and identify ranges of acceptable vital sign values (temperature, pulse rate, respiration rate, blood pressure and oxygen saturation) for an infant, a child, and an adult. J.P. is a 15-year-old African American adolescent who was diagnosed with sickle cell disease 3 years ago. J.P. presents to the emergency department with pain related to sickle cell crisis. Subjective Data Pain level is an 8/10 location = bilateral legs, described as deep muscle pain Student in 10th...
QUESTION 1 CH3OH (l)  →  CH3OH (g) Although the ΔHo and ΔSo values do change slightly with temperature,...
QUESTION 1 CH3OH (l)  →  CH3OH (g) Although the ΔHo and ΔSo values do change slightly with temperature, assumethat the change is not large enough to significantly affect the outcome of the following calculation. Use the ΔHo and ΔSo values to determine the temperature (in oC) at which this phase change occurs (find the boiling point). QUESTION 2 N2 (g) + 3 H2 (g)  →  2 NH3 (g) Although the ΔHo and ΔSo values do change slightly with temperature, assume that the change is...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT