Big Five Personality Analysis

Author

John Sakaluk

Published

September 18, 2026

Introduction

Here is a reproducible Quarto workflow where we used the linear model to predict levels of extraversion from demographic and personality variables.

Show code
library(tidyverse)
library(psych)
library(broom)
library(gt)
library(performance)

# Load the example BFI data included with the psych package
data("bfi", package = "psych")

# Standard scoring keys supplied for the BFI data
bfi_keys <- list(
  Agreeableness = c("-A1", "A2", "A3", "A4", "A5"),
  Conscientiousness = c("C1", "C2", "C3", "-C4", "-C5"),
  Extraversion = c("-E1", "-E2", "E3", "E4", "E5"),
  Neuroticism = c("N1", "N2", "N3", "N4", "N5"),
  Openness = c("O1", "-O2", "O3", "O4", "-O5")
)

Methods

Data

We analyzed the bfi data set distributed with the psych package. The original data set contains 2800 participants and 28 variables. The first 25 variables contain personality items measuring five broad personality dimensions; the remaining variables contain demographic information.

The five personality dimensions were Agreeableness, Conscientiousness, Extraversion, Neuroticism, and Openness. Items were scored using the scoring keys supplied with the psych package, including reverse-scoring where required.

Show code
#| label: prepare-data

# Score the five BFI scales.
# scoreItems() also provides scale reliability estimates.
bfi_scoring <- psych::scoreItems(
  keys = bfi_keys,
  items = bfi,
  min = 1,
  max = 6,
  impute = "none"
)

# Convert the generated scale scores to a tibble and retain demographics.
bfi_analysis <- bfi_scoring$scores |>
  as_tibble() |>
  bind_cols(
    bfi |>
      select(gender, education, age)
  ) |>
  mutate(
    gender = factor(
      gender,
      levels = c(1, 2),
      labels = c("Male", "Female")
    )
  )

Scale scores represent the mean of the available items belonging to each personality dimension. Missing item responses were not imputed; scale scores were instead calculated from the available keyed items.

Analysis

We first summarized the distributions of the five personality scores and examined their internal consistency using coefficient alpha. We then fitted two linear regression models predicting Extraversion

The first model included age and gender as predictors. The second model additionally included Neuroticism and Conscientiousness. The nested models were compared in terms of their R² and information criteria.

Before interpreting the retained model, we visually evaluated its regression assumptions using diagnostic plots produced by the performance package. These diagnostics were used to examine residual normality, linearity and constant residual variance, influential observations, and multicollinearity.

Results

Descriptive statistics and reliability

Show code
scale_names <- names(bfi_keys)

# psych::describe() returns a large set of descriptive statistics.
# Keep only the quantities useful for this report.
descriptive_table <- bfi_analysis |>
  select(all_of(scale_names)) |>
  psych::describe() |>
  as.data.frame() |>
  rownames_to_column("Scale") |>
  as_tibble() |>
  select(
    Scale,
    n,
    mean,
    sd,
    median,
    min,
    max,
    skew
  )

# scoreItems() provides coefficient alpha for each scored scale.
reliability_table <- tibble(
  Scale = names(bfi_keys),
  Alpha = as.numeric(bfi_scoring$alpha)
)

scale_summary <- descriptive_table |>
  left_join(reliability_table, by = "Scale")

scale_summary |>
  gt() |>
  tab_header(
    title = "Descriptive Statistics and Reliability",
    subtitle = "Big Five personality scale scores"
  ) |>
  cols_label(
    Scale = "Scale",
    n = "N",
    mean = "Mean",
    sd = "SD",
    median = "Median",
    min = "Minimum",
    max = "Maximum",
    skew = "Skewness",
    Alpha = "α"
  ) |>
  fmt_number(
    columns = c(mean, sd, median, min, max, skew, Alpha),
    decimals = 2
  ) |>
  opt_row_striping()
Descriptive Statistics and Reliability
Big Five personality scale scores
Scale N Mean SD Median Minimum Maximum Skewness α
Agreeableness 2800 4.65 0.90 4.80 1.00 6.00 −0.76 0.70
Conscientiousness 2800 4.27 0.95 4.40 1.00 6.00 −0.40 0.73
Extraversion 2800 4.15 1.06 4.20 1.00 6.00 −0.48 0.76
Neuroticism 2800 3.16 1.20 3.00 1.00 6.00 0.21 0.81
Openness 2800 4.59 0.81 4.60 1.20 6.00 −0.34 0.60

Regression models

Before fitting the models, cases with missing values on the variables required by the larger model were removed so that both models were estimated using exactly the same observations.

Show code
#| label: regression-data

model_data <- bfi_analysis |>
  filter(age >= 30) |>
  select(
    Neuroticism,
    age,
    gender,
    Extraversion,
    Conscientiousness
  ) |>
  drop_na()

The regression analyses therefore used 1044 participants.

Show code
#| label: fit-models

