R

Blogs on the R software.

Sub-Gaussian property for the Beta distribution (part 3, final)

December 26, 2017
By
Sub-Gaussian property for the Beta distribution (part 3, final)

In this third and last post about the Sub-Gaussian property for the Beta distribution [1] (post 1 and post 2), I would like to show the interplay with the Bernoulli distribution as well as some connexions with optimal transport (OT is a hot topic in general, and also on this blog with Pierre’s posts on Wasserstein […]

Read more »

Someone Should Help Prof Alice Silverberg Set Up A Blog

Yesterday I came across a very interesting blog cleverly named “Alice’s Adventures in Numberland”. It is written by a professor at UCI named Alice Silverberg. I don’t know her. If I had two free hours, I’d make an (unsolicited) offer that she probably cannot refuse: I want to set up a “modern” blog site for her using blogdown (or pure Hugo). She should at least have an RSS feed so…

Read more »

Add An on.exit() Call to A Parent Function

Add An on.exit() Call to A Parent Function

Kevin wrote a clever defer() function in a pull request two months ago, and it almost killed me when I first saw it.1 It looked so short, but I’m really bad at reasoning code that uses a combination of substitute(), evalq(), and do.call() with the envir argument, especially when substitute() is used three times, and there are three envir arguments. I was once confused by on.exit(), so the defer() function…

Read more »

Sub-Gaussian property for the Beta distribution (part 2)

December 20, 2017
By
Sub-Gaussian property for the Beta distribution (part 2)

  As a follow-up on my previous post on the sub-Gaussian property for the Beta distribution [1], I’ll give here a visual illustration of the proof. A random variable with finite mean is sub-Gaussian if there is a positive number such that: We focus on X being a Beta random variable. Its moment generating function is known as […]

Read more »

Being Busy vs Being Productive

Karthik wished to be productive this year and didn’t seem to enjoy being extremely busy last year (I just learned it from Maëlle Salmon’s blog post). I guess nobody likes to be busy, yet everyone would love to be productive. He pointed to an interesting blog post that explained the main difference between being busy and being productive. The latter means you have to finish your project. It resonated well…

Read more »

Another Year, Another R Package, Another Book, and Endless Joy

Another Year, Another R Package, Another Book, and Endless Joy

Last year when I finished the bookdown package and the companion book “bookdown: Authoring Books and Technical Documents with R Markdown”, I summarized my 2016 as “One year, one package, one book, and endless joy.“ This year, the summary is pretty much the same: another year, another R package (blogdown), another book, and still endless joy. The blogdown book is available for purchase now. I’m not writing this post to…

Read more »

Le Monde puzzle [#1033]

December 18, 2017
By
Le Monde puzzle [#1033]

A simple Le Monde mathematical puzzle after two geometric ones I did not consider: Bob gets a 2×3 card with three integer entries on the first row and two integer entries on the second row such that (i) entry (1,1) is 1, (ii) summing up subsets of adjacent entries produces all integers from 1 to […]

Read more »

How To Stop Sexual Harassment Or Other Misconduct At Conferences

The statistics community must have been shocked to learn how terrible it could be for females to attend conferences from a courageous post published by Kristian Lum a couple of days ago. At least I was shocked, and have been thinking about how we could prevent this in the future since I read her post. Today I read Xi’an’s post “how to make ISBA conference safe for all?”. I guess…

Read more »

The Most Unexpected Discovery of An R Language Feature

Two months ago while I was trying to upgrade the highlight.js library in the rmarkdown package (PR #1178), I read the source code of the R syntax highlighter in our fork of highlight.js (created by Joe Cheng, our CTO), and these lines caught my attention: { // ..1, ..2, etc. className: 'keyword', begin: "\\.\\.\\d+(?![\\w.])", end: hljs.IMMEDIATE_RE, relevance: 10 } I didn’t know what “..1, ..2, etc” meant when I first…

Read more »

NIPS 2017 Summary

December 15, 2017
By
NIPS 2017 Summary

Some (opinionated) themes and highlights from this year’s NIPS conference:

Read more »


Subscribe

Email:

  Subscribe