2024-06-03

##load in the data

3 dimensional graph with budget, year, and rating

## Warning: Ignoring 53573 observations

ratings over the years

## `geom_smooth()` using formula = 'y ~ x'

number of votes over budget

this is an example of some of my code

ggplot(movies, aes(x = budget, y = votes)) + geom_point(alpha = 0.5) + geom_smooth(method = “lm”, se = FALSE, color = “green”) + labs(title = “Number of Votes over Budget with Linear Regression”)

this is the formlula to find the slope

\[ m = \frac{y_2 - y_1}{x_2 - x_1} \]

Regression Line Equation

The equation for the regression line (\(y\)) is:

\[ y = \beta_0 + \beta_1 x \]

where: - \(\beta_0\) is the y-intercept. - \(\beta_1\) is the slope of the line.