Paste زوج x، y data إلى fit least-squares سطر الأفضل fit: slope، intercept، correlation، fitted معادلة، predictions لـأي x — وscatter plot مع نقاط والسطر drawn through لهم.
السطر chosen إلى minimise المجموع مربع vertical gaps (residuals) بين النقاط والسطر. مربع punishes كبير misses heavily، أي لماذا outliers يمكن drag السطر.
slope كم y تغيير، في متوسط، عندما x rises بواسطة 1. intercept model y عندما x = 0 — meaningful فقط إذا x = 0 داخل أو near data مدى.
ذلك extrapolation، وإنه risky: علاقة غالبًا bend beyond observed مدى. الحاسبة سوف compute إنه، لكن further من x-range، أقل السطر deserves trust.
هم حصة نفس مجموع: r standardised slope. Regression اجمع فعلي سطر (في y-units لكل x-unit) وpredictions، أي correlation alone cannot يمنح.
Slope b = Sxy ÷ Sxx where Sxy = Σ (x − x ̄) (y − ȳ) وSxx = Σ (x − x ̄) ². Intercept = ȳ − b · x ̄ — أي guarantees السطر دائمًا يمر through centre mass data، (x ̄، ȳ). Prediction: ŷ = + b · x. أيضًا reported: r، r²، وresidual قياسي error.
Inputs: x = [1,2,3,4,5]، y = [2,4,5,4,5].
خطوات: x ̄ = 3، ȳ = 4، Sxy = 6 (من correlation خطوات الحل)، Sxx = 10. Slope = 6 ÷ 10 = 0.6. Intercept = 4 − 0.6 × 3 = 2.2. Prediction عند x = 6: 2.2 + 0.6 × 6 = 5.8.
نتيجة: سطر y = 2.2 + 0.6 x، r = 0.775، r² = 0.600.
اجمع هذا حاسبة إلى الخاص به website أو blog — إنه completely مجاني، يحتاج دون تسجيل، ودائمًا يعرض latest version. Copy الرمز أدناه وpaste إنه إلى صفحة where أنت تريد الحاسبة إلى يظهر. احتفظ صغير &ldquo؛ قدرة بواسطة Loona Automation &rdquo؛ credit سطر تحت embed يساعد احتفظ هذا أداة مجاني — لكن أنت مجاني إلى style أو remove إنه؛ الأداة يعمل أي من طريقة.