How can I show correlation between temperature and air pollution?

1 Ansicht (letzte 30 Tage)
farkab95
farkab95 am 9 Nov. 2017
I have the data sets with temperatures and ozone concentration, but I'm not sure how I would write the code to show the relationship between these two variables.

Antworten (1)

Krishna Bindumadhavan
Krishna Bindumadhavan am 22 Nov. 2017
A good place to start is to see if there is a linear relationship by running a linear regression . You can refer to the following information which gives more details about the syntax and provides additional background information: https://www.mathworks.com/help/matlab/data_analysis/linear-regression.html.
Depending upon the results of the regression, and other factors like size of the data set ,complexity of the model you are looking for you can think about trying more complex models non-linear models as well using our curve fitting toolbox : https://www.mathworks.com/products/curvefitting.html.

Kategorien

Mehr zu Linear and Nonlinear Regression finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by