2024-03-21

Simple Linear Regression Overview

  • I have decided to create a presentation over Simple Linear Regression. Simple linear regression is a statistical method that is mostly used to cretae models to showcase a relationship between two kinds of variables; an independent variable and a dependent varable. Both of which can be interchanged and have different values to illustrate different models.

The Regression Equation

  • A simple linear regression model can be represented by the equation: \[ Y = \beta_0 + \beta_1 X + \varepsilon \] where:
    • The dependent variable is \(Y\),
    • The independent variable is \(X\),
    • The intercept is\(\beta_0\),
    • The slope can be written as \(\beta_1\),
    • And the error term can be written as \(\varepsilon\).

Example of Simple Linear Regression

Looking at an example, lets say we want to create a regression model that talks about the number of hours someone studies verus the total group of students. The independent variable in this case is the number of hours someone studies and the dependent variable is the total group of students that were got an certain exam score.

Scatter Plot

Second Example

This next example is another gg plot that talks about how an individual’s salary can change based on the years of experience that they have at a certain company. The independent variable is the years of experience that are completed by an employee while the y-axis is the amount of money that the individual would make based on the number of years of work experience.

Line Plot

Third Example

This final example showcases a line plot that talks about how the temperature on any given day can create an effect on ice cream sales at a certain ice cream shop. The higher the temperature, the higher the sales would go. The independent variable in this case is the temperature(X) while the dependent variable is ice cream sales(y). I used a plotly plot for this example and graphed it.

Line Graph

Conclusion

In conclusion, this presentation showcased a few examples regarding Simple Linear Regression. I went over a brief overview about what linear regression entails and the basic formula that is needed to calculate a linear regression based on a certain scenario or problem!