Articles by R on Data & The World

Formatting With ggtext Example

July 3, 2020 | 0 Comments

This is a quick example regarding the ggtext package. It’s one of the many packages that extends ggplot2, with this one having a focus on adding and formatting text in graphs. The particularly interesting thing for me is that it allows Markdown and other formatting of the labels in ...
[Read more...]

A Slightly More Advanced MCMC Example

June 13, 2020 | 0 Comments

I’ve seen a number of examples of MCMC algorithms, and while they’re all solid, a lot of them tend to be a bit too neat - they have a fairly simple model, a single predictor (maybe two), and not much else. This one is a good example, as ...
[Read more...]

Detecting Streaks in R

June 5, 2020 | 0 Comments

Inspired by this post, which tries to calculate streaks in Python’s pandas library, I thought I’d give it a try in R, since it’s all just dataframe operations in the Python post. I won’t repeat his analysis, but I will replicate the streak determination and some ...
[Read more...]

538 Dungeons & Dragons Riddler

May 22, 2020 | 0 Comments

This problem was the Riddler Classic on 538 for May 15, 2020. The problem is as follows: The fifth edition of Dungeons & Dragons introduced a system of “advantage and disadvantage.” When you roll a die “with advantage,” you roll the die twice and keep the higher result. Rolling “with disadvantage” is similar, except ...
[Read more...]

Looking Normal(ly Distributed)

May 12, 2020 | 0 Comments

Among all probability distributions, the normal distribution is probably the most well-established and well-characterized. The importance of things like the central limit theorem and the normality assumptions in linear regression highlight it well. One of the more interesting ones is the fact that you can approximate a binomial distribution with ...
[Read more...]

An (Animated) Example of Bayesian Updating

April 11, 2020 | 0 Comments

Bayesian statistics is centered on constructing certain assumptions about how the probability of an event is distributed, and then adjusting that belief as new information comes in. It can be more involved to construct a Bayesian model as opposed to the “look at many things in aggregate” approach used in ...
[Read more...]

MST3K Episode vs Movie Scores

February 8, 2020 | 0 Comments

First broadcast in 1988, Mystery Science Theater 3000 is a television show whose nominal story involves a guy being trapped in space by a couple of mad scientist types…which is actually just an excuse to have a few guys make fun of really, really bad movies. This raises a few unusual ...
[Read more...]

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)