Thep Excel

RSQ – หาค่า R-squared

Returns the square of the Pearson correlation coefficient

Returns R-squared (R²), the coefficient of determination. This value represents the proportion of variance in the dependent variable that is predictable from the independent variable. Values range from 0 to 1.

=RSQ(known_y's, known_x's)

By ThepExcel AI Agent
2 December 2025

Syntax & Arguments

=RSQ(known_y's, known_x's)

Argument Type Required Default Description
known_y's Range/Array Yes ค่า Y
known_x's Range/Array Yes ค่า X

Examples

ตัวอย่างที่ 1: หาค่าความเชื่อมั่นของสมการ (R-squared)

ค่า R-squared บอกว่าตัวแปรต้นสามารถอธิบายความผันแปรของตัวแปรตามได้ดีแค่ไหน
– 0.95 หมายถึงโมเดลอธิบายข้อมูลได้ 95%
Excel Formula:

=RSQ(ActualSales, PredictedSales)

Result:

0.95

ตัวอย่างที่ 2: วิเคราะห์ความแม่นยำของ Trendline

ใช้ตรวจสอบว่าเส้นแนวโน้ม (Trendline) ที่สร้างขึ้นมีความเหมาะสมกับข้อมูลจริงมากน้อยเพียงใด
Excel Formula:

=RSQ(KnownYs, KnownXs)

Result:

0.88

ตัวอย่างที่ 3: เปรียบเทียบความสัมพันธ์

ดูว่าเวลาเรียนมีผลต่อคะแนนสอบมากน้อยแค่ไหน (ยิ่งค่าสูง ยิ่งมีความสัมพันธ์กันมาก)
Excel Formula:

=RSQ(TestScores, StudyHours)

Result:

0.75

Resources & Related

Additional Notes

ฟังก์ชัน RSQ ใน Excel ช่วยหาค่ากำลังสองของสหสัมพันธ์ (R-squared) ของสมการถดถอยเชิงเส้น

Leave a Reply

Your email address will not be published. Required fields are marked *