สำหรับสถิติศาสตร์ สหสัมพันธ์ (อังกฤษ: correlation) หมายถึงความสัมพันธ์ทางสถิติระหว่างตัวแปรสุ่มตั้งแต่สองตัวแปรขึ้นไป

Several sets of (xy) points, with the Pearson correlation coefficient of x and y for each set. Note that the correlation reflects the noisiness and direction of a linear relationship (top row), but not the slope of that relationship (middle), nor many aspects of nonlinear relationships (bottom). N.B.: the figure in the center has a slope of 0 but in that case the correlation coefficient is undefined because the variance of Y is zero.

Pearson's product-moment coefficient แก้

ค่าของสหสัมพันธ์อาจคำนวณได้จากสหสัมพันธ์ของเพียร์สัน (Pearson's correlation) ซึ่งคือการนำค่าความแปรปรวนร่วมเกี่ยวระหว่างตัวแปรสุ่มทั้งสองไปหารด้วยค่าเบี่ยงเบนมาตรฐานของตัวแปรทั้งสอง

สัมประสิทธิ์สหสัมพันธ์ ρX,Y ระหว่างตัวแปรสุ่ม X และ Y โดยที่มีค่าคาดหมาย μX และ μY และ ค่าเบี่ยงเบนมาตรฐาน σX และ σY นิยามได้ดังนี้:

 

โดย E คือตัวดำเนินการของค่าคาดหมาย, cov คือ ความแปรปรวนร่วมเกี่ยว, และ corr คือค่าสหสัมพันธ์ของเพียร์สัน

หมายเหตุ สหสัมพันธ์ของเพียร์สันจะนิยามได้เฉพาะกรณีที่ไม่มีค่าเบี่ยงเบนมาตรฐานของตัวแปรตัวใดตัวหนึ่งเป็นศูนย์

อ้างอิง แก้

อ่านเพิ่มเติม แก้

  • Cohen, J., Cohen P., West, S.G., & Aiken, L.S. (2002). Applied multiple regression/correlation analysis for the behavioral sciences (3rd ed.). Psychology Press. ISBN 0805822232.{{cite book}}: CS1 maint: multiple names: authors list (ลิงก์)

แหล่งข้อมูลอื่น แก้