Built something? We create video reels & spotlights for GitHub projects.Promote your project →
Home / Developers / grisaitis
Developer Profile

grisaitis

Discovered public repositories for grisaitis in the GitHub catalog.

↗

grisaitis/bernoulli-montecarlo

Given a random process with only two possible outcomes and known chances of either outcome, what is the best way to predict the outcome? Perhaps obviously, the best method is simply always to predict the more probable outcome. But what about other methods, such as making a random guess each time according to the same probabilities of either outcome? In other words, if outcome "A" happens 60% of the time, then how often am I correct if I guess "A" only 60% of the time (and outcome "B" 40% of the time)? The answer is not 60%; indeed, it is less. Analytically, if Prob(outcome="A") = p, and you guess "A" only p*100% of the time, then you'll be correct only (p^2 + (1-p)^2) * 100% of the time. For any p other than 0.5, this method is less accurate than simply choosing "A" every time. This simple fact is demonstrated by this mini-monte carlo simulation.

↗

grisaitis/PHY260

collection of all assignments for Duke University's Physics 260 "Computational Physics"

FOR MAINTAINERS

Built something? Put it in front of millions of developers.

We make a short reel about your project and post it across YouTube, Instagram, Threads, and X. Send a link, we do the rest.

SPONSORED Sponsored Partner