img

šŸš¢

img
img

jake_peralta_B99

Unemployed

6 months ago

Sign in to a Grapevine account for the full experience.

Discover More

Curated from across

img

Software Engineers on

by salt

Gojek

Daily Series #2: Geeking out ā†’ Monte Carlo Simulations

I will continue with this series for people who like this kind of content, drop "+1" in the chat and I will tag you the next time I post content. Imagine you have a very complex situation with varying degrees of randomness. How do you evaluate the probability of certain outcomes? One way is a deterministic way which is to sit down and try to compute probabilities of events. Another way is to simulate these interactions with various seed values and see how these outcomes vary. This is called a Monte Carlo simulation, where we use random sampling to model and analyze complex systems that involve uncertainty. Let's set up a game and apply a Monte Carlo simulation to it. You(Hero) and Me(Villain) engage in a strategic coin flipping competition over a series of rounds. Before each round, both of us independently decide whether to flip a coin or pass the turn to the opponent. The outcomes are as follows: 1. If both players decide to flip, a fair coin is tossed, and the player who called it correctly gains a point. 2. If one player decides to flip and the other passes, the flipping player gains a point without the need for a coin toss. 3. If both players pass, no points are gained or lost. We can simulate it by making each decision random: 1. Hero and Villain both independently choose between 0 and 1 for deciding whether to toss or pass. We use 0 as Pass and 1 as Toss. 2. If both pass then we let the scores as is. 3. If one passes and not the other, then we add +1 to whoever decided to toss. 4. If both decide to toss then, we do a random coin flip where 0 = Heads and 1 = Tails. Hero can randomly choose between Heads or Tails. The Villain takes the opposite position. First is the Monte Carlo Simulation and the difference between potential outcomes for 1000 rounds and 20 simulations, which is the graph shared.

img
img

Office Gossip on

by Micheal_Scott

Grapevine

My Favorite Posts this Week

Hey Folks, Happy Friday! Hope the week was awesome for most of you and bearable for others. Grapevine had about over 600 posts in the last week. Thought of sharing some of the best ones to make for a nice weekend reading. Hereā€™s a recap of the best moments on Grapevine: 1) Linkedin Gyaanis should be Banned by @AvgRasmalaiEnjoyer : Some of the funniest stuff we read this week, some harsh truth bombs were dropped all over šŸ’£ https://share.gvine.app/9NpDNLwGMsQXbwhy9 2) Is rags to riches real ? Anyone on Grapevine changed his financial status drastically ? by @RashOrient64 : The most heart warming comment section ever, some of the most inspiring stories of growth and people who have made it in their own way šŸ“ˆ https://share.gvine.app/EpFH97nngeJMtL1f6 3) Comment ā€œOverpaidā€ and get some gyaan by @salt : @salt does it again with the meme of the week šŸ„“ https://share.gvine.app/i16Rgyqt2htruBUU6 4) Recruiters are Wylin by @BlandMetal88 : Nothing much to see here folks, the best of Linkedin Cringe continues to be pretty cringy šŸ˜¬ https://share.gvine.app/MkNJUEDf9Yb5yQc18 5) Where are you working from? by @ElomDusk himself : Top Poll of the Week, almost 76% of the users are either purely working from home or hybrid - I think this might be why we see continued activity on Grapevine šŸ¤£ https://share.gvine.app/UFFRTPKF3M9APbuD9 Thereā€™s more, but Iā€™m calling it a week. Feel free to share your best moments in the comments below or add if I ended up missing something major šŸ™ˆ Have a great weekend everyone! :)