Braids and the Yang-Baxter equation
I recently gave a talk on the Yang-Baxter equation. The focus of the talk was to state the connection between the Yang-Baxter equation and the braid relation. This connection comes from a system of interacting particles. In this post, I’ll go over part of my talk. You can access the full set of notes here.…
Concavity of the squared sum of square roots
The -norm of a vector
is defined to be:
If
, then the
-norm is convex. When
, this function is not convex and actually concave when all the entries of
are non-negative. On a recent exam…
Log-sum-exp trick with negative numbers
Suppose you want to calculate an expression of the form where
. Such expressions can be difficult to evaluate directly since the exponentials can easily cause overflow errors. In this post, I’ll talk about a clever way to avoid such errors. If there were…
The beta-binomial distribution
The beta-binomial model is a Bayesian model used to analyze rates. For a great derivation and explanation of this model, I highly recommend watching the second lecture from Richard McElreath’s course Statistical Rethinking. In this model, the data, , is assumed to be binomially distributed with a fixed number of trail
but…
Two sample tests as correlation tests
Suppose we have two samples and
and we want to test if they are from the same distribution. Many popular tests can be reinterpreted as correlation tests by pooling the two samples and introducing a dummy variable that encodes which sample each data point comes from. In this…
MCMC for hypothesis testing
A Monte Carlo significance test of the null hypothesis requires creating independent samples
. The idea is if
and independently
are i.i.d. from
, then for any test statistic
, the rank of
among
…
How to Bake Pi, Sherman-Morrison and log-sum-exp
A few months ago, I had the pleasure of reading Eugenia Cheng’s book How to Bake Pi. Each chapter starts with a recipe which Cheng links to the mathematical concepts contained in the chapter. The book is full of interesting connections between mathematics and the rest of the world. One of my favourite ideas in…
Looking back on the blog
Next week I’ll be starting the second year of my statistics PhD. I’ve learnt a lot from taking the first year classes and studying for the qualifying exams. Some of what I’ve learnt has given me a new perspective on some of my old blog posts. Here are three things that I’ve written about before…
Total Variation and Marathon Running
Total variation is a way of measuring how much a function “wiggles”. In this post, I want to motivate the definition of total variation by talking about elevation in marathon running. Comparing marathon courses On July 24th I ran the 2022 San Francisco (SF) marathon. All marathons are the same distance,…
Finding Australia’s youngest electorates with R
My partner recently wrote an article for Changing Times, a grassroots newspaper that focuses on social change. Her article, Who’s not voting? Engaging with First Nations voters and young voters, is about voter turn-out in Australia and an important read. While doing research for the article, she wanted to know which electorates in Australia had the…
Loading…
Something went wrong. Please refresh the page and/or try again.
Follow My Blog
Get new content delivered directly to your inbox.