This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.
Note: this analysis was performed using the open source software R and Rstudio.
The objective of this analysis is to explain how bivariate and multivariate regression work, using survey data our team collected about movie theater attendance. This kind of analysis can help marketers make decisions about pricing, advertising and promotion strategies.
Bivariate analysis is one of the simplest forms of statistical analysis. It is generally used to find out if there is a relationship between two sets of values (or two variables). That said, it usually involves the variables X and Y (statisticshowto.com).
The raw Qualtrics export had 33 responses. We cleaned it by:
Variables used in this analysis:
library(readr)
segmentation <- read_csv('Movie_Survey_Clean.csv')
## Rows: 21 Columns: 12
## ── Column specification ────────────────────────────────────────────────────────
## Delimiter: ","
## dbl (12): ID, Age_group, Ent_spend, Theater_freq, Buy_methods_n, Home_better...
##
## ℹ Use `spec()` to retrieve the full column specification for this data.
## ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
plot(Theater_freq ~ Home_better, data = segmentation, pch = 16)
abline(lm(Theater_freq ~ Home_better, segmentation), col = "grey20")
# relationship between theater frequency and the other two predictors
plot(Theater_freq ~ Price_influence, data = segmentation, pch = 16)
abline(lm(Theater_freq ~ Price_influence, segmentation), col = "grey20")
plot(Theater_freq ~ Ent_spend, data = segmentation, pch = 16)
abline(lm(Theater_freq ~ Ent_spend, segmentation), col = "grey20")
# simple linear regression (one predictor)
model <- lm(Theater_freq ~ Home_better, data = segmentation)
summary(model)
##
## Call:
## lm(formula = Theater_freq ~ Home_better, data = segmentation)
##
## Residuals:
## Min 1Q Median 3Q Max
## -1.5264 -0.5264 0.1229 0.4736 1.4736
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 1.4741 0.5354 2.754 0.0126 *
## Home_better 0.3507 0.1494 2.347 0.0299 *
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 0.7736 on 19 degrees of freedom
## Multiple R-squared: 0.2248, Adjusted R-squared: 0.184
## F-statistic: 5.51 on 1 and 19 DF, p-value: 0.0299
# multivariable linear regression (three predictors)
model_mult <- lm(Theater_freq ~ Home_better + Price_influence + Ent_spend, data = segmentation)
model_mult
##
## Call:
## lm(formula = Theater_freq ~ Home_better + Price_influence + Ent_spend,
## data = segmentation)
##
## Coefficients:
## (Intercept) Home_better Price_influence Ent_spend
## 1.2145710 0.3534771 0.1266141 -0.0006728
summary(model_mult)
##
## Call:
## lm(formula = Theater_freq ~ Home_better + Price_influence + Ent_spend,
## data = segmentation)
##
## Residuals:
## Min 1Q Median 3Q Max
## -1.15203 -0.35277 -0.00038 0.38552 1.36103
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 1.2145710 0.7706428 1.576 0.1334
## Home_better 0.3534771 0.1527937 2.313 0.0335 *
## Price_influence 0.1266141 0.1405410 0.901 0.3802
## Ent_spend -0.0006728 0.0007181 -0.937 0.3620
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 0.7839 on 17 degrees of freedom
## Multiple R-squared: 0.2877, Adjusted R-squared: 0.162
## F-statistic: 2.289 on 3 and 17 DF, p-value: 0.1151
Bivariate Analysis Definition & Example https://www.statisticshowto.com/bivariate-analysis/#:~:text=Bivariate%20analysis%20means%20the%20analysis,the%20variables%20X%20and%20Y.
https://www.sciencedirect.com/topics/mathematics/bivariate-data