หาความชันและจุดตัด (Slope & Intercept)
=LINEST(Y_Values, X_Values, 1)
{Slope, Intercept}
หาค่าสถิติสมการเส้นตรง
คำนวณค่าสถิติสำหรับเส้นตรงที่เหมาะสมที่สุด (Linear Regression) ด้วยวิธีกำลังสองน้อยที่สุด (Array Function)
=LINEST(known_y's, [known_x's], [const], [stats])
=LINEST(known_y's, [known_x's], [const], [stats])
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
| known_y's | Range | Yes | ค่า Y | |
| known_x's | Range | Yes | ค่า X | |
| stats | Boolean | Yes | TRUE=แสดงค่าสถิติเพิ่มเติม |
=LINEST(Y_Values, X_Values, 1)
{Slope, Intercept}
=LINEST(Sales, HSTACK(Ad_Spend, Price))
Coefficients Array
=LINEST(Y_Values, X_Values)
Check formula
ฟังก์ชัน LINEST ใน Excel ช่วยคำนวณค่าสถิติสำหรับเส้นตรงที่เหมาะสมที่สุด (Linear Regression) ด้วยวิธีกำลังสองน้อยที่สุด (Array Function)