Question

In: Statistics and Probability

Using all the data below, construct an empirical model using a computational tool (matlab, or R,...

Using all the data below, construct an empirical model using a computational tool (matlab, or R, any preferred). explain your model.

Data Description: These data are from a NIST study involving calibration of ozone monitors. The response variable (y) is the customer's measurement of ozone concentration and the predictor variable (x) is NIST's measurement of ozone concentration. MATLAB Row Vectors: xLst = [0.2, 337.4, 118.2, 884.6, 10.1, 226.5, 666.3, 996.3, 448.6, 777.0, 558.2, 0.4, 0.6, 775.5, 666.9, 338.0, 447.5, 11.6, 556.0, 228.1, 995.8, 887.6, 120.2, 0.3, 0.3, 556.8, 339.1, 887.2, 999.0, 779.0, 11.1, 118.3, 229.2, 669.1, 448.9, 0.5];

yLst = [0.1, 338.8, 118.1, 888.0, 9.2, 228.1, 668.5, 998.5, 449.1, 778.9, 559.2, 0.3, 0.1, 778.1, 668.8, 339.3, 448.9, 10.8, 557.7, 228.3, 998.0, 888.8, 119.6, 0.3, 0.6, 557.6, 339.3, 888.0, 998.5, 778.9, 10.2, 117.6, 228.9, 668.4, 449.2, 0.2];

Solutions

Expert Solution

Sol:

Fit a linear regression model of y on x

R code is;

x <- c(0.2, 337.4, 118.2, 884.6, 10.1, 226.5, 666.3, 996.3, 448.6,
777.0, 558.2, 0.4, 0.6, 775.5, 666.9, 338.0, 447.5, 11.6, 556.0,
228.1, 995.8, 887.6, 120.2, 0.3, 0.3, 556.8, 339.1, 887.2,
999.0, 779.0, 11.1, 118.3, 229.2, 669.1, 448.9, 0.5)
y <- c(0.1, 338.8, 118.1, 888.0, 9.2, 228.1, 668.5, 998.5, 449.1, 778.9, 559.2,
0.3, 0.1, 778.1, 668.8, 339.3, 448.9,
10.8, 557.7, 228.3, 998.0, 888.8, 119.6, 0.3,
0.6, 557.6, 339.3, 888.0, 998.5, 778.9, 10.2, 117.6,
228.9, 668.4, 449.2, 0.2)
regmod <- lm(y~x)
summary(regmod)

Output:

Call:

lm(formula = y ~ x)

Residuals:

Min 1Q Median 3Q Max

-2.35238 -0.53270 -0.02963 0.60003 1.78979

Coefficients:

Estimate Std. Error t value Pr(>|t|)   

(Intercept) -0.2623231 0.2328182 -1.127 0.268   

x 1.0021168 0.0004298 2331.606 <2e-16 ***

---

Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Residual standard error: 0.8848 on 34 degrees of freedom

Multiple R-squared: 1, Adjusted R-squared: 1

F-statistic: 5.436e+06 on 1 and 34 DF, p-value: < 2.2e-16

Intrepretation:

Linear regression model for the given set of data is

y=-0.2623231 + 1.0021168*x

y intercept=-0.2623231

slope=1.0021168

R sq=1

100% variance in y is explained by x.

Good model.


Related Solutions

Construct a histogram of your empirical data using eight bars and then five bars. For consistency's...
Construct a histogram of your empirical data using eight bars and then five bars. For consistency's sake, for eight bars use the class width of 0.125. So, your first bar will be 0.000-0.124, your next bar will be 0.125 - 0.249, etc. For five bars, use the class width of 0.2. So, your first bar will be 0.00-0.19, your next bar will be 0.2-0.39, etc. Upload both pictures of your histograms. ***Below are my 50 random numbers. What do I...
Discuss the advantages and disadvantages of using R to analyze data compared to a spreadsheet tool...
Discuss the advantages and disadvantages of using R to analyze data compared to a spreadsheet tool such as Microsoft Excel or Tableau. Provide specific examples to illustrate your ideas.
Go into R and view all of the data sets preloaded in R by using the...
Go into R and view all of the data sets preloaded in R by using the data() command. As you see there are quite a few data sets loaded into R. Now retrieve the dataset women using data(women). This data is from a random sample of 15 women, recording the height and weight of each woman in the sample. I want you to create a 95% confidence interval for the population mean using this data and R. First find the...
Plot the original data and the regression “line” ************USING Matlab************. "Submit plot" USING MATLAB! USING MATLAB!...
Plot the original data and the regression “line” ************USING Matlab************. "Submit plot" USING MATLAB! USING MATLAB! USING MATLAB! ONLY BY USING MATLAB!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 14.9 The concentration of E. coli bacteria in a swimming area is monitored after a storm: t (hr)                     4           8         12        16    20 24 c (CFU/100 mL) 1600     1320   1000     890 650 560 The time is measured in hours following the end of the storm and the unit CFU is a .colony forming unit.. Use this data to estimate (a)...
Construct a bridge-controlled rectifier with R-L loads using Matlab/Simulink software. Circuit parameters – can be either...
Construct a bridge-controlled rectifier with R-L loads using Matlab/Simulink software. Circuit parameters – can be either calculating, refer to any sources (textbook, journal, or technical manual) or assumption a. Describe the circuit designed, parameters selection and output signal outcomes b. Constant the firing angle, then discuss the effect of changing L to see the operation of CCM and DCM. c. Constant the L, then discuss the effect of changing the firing angle to see the operation of CCM and DCM....
Matlab Implement Fading Channel Simulation: Jakes Model with using Matlab
Matlab Implement Fading Channel Simulation: Jakes Model with using Matlab
Run a linear regression using Excel’s Data Analysis regression tool. Construct the linear regression equation and...
Run a linear regression using Excel’s Data Analysis regression tool. Construct the linear regression equation and determine the predicted total sales value if the number of promotions is 6. Is there a significant relationship? Clearly explain your reasoning using the regression results. Number of Promotions Total Sales 3 2554 2 1746 11 2755 14 1935 15 2461 4 2727 5 2231 14 2791 12 2557 4 1897 2 2022 7 2673 11 2947 11 1573 14 2980
Construct a scattergram for each data set. Then calculate r and r 2 for each data...
Construct a scattergram for each data set. Then calculate r and r 2 for each data set. Interpret their values. Complete parts a through d a. x −1 0 1 2 3 y −3 0 1 4 5 Calculate r. r=. 9853 ​(Round to four decimal places as​ needed.) Calculate r2. r2=0.9709. ​(Round to four decimal places as​ needed.) Interpret r. Choose the correct answer below. A.There is not enough information to answer this question. B.There is a very strong...
Need to construct ANOVA table in R using the below information We have five groups and...
Need to construct ANOVA table in R using the below information We have five groups and three observations per group. The group means Exercise 3.4 are 6.5, 4.5, 5.7, 5.7, and 5.1, and the mean square for error is .75. Compute an ANOVA table using R for these data
Using the package “wooldridge’, and the data ‘hprice1’ (in R-Software) to estimate the model price =...
Using the package “wooldridge’, and the data ‘hprice1’ (in R-Software) to estimate the model price = β0 + β1sqrft + β2bdrms + u , where is the house price measured in thousands of dollars. 1. Write out the results in equation form. 2.  What is the estimated increase in price for a house with one more bedroom, holding square footage constant? 3. What is the estimated increase in price for a house with an additional bedroom that is 140 square feet...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT