<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>Bits and Pieces — Technical</title><description>Software, applied AI, scientific computing and statistics by Lincoln Colling.</description><link>https://blog.colling.net.nz/</link><language>en-NZ</language><item><title>Bayes factors for comparing variances</title><link>https://blog.colling.net.nz/posts/bayes-factors-for-comparing-variances/</link><guid isPermaLink="true">https://blog.colling.net.nz/posts/bayes-factors-for-comparing-variances/</guid><description>Comparing a sample variance with a reference variance using Bayesplay, checking directed Bayes factors, and exploring why the result should not depend on the units of measurement.</description><pubDate>Sun, 23 Aug 2026 00:00:00 GMT</pubDate><category>statistics</category><category>bayes</category><category>r</category></item><item><title>CRusty R</title><link>https://blog.colling.net.nz/posts/crusty-r/</link><guid isPermaLink="true">https://blog.colling.net.nz/posts/crusty-r/</guid><description>Why would you only want to write one language when you can write all the languages. In this short post I’ll briefly explain how, with the help of C, you can write Rust functions that you can call from R.</description><pubDate>Mon, 22 Aug 2022 00:00:00 GMT</pubDate><category>rust</category><category>r</category><category>c</category></item><item><title>Functional programming in R: Part 2</title><link>https://blog.colling.net.nz/posts/speeding-up-bfda-part2/</link><guid isPermaLink="true">https://blog.colling.net.nz/posts/speeding-up-bfda-part2/</guid><description>In Part 1 of this series, I showed how Functional-style code allows you to separate the what and the how of your code, and how doing so opened up new ways of solving programming problems. Part 1 covered the reduce / accumulate family of higher-order functions, and in the current post I cover the apply / map family of higher-order functions. Finally, I show how changing from loops to the apply / map family of higher-order functions parallel programming becomes a trivial matter of slightly modifying a function name.</description><pubDate>Thu, 07 Jul 2022 00:00:00 GMT</pubDate><category>functional programming</category><category>r</category><category>parallel programming</category></item><item><title>Understanding p values through simulation</title><link>https://blog.colling.net.nz/posts/simulating_pvalues/</link><guid isPermaLink="true">https://blog.colling.net.nz/posts/simulating_pvalues/</guid><description>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.</description><pubDate>Mon, 06 Jun 2022 00:00:00 GMT</pubDate><category>statistics</category><category>frequentist</category><category>teaching</category></item><item><title>Functional programming in R: Part 1</title><link>https://blog.colling.net.nz/posts/speeding-up-bfda-part1/</link><guid isPermaLink="true">https://blog.colling.net.nz/posts/speeding-up-bfda-part1/</guid><description>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).</description><pubDate>Tue, 24 May 2022 00:00:00 GMT</pubDate><category>functional programming</category><category>r</category></item><item><title>Robustness analysis for informed Bayesian t-tests</title><link>https://blog.colling.net.nz/posts/adventures-in-wasm/</link><guid isPermaLink="true">https://blog.colling.net.nz/posts/adventures-in-wasm/</guid><description>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.</description><pubDate>Thu, 14 Apr 2022 00:00:00 GMT</pubDate><category>programming</category><category>statistics</category><category>bayes</category></item></channel></rss>