+ - 0:00:00
Notes for current slide
Notes for next slide

Bayesian Linear Models

04 - Binary outcomes

Stefano Coretta

University of Edinburgh

2023/07/07

1 / 7

The MALD data: Accuracy

2 / 7

Binary outcomes

rt_bm_5 <- brm(
ACC ~ IsWord,
data = mald,
family = "bernoulli",
backend = "cmdstanr",
cores = 4,
file = "./data/cache/rt_bm_5",
seed = my_seed
)
  • Bernoulli is the family of probability distributions used for binary variables.
3 / 7

Binary outcomes

## Population-Level Effects:
## Estimate Est.Error l-89% CI u-89% CI Rhat Bulk_ESS Tail_ESS
## Intercept -2.24 0.09 -2.38 -2.11 1.00 2604 2534
## IsWordFALSE 0.43 0.11 0.25 0.61 1.00 3484 2713
4 / 7

Binary outcomes

## Population-Level Effects:
## Estimate Est.Error l-89% CI u-89% CI Rhat Bulk_ESS Tail_ESS
## Intercept -2.24 0.09 -2.38 -2.11 1.00 2604 2534
## IsWordFALSE 0.43 0.11 0.25 0.61 1.00 3484 2713

What are those numbers?!

4 / 7

Binary outcomes

5 / 7

Binary outcomes

6 / 7

Binary outcomes

## Population-Level Effects:
## Estimate Est.Error l-89% CI u-89% CI Rhat Bulk_ESS Tail_ESS
## Intercept -2.24 0.09 -2.38 -2.11 1.00 2604 2534
## IsWordFALSE 0.43 0.11 0.25 0.61 1.00 3484 2713


round(plogis(-2.24), 2)
## [1] 0.1
round(plogis(-2.24 + 0.43), 2)
## [1] 0.14
7 / 7

The MALD data: Accuracy

2 / 7
Paused

Help

Keyboard shortcuts

, , Pg Up, k Go to previous slide
, , Pg Dn, Space, j Go to next slide
Home Go to first slide
End Go to last slide
Number + Return Go to specific slide
b / m / f Toggle blackout / mirrored / fullscreen mode
c Clone slideshow
p Toggle presenter mode
t Restart the presentation timer
?, h Toggle this help
Esc Back to slideshow