Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

DISCUSSION

From the data collected, we are able to use a different technique to fit curves or approximating
functions to the set of discrete data and manipulate that approximating functions. The methods
we are using in our regression analysis are linear regression (1st order polynomial) and non-linear
regression (2nd order polynomial).
For the linear regression, the equation of the line (regression model) is given by
y=a0+a1x where a1 represents the slope and a0 the intercept of the linear graph. From the data
analyzed using the MATLAB software, the graph yields the green linear graph. We can see that
the line is not even close to the real data which means the regression graph is not well
representing the real data (the blue star dots). Then, using the quantifying of error of regression,
we also analyses the r2 value using the MATLAB software. r2 represents the percentage of the
original uncertainty explained by the model. From the MATLAB result we obtained r2 =
0.14184 = 14.18%. This means that the linear regression analysis only yields 14.18% of data that
are close to the regression line.
Next, we decided to use a different regression method and to find out if the other method
is more accurate. We method for this time is non-linear regression. For the non-linear regression,
the equation of the line (regression model) is given by y=a0+a1x+a2x^2. This regression will
give a parabolic graph curve. From the data analyzed using the MATLAB software, the graph
yields the red curve graph. We can see that the curve is pretty close to the real data compared
with the linear regression line which means the regression graph quite well representing the real
data (the blue star dots). From the MATLAB result we obtained r2 = 0.87480 = 87.480%. This
means that the non-linear regression analysis yields 87.480% of data that are close to the
regression line. Then, we can see that the non-linear regression method is more accurate and
suitable to analyze the set of data that we use. Also, we can see that the suitable regression
method to be used are also depending on the trend of the data. Correct me madame if I’m wrong
(we are still learning).
CONCLUSION

As a conclusion, the objective is to identify the independent and dependent based on the data and
to find the most suitable method to solve the problem are achieved. The data obtained by using
linear regression due to its linear type graph. The performance and interpretation of linear
regression analysis are subject to a variety of pitfalls, which are discussed here in detail. The
reader is made aware of common errors of interpretation through practical examples. Both the
opportunities for applying linear regression analysis and its limitations are presented. The
independent variable is applied temperature and the dependent variable is the yield deformation.
REFERENCES

1. Numerical Methods for Engineers by Raymond P. Canale and Steven C. Chapra

2. https://en.wikipedia.org/wiki/Linear_regression

3. https://machinelearningmastery.com/linear-regression-for-machine-learning/

You might also like