Rasmus Bååth Profile picture
Data science (AKA statistics). Likes conditioning on the data (AKA Bayes). Works at https://t.co/bkxkLUEQmb.
Feb 2, 2023 14 tweets 5 min read
#ChatGTP knows everything about p-values and that's a problem. A short 🧵 There's a lot of non-sense written about p-values on the internet. ChatGTP has learned it all, and readily mixes correct statements with nonsense like "p < 0.05 means there is less than a 5% chance that the results are due to chance". Image
Oct 27, 2021 4 tweets 2 min read
The good thing when working with tidy data is that python, R and SQL code often becomes very similar.
(Makes it easier for my brain, when switching between languages 🧠👍) Of course, then SQL had to go and get the order of statements completely wrong... well well...
Dec 5, 2020 7 tweets 3 min read
By now you might have heard the good news that #rstats is getting a new shorthand function syntax. Soon you'll be able to write the following in R!

add <- \(x, y) x + y

But why does this new syntax use the backslash?
(A thread. 1/n) The \(x,y) x + y syntax might look odd, but is borrowed (as far as I know) from perhaps the most functional of all programming languages - Haskell - where a similar syntax is used (with the addition of an -> arrow).
But why the backslash?
(2/n)