## Loading required package: ggplot2
##
## Attaching package: 'plotly'
## The following object is masked from 'package:ggplot2':
##
## last_plot
## The following object is masked from 'package:stats':
##
## filter
## The following object is masked from 'package:graphics':
##
## layout
##
## Call:
## lm(formula = Exam_Score ~ Hours_Studied, data = data)
##
## Residuals:
## Min 1Q Median 3Q Max
## -24.6443 -4.8623 -0.2705 4.9405 20.2559
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 53.2301 7.2184 7.374 1.97e-09 ***
## Hours_Studied 2.9298 0.2821 10.385 7.25e-14 ***
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 9.142 on 48 degrees of freedom
## Multiple R-squared: 0.692, Adjusted R-squared: 0.6856
## F-statistic: 107.8 on 1 and 48 DF, p-value: 7.25e-14