Chapter 09

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 10

HỒI QUI VÀ TƯƠNG QUAN

(Regression and correlation)

Chapter 09
HỒI QUI

Phân tích hồi qui là nghiên cứu sự phụ thuộc


của một biến (biến phụ thuộc) vào một hay
nhiều biến số khác (biến độc lập).

Thuật ngữ này được đưa ra bởi nhà toán học


người Pháp Francis Galton.

Lưu ý: hồi qui chỉ xét quan hệ thống kê, không


xét quan hệ hàm số.
HỆ SỐ TƯƠNG QUAN

Ý nghĩa:
Hệ số tương quan cho biết quan hệ tuyến tính
giữa x và y là mạnh hay yếu, đồng biến hay
nghịch biến.
HỆ SỐ TƯƠNG QUAN

Nhận xét:

* 1  r  1
* Hệ số tương quan của x với chính nó bằng 1
CORRELATION ANALYSIS

Sample data: Scatter plot of the ordered pairs (x, y)

Number
Number of Cars
of TV Ads Sold
Week x y
1 3 13
2 6 31
3 4 19
4 5 27
5 6 23
6 3 19
CORRELATION ANALYSIS
 Construct this table to provide the values needed for future
calculations
Number of Number of
TV Ads Cars Sold
Week x y xy x2 y2
1 3 13 39 9 169
2 6 31 186 36 961
3 4 19 76 16 361
4 5 27 135 25 729
5 6 23 138 36 529
6 3 19 57 9 361

x = 27 y = 132 xy = 631 x2 = 131 y2 = 3110


THE CORRELATION COEFFICIENT
 Formula for the Correlation Coefficient
n xy   x  y 
r
n x 2
  x 
2
 n y 2
  y 
2

 Substituting the values from this example:
n xy   x  y  (6)(631)  (27)(132)
r 
n x 2
  x 
2
 n y 2
  y 
2
 (6)(131)  (27)  (6)(3110)  (132) 
2 2

222 222
   0.836
57 1236 265.43

 Because r = 0.836 is positive and close to +1, there is a fairly strong


positive relationship between the number of TV ads and cars sold
HÀM HỒI QUI MẪU (SRF)

Là hàm hồi qui được xây dựng dựa trên một


mẫu thống kê cụ thể.

ŷ  a  bx
Đặt: ei  yi  yˆ i

e i : sai số ngẫu nhiên mẫu (sample stochastic error)


PHƯƠNG TRÌNH HÀM HỒI QUI MẪU

n xy    x   y 
b
n x    x 
2 2

a  y  x 
 b 
n  n 
KIỂM ĐỊNH MÔ HÌNH

2
r
F  ( n  2)
1 r 2

You might also like