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 tutorial is to explain how bivariate analysis works.This analysis can be used by marketers to make decisions about their pricing strategies, advertising strategies, and promotion stratgies among others.
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).
library(readr)
Segmentation <- read_csv('Movie_Survey_Clean (1).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 ~ Price_influence, data = Segmentation, pch = 16)
abline(lm(Theater_freq ~ Price_influence, Segmentation), col = "grey20")
# Simple Linear Regression (one predictor)
simple_model <- lm(Theater_freq ~ Price_influence, data = Segmentation)
simple_model
##
## Call:
## lm(formula = Theater_freq ~ Price_influence, data = Segmentation)
##
## Coefficients:
## (Intercept) Price_influence
## 2.42295 0.07312
summary(simple_model)
##
## Call:
## lm(formula = Theater_freq ~ Price_influence, data = Segmentation)
##
## Residuals:
## Min 1Q Median 3Q Max
## -1.6665 -0.6665 0.3335 0.3577 1.5039
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 2.42295 0.54878 4.415 0.000297 ***
## Price_influence 0.07312 0.15441 0.474 0.641190
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 0.8735 on 19 degrees of freedom
## Multiple R-squared: 0.01167, Adjusted R-squared: -0.04035
## F-statistic: 0.2243 on 1 and 19 DF, p-value: 0.6412
# Simple Linear Regression (one predictor)
multivarite_model <- lm(Theater_freq ~ Price_influence + Ent_spend + Age_group, data = Segmentation)
multivarite_model
##
## Call:
## lm(formula = Theater_freq ~ Price_influence + Ent_spend + Age_group,
## data = Segmentation)
##
## Coefficients:
## (Intercept) Price_influence Ent_spend Age_group
## 2.3494822 0.1092250 -0.0009396 0.1397336
summary(multivarite_model)
##
## Call:
## lm(formula = Theater_freq ~ Price_influence + Ent_spend + Age_group,
## data = Segmentation)
##
## Residuals:
## Min 1Q Median 3Q Max
## -1.7402 -0.6650 0.2395 0.4650 1.4861
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 2.3494822 0.6222954 3.776 0.00151 **
## Price_influence 0.1092250 0.1582529 0.690 0.49939
## Ent_spend -0.0009396 0.0008232 -1.141 0.26954
## Age_group 0.1397336 0.1681093 0.831 0.41738
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 0.8811 on 17 degrees of freedom
## Multiple R-squared: 0.1001, Adjusted R-squared: -0.05875
## F-statistic: 0.6301 on 3 and 17 DF, p-value: 0.6056
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