What is Linear Regression?
According to IBM, “Linear regression analysis is used to predict the value of a variable based on the value of another variable.” Why is that useful? It can be used for predictions of behavior in terms of 2 variables, such as: how many more car accidents could there be when it’s raining, and how much does security increase in concert venues when there are more security guards, etc.
To be able to predict this, we would plot one variable against another for numerous values and find the line of “best fit” to determine a value Y for a certain value of X. See the next slide for an example of linear regression using Plotly