News for hackers. Stuff that matters.

vital303

Re:Gambler’s Ruin Problem [pdf] on Sunday October 02, 2022 @08:06PM (#33061792)
Here is another solution. Assume a head multiplies your money by `r = q/p', and a tail divides by `r'. This bet is fair (the expected value of a dollar is a dollar: `p r + q 1/r = q + p = 1').

Start with a dollar, after several tosses you have `r^(head-tail difference)' dollars. The game ends if head-tail difference is `N - i' (with probability `x') or if head-tail difference is `-i' (probability is `1 - x'). The expected value is still a dollar:

1 = x r^(N - i) + (1 - x) (1/r)^i

Solve this equation for x.

Show HN: Interactive real-time simulation of flowing crystals

https://cselab.github.io/aphros/wasm/aphros.html?config=M4UwLgBMYE4JYDsDmExzAGxBARAMQwHsB3RFAYxgE9oBDDHAKEdEmnmQgDc5gBXerkZdCGPgFtsAMxi1yaQgggBvRhCjhuIed3p8QwCAAYIARjUbIXbZHKjCMQwBIAwlRAYixCK_eeSFqxaOoQADnLocAbGZowAvoxMLJoAJoR8AEZYECAAHmAgCJAArMmQiJCFtFkgAPog4hkgKbFlEBU5GbWI6N0I1o7YRm3sZJ21GLxgteFgABa4iJMIIBYZhLkQAEwAdMXbezEHABzGOwDMaxsQxTsmu_smEOc7W2cA7InMQaOcGeQzWjzRYIZardTEegYGImEzKCDrTawmKmEwJdRLTSmGHqeGInEmUwgAC0ADYzGiLOlMJo8ddHiiSeTURAEkkgmlMtkACpmHbmIIdKo1WoZTJIQqxPAAJQA8gBZADKABkAJIAEQAotLLBBOTUEeLCrUUpAnNyRrAxmKMhKEIDgUtENh8UYdu8Dgy3e9Hq9Scw2vrsqbYfzLRwULQUtZ5HBFLVgKIBtxCFJxIH0gbgHAkOJaGcthmudgYHNCNiBalM9lxHxsW6jEZShzqyWy283ZXIEHsLWO3dG82q8WIOQpBhoGdSuGxsBJikQI4hOpeW6AJx884QO2LoFxpShRdxlKJIA===

( Read More... | no comments | 2 points | on HN )
Re:Tesla valve on Thursday August 12, 2021 @06:46PM (#28162586)
An interactive simulation of Tesla valve. https://tinyurl.com/yzcr74gw
Interactive fluid simulation running in the web browser. The domain is filled by a mixture of two liquids with different densities and viscosities, effects of gravity and surface tension. Many parameters can be changed dynamically. Various boundary conditions can be set on the edges of the domain or a solid body. The plain text configuration described in the documentation is encoded in the URL for easy sharing.
Re:Configs for privacy-hating software, like Firefox and Chrome on Monday September 07, 2020 @02:19PM (#24401341)
In this repository you find configuration files for privacy-hating software, like firefox, thunderbird or Google software.
I am puzzled by the paper of this groups [1]. The only evidence they present for "change points in the COVID spreading rate" is slightly better fit of the number of daily reported cases. In this repository for "Scenario assuming three change points with a weekly modulation of reported cases" they use 16 parameters to fit a smooth line (wavy pattern is because of lower case reports around the weekend). An elephant needs 8 [2]!. I also asked for clarification on stats.stackexchange [3].

[1] http://dx.doi.org/10.1126/science.abb9789

[2] http://dx.doi.org/10.1119/1.3254017

[3] https://stats.stackexchange.com/q/467920/286008

Older »