Sign in

Yun-Xiao Li / 李云箫

@yunxiao-li.bsky.social
33 followers 48 following 10 posts

Name pronunced: yoon-shaw lee | PhD in Psychology 🧠| Drummer 🥁 | Golden Age Mystery lover 🕵🏻‍♂️

PostsRepliesMedia
Reposted by Yun-Xiao Li / 李云箫
Warwick Psychology @warwickpsych.bsky.social · 09/12/2025
Welcome to Dr Yun-Xiao Li, who will be investigating how we make choices about risk and the future in his ESRC-funded postdoc with Dr. Manos Konstantinidis. Yun-Xiao has not travelled far: he did his PhD in our department on discreteness in mental sampling and decision making.
Dr Yun-Xiao Li presenting a poster at a conference
0121
Reposted by Yun-Xiao Li / 李云箫
Henrik Singmann @singmann.bsky.social · 02/09/2025
Exciting #rstats news for Bayesian model comparison: bridgesampling is finally ready to support cmdstanr, see screenshot. Help us by installing the development version of bridgesampling and letting us know if it works for your model(s): pak::pkg_install("quentingronau/bridgesampling#44")
R code and output showing the new functionality:
``` r
## pak::pkg_install("quentingronau/bridgesampling#44")
## see: https://cran.r-project.org/web/packages/bridgesampling/vignettes/bridgesampling_example_stan.html
library(bridgesampling)

### generate data ###
set.seed(12345)
mu <- 0
tau2 <- 0.5
sigma2 <- 1
n <- 20
theta <- rnorm(n, mu, sqrt(tau2))
y <- rnorm(n, theta, sqrt(sigma2))

### set prior parameters ###
mu0 <- 0
tau20 <- 1
alpha <- 1
beta <- 1

stancodeH0 <- 'data {
  int<lower=1> n; // number of observations
  vector[n] y; // observations
  real<lower=0> alpha;
  real<lower=0> beta;
  real<lower=0> sigma2;
}
parameters {
  real<lower=0> tau2; // group-level variance
  vector[n] theta; // participant effects
}
model {
  target += inv_gamma_lpdf(tau2 | alpha, beta);
  target += normal_lpdf(theta | 0, sqrt(tau2));
  target += normal_lpdf(y | theta, sqrt(sigma2));
}
'
tf <- withr::local_tempfile(fileext = ".stan")
writeLines(stancodeH0, tf)
mod <- cmdstanr::cmdstan_model(tf, quiet = TRUE, force_recompile = TRUE)

fitH0 <- mod$sample(
  data = list(y = y, n = n,
              alpha = alpha,
              beta = beta,
              sigma2 = sigma2),
  seed = 202,
  chains = 4,
  parallel_chains = 4,
  iter_warmup = 1000,
  iter_sampling = 50000,
  refresh = 0
)
#> Running MCMC with 4 parallel chains...
#> 
#> Chain 3 finished in 0.8 seconds.
#> Chain 2 finished in 0.8 seconds.
#> Chain 4 finished in 0.8 seconds.
#> Chain 1 finished in 1.1 seconds.
#> 
#> All 4 chains finished successfully.
#> Mean chain execution time: 0.9 seconds.
#> Total execution time: 1.2 seconds.
H0.bridge <- bridge_sampler(fitH0, silent = TRUE)
print(H0.bridge)
#> Bridge sampling estimate of the log marginal likelihood: -37.73301
#> Estimate obtained in 8 iteration(s) via method "normal".

#### Expected output:
## Bridge sampling estimate of the log marginal likelihood: -37.53183
## Estimate obtained in 5 iteration(s) via method "normal".
```
2289
Reposted by Yun-Xiao Li / 李云箫
Norm Matloff (你有冇諗清楚呀?) @matloff.bsky.social · 15/08/2025
#rstats #statistics I've released my new open source book, "Powered by Linear Algebra: the role of matrices and vector space in data science," at matloff.github.io/WackyLinearA.... Turns the classic LA course on its head! Still proves the theorems, but with a deep emphasis on applications.
matloff.github.io
88423
Reposted by Yun-Xiao Li / 李云箫
Adam Sanborn @asanborn.bsky.social · 16/05/2025
Our lab has a list of papers that use statistical sampling algorithms like MCMC to explain human behaviour. Thanks to @lcastillo.bsky.social, you can select by behaviour or algorithm. If we've missed any, please let us know! sampling.warwick.ac....
0126
Yun-Xiao Li / 李云箫 @yunxiao-li.bsky.social · 21/05/2025
Had a great time working with Lucas and Adam on this preprint and the package! Let us know what you think!
010
Reposted by Yun-Xiao Li / 李云箫
Mingtong Li @cyberming.bsky.social · 13/05/2025
Thrilled to see my first publication out in PB&R with @sotarokita.bsky.social and @suzanneaussems.bsky.social! Adults interpret novel verbs using iconic speed cues in speech prosody and hand gesture, with a small but reliable link across modalities. Open access: link.springer.com/10.3758/s134...
link.springer.com
Adults interpret iconicity in speech and gesture via the same modality-independent process - Psychonomic Bulletin & Review
Iconicity is the resemblance or similarity between the form of a signal and its meaning. In two studies, we investigated whether adults interpret iconicity in speech and gesture via a modality-indepen...
172
Reposted by Yun-Xiao Li / 李云箫
Michael "Shapes Dude" Betancourt @betanalpha.bsky.social · 17/03/2025
5 stars is better than 4 stars, but can we even define how much better it might be? Modeling ordinal outcomes like ratings is a subtle topic; fortunately I have a new chapter that dives directly into that nuance. HTML: betanalpha.github.io/assets/chapt... PDF: betanalpha.github.io/assets/chapt...
betanalpha.github.io
Ordinal Modeling
2276
Reposted by Yun-Xiao Li / 李云箫
Henrik Singmann @singmann.bsky.social · 19/03/2025
New paper with Tong Liu and Arndt Broeder, just accepted in Cognition. We test novel qualitative predictions from sampling-based models of probability estimation in an event ranking task. Results provide evidence for the idea that mental sampling underlies probability judgements.
1299
Reposted by Yun-Xiao Li / 李云箫
Adam Sanborn @asanborn.bsky.social · 04/03/2025
"Noise in Cognition: Bug or Feature?" is now available in Perspectives on Psychological Science doi.org/10.1177/1745... (1/4)
doi.org
Sage Journals: Discover world-class research
Subscription and open access journals from Sage, the world's leading independent academic publisher.
1179
Yun-Xiao Li / 李云箫 @yunxiao-li.bsky.social · 20/02/2025
🚨 A new preprint is out! How does utility influence mental simulations of risky events? 🤔🎲 We tested this across 4 experiments & found that most people simulate probabilities accurately, but biases emerge in key conditions! If you want to learn more, keep reading! doi.org/10.31234/osf...
doi.org
OSF
165
Reposted by Yun-Xiao Li / 李云箫
Lucas Castillo @lcastillo.bsky.social · 20/02/2025
New Preprint Out! 🚀🚀 Can people generate a random sequence if given enough time? Keep reading if - You make cognitive models with randomness in them - You like to explore the world, be creative, choose well - You want protection from clever agents exploiting patterns in your behavior. osf.io/awg9j
osf.io
OSF
184