model_1 <- lm(
  Extraversion ~ age + gender,
  data = model_data
)

model_2 <- lm(
  Extraversion ~ age + gender + Neuroticism + Conscientiousness,
  data = model_data
)
Show code
#| label: compare-models

model_comparison <- bind_rows(
  glance(model_1) |> mutate(Model = "Model 1: Age + gender"),
  glance(model_2) |> mutate(
    Model = "Model 2: Age + gender + extraversion + neuroticism"
  )
) |>
  select(Model, r.squared, adj.r.squared, AIC, BIC)

model_comparison |>
  gt() |>
  tab_header(
    title = "Comparison of Candidate Regression Models"
  ) |>
  cols_label(
    Model = "Model",
    r.squared = "R²",
    adj.r.squared = "Adjusted R²",
    AIC = "AIC",
    BIC = "BIC"
  ) |>
  fmt_number(
    columns = c(r.squared, adj.r.squared),
    decimals = 3
  ) |>
  fmt_number(
    columns = c(AIC, BIC),
    decimals = 1
  ) |>
  opt_row_striping()
Comparison of Candidate Regression Models
Model R² Adjusted R² AIC BIC
Model 1: Age + gender 0.018 0.016 3,022.7 3,042.5
Model 2: Age + gender + extraversion + neuroticism 0.126 0.123 2,905.2 2,934.9
Show code
#| label: nested-model-test

model_test <- anova(model_1, model_2) |>
  tidy()

model_test |>
  gt() |>
  tab_header(
    title = "Nested Model Comparison"
  ) |>
  fmt_number(
    columns = where(is.numeric),
    decimals = 3
  )
Nested Model Comparison
term df.residual rss df sumsq statistic p.value
Extraversion ~ age + gender 1,041.000 1,097.269 NA NA NA NA
Extraversion ~ age + gender + Neuroticism + Conscientiousness 1,039.000 976.741 2.000 120.528 64.105 0.000

Adding Neuroticism and Conscientiousness increased explained variance from R² = 0.018 to R² = 0.126. The larger model also had a lower AIC than the simpler model.

For this demonstration, we therefore retain Model 2 as the candidate final model.

Model diagnostics

Model comparison favored Model 2, so we next examined whether its assumptions appeared reasonable before interpreting its coefficients.

Show code
#| label: model-diagnostics
#| fig-width: 9
#| fig-height: 6
#| column: page

diagnostic_plots <- performance::check_model(
  model_2,
  check = c(
    "qq",
    "linearity",
    "homogeneity",
    "outliers",
    "vif"
  ),
  panel = FALSE,
  base_size = 13
)

plot(diagnostic_plots)
$NCV


$HOMOGENEITY


$OUTLIERS


$VIF


$QQ

The diagnostic plots were examined for evidence of substantial violations of the assumptions underlying the linear regression model. In particular, we looked for strong departures from residual normality, systematic patterns in the residuals, non-constant residual variance, highly influential observations, and problematic collinearity among the predictors

Final model

Show code
#| label: final-model-table

final_model_table <- tidy(
  model_2,
  conf.int = TRUE,
  conf.level = .95
) |>
  mutate(
    term = recode(
      term,
      `(Intercept)` = "Intercept",
      age = "Age",
      genderFemale = "Gender: Female",
      Neuroticism = "Neuroticism",
      Conscientiousness = "Conscientiousness"
    ),
    # Format p-values for presentation
    p = case_when(
      p.value < .001 ~ "< .001",
      TRUE ~ sprintf("%.3f", p.value)
    )
  )

final_model_table |>
  select(
    term,
    estimate,
    std.error,
    statistic,
    conf.low,
    conf.high,
    p
  ) |>
  gt() |>
  tab_header(
    title = "Linear Regression Predicting Extraversion",
    subtitle = paste0(
      "N = ", nobs(model_2),
      "; R² = ", round(glance(model_2)$r.squared, 3)
    )
  ) |>
  cols_label(
    term = "Predictor",
    estimate = "b",
    std.error = "SE",
    statistic = "t",
    conf.low = "95% CI Low",
    conf.high = "95% CI High",
    p = "p"
  ) |>
  fmt_number(
    columns = c(
      estimate,
      std.error,
      statistic,
      conf.low,
      conf.high
    ),
    decimals = 2
  ) |>
  opt_row_striping()
Linear Regression Predicting Extraversion
N = 1044; R² = 0.126
Predictor b SE t 95% CI Low 95% CI High p
Intercept 4.16 0.25 16.73 3.67 4.65 < .001
Age −0.01 0.00 −2.75 −0.02 0.00 0.006
Gender: Female 0.30 0.07 4.56 0.17 0.43 < .001
Neuroticism −0.20 0.03 −7.68 −0.25 −0.15 < .001
Conscientiousness 0.20 0.03 5.88 0.13 0.26 < .001

Discussion

Look at those results! Incredible!