mostly rstats, occasionally math

Joined September 2011
113 Photos and videos
Pinned Tweet
Pleased to announce that I just signed a contract with @CRCPress to publish a print version of my stats book! I love working with them, as they will allow the web based version to stay after the print book comes out! mathstat.slu.edu/~speegle/_b…
3
4
33
Haven't seen many Day 11 #Rstats #adventofocode solutions posted, so here is mine. Decided to just manually input the functions and test conditions, don't judge me.
2
1
5
The sum of the first 9 primes is 100, for example, and the LCM of 3, 16, 9, 5, 7, 11, 13, 17, 19 (232792560) is larger than the LCM of 2, 3, 5, 7, 11, 13, 17, 19, 23 (223092870) 2/3
1
I remember this because I was asked on an in-class exam (pencil and paper) what the largest LCM of integers that add to 100 is! I did not get that question right 3/3
Day 5 of #RStats #AdventOfCode2022 complete
1
Day 2 of #AdventOfCode in #Rstats complete. Not thrilled with this solution...
2
4
52 Heads first and 23 Tails first out of 75 respondents. Exercises 10.20-10.21 in our book mathstat.slu.edu/~speegle/_b… explores this from Bar-Hillel, Peer, and Acquisti, “‘Heads or Tails?’ – a Reachability Bias in Binary Choice” @turtlegraphics 1/2
Hey Twitter, I have a game we can play: How well do you think you could simulate a sequence of flips from a fair coin? Reply to this tweet with a sequence of at least 20 flips (using H and T to mean heads and tails, for e.g. HTTTHTTHTHHTHHTHTTTT) and I will tell you how you did
1
1
2
I suspect some of the tails first responses were using an automated system of some kind, though it might also be that they were aware of the heads first bias. 2/2
1
Really enjoying James, @daniela_witten, Hastie and Tibshirani's ISLR. I have a modest proposal to improve Figure 7.1, though. #rstats #LePetitPrince
1
4
31
HELP! I ran rm -rf libs, and now my computer can't be woke
1
3
Wordle 198 3/6. First try at Wordle, and I am announcing my retirement. 🟨⬜⬜⬜🟩 ⬜⬜🟨🟨🟩 🟩🟩🟩🟩🟩
#rstats #adventofocode day 24 complete. do you know what happens if dd is a data frame of one variable x, and it contains one value, dd$x = "1 -2 3", and you use tidyr::separate(dd, x, into = c("a", "b", "c"), convert = T)? well, one day later, i do. github.com/speegled/advent_o…

1
8
#rstats #adventofcode day 23. yikes. we'll call this one a "computer aided" solution. found a solution by hand and counted the minimal number of steps each type of amphipod could possibly have taken. 1/1
1
1
5
the D amphipods were "clearly" optimal so i worked on getting the C amphipods better. turns out there was only one that wasn't optimal, so i fixed the one mistake in my plan. double plus unpleased with this solution
I just completed "Reactor Reboot" - Day 22 - Advent of Code 2021 adventofcode.com/2021/day/22 #AdventOfCode #RStats I was more nervous than i thought i would be after letting my code run for 12 hours, but it worked.

1
1
4
I kept a running list of disjoint parallelepipeds that represented the union/set difference of all of the given cubes. Pretty sure that I could've improved the code a lot. The ugly code is here: github.com/speegled/advent_o…

#rstats #adventofcode day 22 the race is on. will my code finish before midnight? 351/420
1
1
1
i think it's going to make it. 406/420
1
#rstats #adventofcode day 20 i really wanted to use convolution to solve this. tried stats::filter and OpenImageR::convolution, but didn't find the perfect tool.
1
4