Objective

The purpose of this analysis is to see whether age group relates to how often people purchase video games. I then add opinions about game value and preferred platform to see whether they help explain purchasing habits.

Data Cleaning

Our group’s original Qualtrics export contained 14 response records. During cleaning, I removed the two extra Qualtrics metadata rows and three records that contained no survey answers. This left 11 usable responses.

I kept the variables needed for this analysis and removed identifying information. I changed age group, purchase frequency, and opinions about game value into numeric scores.

Four platform answers were recorded as an unidentified number rather than a clear platform name. These answers were treated as missing. Both regression models use the same seven people with complete answers so the results can be compared fairly.

Read the Clean Data

survey <- read.csv(
  "Game_Survey_Clean_Dakotah.csv",
  na.strings = c("", "NA")
)

# Keep the same complete responses for both models.
survey <- survey[complete.cases(survey), ]

# Treat platform as a category, with Console as the reference.
survey$Platform <- factor(
  survey$Platform,
  levels = c("Console", "PC")
)

survey
##    ID Age_group Purchase_freq Worth_price Platform
## 1   1         1             2           1  Console
## 3   3         1             3           3  Console
## 4   4         1             1           3  Console
## 5   5         1             1           3  Console
## 6   6         1             1           2  Console
## 8   8         1             1           3       PC
## 11 11         2             1           1  Console

Variables

The purchase-frequency scores represent categories, not the actual number of games purchased.

Scatterplot

plot(
  Purchase_freq ~ Age_group,
  data = survey,
  pch = 16,
  xlab = "Age Group: 1 = 18–24, 2 = 25–44",
  ylab = "Purchase Frequency: 1 = Never, 2 = Yearly, 3 = Monthly",
  main = "Age Group and Video Game Purchases"
)

abline(
  lm(Purchase_freq ~ Age_group, data = survey),
  col = "blue"
)

The graph shows a weak negative relationship. Older respondents generally reported buying games less often. Some points overlap because several people selected the same answers.

Simple Regression

The simple model uses age group to predict purchase frequency. R’s lm() function fits the regression, and summary() displays the results [1, 2].

simple_model <- lm(
  Purchase_freq ~ Age_group,
  data = survey
)

summary(simple_model)
## 
## Call:
## lm(formula = Purchase_freq ~ Age_group, data = survey)
## 
## Residuals:
##          1          3          4          5          6          8         11 
##  5.000e-01  1.500e+00 -5.000e-01 -5.000e-01 -5.000e-01 -5.000e-01 -4.718e-16 
## 
## Coefficients:
##             Estimate Std. Error t value Pr(>|t|)
## (Intercept)   2.0000     1.0801   1.852    0.123
## Age_group    -0.5000     0.9037  -0.553    0.604
## 
## Residual standard error: 0.8367 on 5 degrees of freedom
## Multiple R-squared:  0.05769,    Adjusted R-squared:  -0.1308 
## F-statistic: 0.3061 on 1 and 5 DF,  p-value: 0.6039

The age coefficient is approximately -0.500. This means the older age group had a purchase-frequency score about half a category point lower than the younger group.

The R-squared is approximately 0.058, meaning age explains about 5.8% of the differences in purchase-frequency scores.

The p-value is approximately 0.604, so this relationship is not statistically significant at the 0.05 level.

Multiple Regression

The second model keeps purchase frequency as the outcome and uses three predictors: age group, opinions about game value, and platform.

multiple_model <- lm(
  Purchase_freq ~ Age_group + Worth_price + Platform,
  data = survey
)

summary(multiple_model)
## 
## Call:
## lm(formula = Purchase_freq ~ Age_group + Worth_price + Platform, 
##     data = survey)
## 
## Residuals:
##          1          3          4          5          6          8         11 
##  3.125e-01  1.438e+00 -5.625e-01 -5.625e-01 -6.250e-01 -5.551e-17 -2.220e-16 
## 
## Coefficients:
##             Estimate Std. Error t value Pr(>|t|)
## (Intercept)   2.4375     2.5898   0.941    0.416
## Age_group    -0.6875     1.3877  -0.495    0.654
## Worth_price  -0.0625     0.5762  -0.108    0.920
## PlatformPC   -0.5625     1.1809  -0.476    0.666
## 
## Residual standard error: 1.031 on 3 degrees of freedom
## Multiple R-squared:  0.1418, Adjusted R-squared:  -0.7163 
## F-statistic: 0.1653 on 3 and 3 DF,  p-value: 0.9133

The results show:

Each coefficient describes the relationship while accounting for the other predictors. None of the predictors is statistically significant.

Comparing the Models

summary(simple_model)$r.squared
## [1] 0.05769231
summary(multiple_model)$r.squared
## [1] 0.1418269
summary(simple_model)$adj.r.squared
## [1] -0.1307692
summary(multiple_model)$adj.r.squared
## [1] -0.7163462

R-squared increased from about 5.8% to 14.2% after adding game value and platform. The age coefficient changed from -0.500 to -0.688 because the second model accounted for the additional factors.

However, adjusted R-squared decreased. This measure accounts for the number of predictors [2], so the higher regular R-squared does not provide clear evidence that the larger model is better.

Age had the largest absolute t statistic among the predictors, but none showed strong evidence of a relationship with purchase frequency.

Only seven people were included in both models, and only one preferred PC. The results should therefore be treated cautiously.

Reflection

Our survey did not show that any one factor clearly explained how often people buy video games. Age had the strongest result, but the evidence was too weak to say it really mattered. The simple model used only age and explained about 5.8% of the differences in buying habits. After adding opinions about game value and preferred platform, that increased to 14.2%. The age result changed slightly because the second model took those other factors into account. However, both models used only seven responses, so we need to be careful about drawing conclusions. The graph showed a slight downward trend, meaning older respondents generally reported buying games less often. If I did this project again, I would collect more responses from people of different ages, make the platform choices clearer, and ask how many games they purchased in the past year. These changes would reduce missing answers and give us a clearer picture of what is related to video game purchases.

Limitations

These results show associations and do not prove cause and effect. Purchase frequency uses categories with unequal time intervals, so linear regression is only an approximation for this exercise. A larger sample and actual purchase counts would help improve the analysis.

References

  1. R Core Team. Fitting Linear Models: lm.
    https://stat.ethz.ch/R-manual/R-devel/library/stats/html/lm.html

  2. R Core Team. Summarizing Linear Model Fits: summary.lm.
    https://stat.ethz.ch/R-manual/R-devel/library/stats/html/summary.lm.html