Bits and Pieces
  • About
Categories
All (3)
bayes (1)
frequentist (1)
functional programming (1)
programming (1)
r (1)
statistics (2)
teaching (1)

Understanding p values through simulation

statistics
frequentist
teaching

The properties of p values can be difficult to understand. Therefore, one way to develop a good conceptual understanding of p values is through simulation. The document below allows you to simulate experiments and to examine how the distribution of data and p-values change.

Jun 6, 2022
Lincoln Colling

Speeding up BFDA

Part 1: Functional style code
functional programming
r

There’s recently been a bit of talk on twitter about the relative benefits of loops versus more functional-style code. Most of these discussions have centred around the relative performance benefits. However, I think this slightly misses the point. Functional-style code allows you to separate the what and the how of your code in a way that opens up new ways of thinking about problems. The end result is often faster code, but this benefit comes from writing cleaner code the encourages clearer thinking. In this post, I show how to speed up some of the simulation code in the {BFDA} R package using functional design patterns. Specifically, reductions and accumulations (aka scans).

May 24, 2022
Lincoln Colling

Robustness analysis for informed Bayesian t-tests

Adventures in WASM and Quarto
programming
statistics
bayes

Currently, robustness analysis for informed Bayesian t-tests is not implemented in JASP. So I thought I’d just build it! This is also a great excuse to play around with Rust WASM and Observable blocks in Quarto.

Apr 14, 2022
Lincoln Colling
No matching items