You are given the folowing (x,y) points data. (0.5, 0.5) (1.2,1.1 ) (2.8, 3.4) (3.7, 4.8) (5.2, 6.4) (6.8, 7.7) (7.5, 7.1) (9, 6.8) Find a polynomial (3rd degree) that is fitted to these points by using the polyfit function. Show the given and fitted data on the same figure. Label the axes, give title and show grid and legend.
Correlation
Correlation defines a relationship between two independent variables. It tells the degree to which variables move in relation to each other. When two sets of data are related to each other, there is a correlation between them.
Linear Correlation
A correlation is used to determine the relationships between numerical and categorical variables. In other words, it is an indicator of how things are connected to one another. The correlation analysis is the study of how variables are related.
Regression Analysis
Regression analysis is a statistical method in which it estimates the relationship between a dependent variable and one or more independent variable. In simple terms dependent variable is called as outcome variable and independent variable is called as predictors. Regression analysis is one of the methods to find the trends in data. The independent variable used in Regression analysis is named Predictor variable. It offers data of an associated dependent variable regarding a particular outcome.
You are given the folowing (x,y) points data.
(0.5, 0.5) (1.2,1.1 ) (2.8, 3.4) (3.7, 4.8) (5.2, 6.4) (6.8, 7.7) (7.5, 7.1) (9, 6.8)
Find a polynomial (3rd degree) that is fitted to these points by using the polyfit function. Show the given and fitted data on the same figure. Label the axes, give title and show grid and legend.
Step by step
Solved in 2 steps