Simple Linear Regression in Python - Study Notes

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/12

flashcard set

Earn XP

Description and Tags

These flashcards cover the key concepts, definitions, and terminology related to Simple Linear Regression as outlined in the study notes.

Last updated 7:38 PM on 4/10/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

13 Terms

1
New cards

What is Regression?

A method that predicts a numeric value based on input variables.

2
New cards

Independent variable (X)

The input variable, such as Hours Studied.

3
New cards

Dependent variable (y)

The output variable, such as Exam Score.

4
New cards

Residual

The error calculated as the difference between actual and predicted values, expressed as y - predicted value.

5
New cards

Importing Libraries

The process of including necessary libraries for data manipulation and analysis in Python, such as numpy, pandas, matplotlib, and sklearn.

6
New cards

Dataset

A collection of data structured in a DataFrame format for analysis, in this case representing hours studied and exam scores.

7
New cards

Model Formula

The equation used in linear regression: predicted value = b0 + b1 * X.

8
New cards

Coefficients

The parameters of the model where b0 represents the intercept and b1 represents the slope.

9
New cards

R-squared

A statistical measure that indicates how well the model explains the variation in the dependent variable.

10
New cards

Correlation

A statistical measure (r) that indicates the strength and direction of the linear relationship between two variables.

11
New cards

Visualization

The graphical representation of data, often using plots, to better understand relationships in data.

12
New cards

Residuals

The differences between actual and predicted values in regression analysis.

13
New cards

Interpolation vs Extrapolation

Interpolation involves predictions within the data range, while extrapolation involves predictions outside the data range, which are less reliable.