6.4
Algorithms and simple linear regression (6.4) is a Class 10 Computer Science lesson for the Punjab boards. It walks through the idea in plain steps, then sets a short check, in English, Urdu or Roman Urdu.
Your guide: Miss HiraExplains computers with chai, cricket and your phone.
Chapter 1 of every subject is free. Unlock every chapter of this class with the full course.
Unlock full courseAlready paid? Sign in with the Google account you paid with.
An algorithm is like a recipe: it tells the computer which data to use and which steps to follow. Common ones: linear regression predicts values from a straight-line relationship; decision trees answer yes/no questions; K-Means groups similar items.
Simple linear regression uses one input X (study hours) to predict one output Y (test score). It draws the best-fit straight line through the data.
Table 6.5: 1 h → 35, 2 h → 40 … 10 h → 80, so each extra hour adds 5 marks: score = 30 + 5 × hours. For 6.5 hours the line predicts 62.5. Multiple linear regression uses many inputs for real-life outcomes.
Step 1 / 1
An algorithm is like a recipe: it tells the computer which data to use and which steps to follow. Common ones: linear regression predicts values from a straight-line relationship; decision trees answer yes/no questions; K-Means groups similar items.
Simple linear regression uses one input X (study hours) to predict one output Y (test score). It draws the best-fit straight line through the data.
Table 6.5: 1 h → 35, 2 h → 40 … 10 h → 80, so each extra hour adds 5 marks: score = 30 + 5 × hours. For 6.5 hours the line predicts 62.5. Multiple linear regression uses many inputs for real-life outcomes.
Best-fit line: score = 30 + 5 × hours (from Table 6.5).
Found a mistake? Tell us the lesson and the line at exciting@boringeducation.com.
No ads. Tell us what to fix.