18
By Yang By Yang By Yang By Yang Cao Cao Cao Cao BEST BEST BEST BEST- - -FIT FIT FIT FIT solution solution solution solution

Yangs First Lecture Ppt

Embed Size (px)

Citation preview

Page 1: Yangs First Lecture Ppt

By Yang By Yang By Yang By Yang CaoCaoCaoCao

BESTBESTBESTBEST----FITFITFITFIT

solutionsolutionsolutionsolution

Page 2: Yangs First Lecture Ppt

CorrelationCorrelationCorrelationCorrelation

RegressionRegressionRegressionRegression

WeightsWeightsWeightsWeights

LinearizationLinearizationLinearizationLinearization

LeastLeastLeastLeast----Square solutionSquare solutionSquare solutionSquare solution

Page 3: Yangs First Lecture Ppt

Learn:Learn:Learn:Learn:

What & HowWhat & HowWhat & HowWhat & How

for each termfor each termfor each termfor each term

twicetwicetwicetwice

Page 4: Yangs First Lecture Ppt

Then you can calculate :Then you can calculate :Then you can calculate :Then you can calculate :

BestBestBestBest----fit linefit linefit linefit line

Weighted MeanWeighted MeanWeighted MeanWeighted Mean

LinearizationLinearizationLinearizationLinearization

CoefficientCoefficientCoefficientCoefficient

Page 5: Yangs First Lecture Ppt

Correlation :Correlation :Correlation :Correlation :

Association Association Association Association

between between between between

variables.variables.variables.variables.

Page 6: Yangs First Lecture Ppt

Direction Direction Direction Direction

positivepositivepositivepositive negativenegativenegativenegative

XXXX YYYY XXXX YYYY XXXX YYYY XXXX YYYY

Page 7: Yangs First Lecture Ppt

Strength Strength Strength Strength

High Strong:High Strong:High Strong:High Strong:

Few exceptions Few exceptions Few exceptions Few exceptions

ModerateModerateModerateModerate

Low Weak:Low Weak:Low Weak:Low Weak:

Many exceptions Many exceptions Many exceptions Many exceptions

1.001.001.001.00

0.800.800.800.80

0.400.400.400.40

0000

Page 8: Yangs First Lecture Ppt

Correlation Coefficient: Correlation Coefficient: Correlation Coefficient: Correlation Coefficient: rrrr

Page 9: Yangs First Lecture Ppt
Page 10: Yangs First Lecture Ppt

Regression :Regression :Regression :Regression :

find a formula that can find a formula that can find a formula that can find a formula that can

be used to relate two be used to relate two be used to relate two be used to relate two

variables.variables.variables.variables.

y=mx+b

Page 11: Yangs First Lecture Ppt

correlation V.S. regression correlation V.S. regression correlation V.S. regression correlation V.S. regression

Correlation: relationship

between variables.

Regression: finding a formula

that represents the relationship

so as to do prediction

Page 12: Yangs First Lecture Ppt

residual

Residual = Actual – Predicted

The regression equation or formula meets the

"least Square" criterion: the sum of square of

the residual is at its minimum.

Page 13: Yangs First Lecture Ppt
Page 14: Yangs First Lecture Ppt

Weighted mean

• some data points contribute more than othersformula

Page 15: Yangs First Lecture Ppt

linearizelinearizelinearizelinearize : : : : make linear or get into a linear form.make linear or get into a linear form.make linear or get into a linear form.make linear or get into a linear form.

y

x0 x a=

( ) ( )f x f a=

We call the equation of the tangent

the linearization of the function.

Page 16: Yangs First Lecture Ppt

nx ( )nf xn ( )nf x′

( )

( )1

n

n n

n

f xx x

f x+ = −

Find where crosses .3y x x= − 1y =

31 x x= − 3

0 1x x= − − ( ) 31f x x x= − − ( ) 2

3 1f x x′ = −

0 1 1− 21

1 1.52

−− =

1 1.5 .875 5.75.875

1.5 1.34782615.75

− =

2 1.3478261 .1006822 4.4499055 1.3252004

( )3

1.3252004 1.3252004 1.0020584− = 1≈→

Page 17: Yangs First Lecture Ppt

Q?

Page 18: Yangs First Lecture Ppt

http://www.nvcc.edu/home/elanthier/methods/correlation.htm

http://www.pindling.org/Math/Statistics/Textbook/Chapter3_Re

gression_Correlation/Chapter3_Regres_Corr_Overview.htm

http://graphpad.com/curvefit/linear_regression.htm

http://www.answers.com/topic/weighted-mean

4.5: Linear Approximations, Differentials. and Newton's

Method. Greg Kelly, Hanford High School, Richland, Washington.