95
all 50 comments
sorted by: hot top controversial new old
[-] kleeon@hexbear.net 67 points 2 days ago

the simulation in question:

for (int i = 0; i < 80000; i++) {
   if (rand() % 2 == 0) {
      printf("Kamala wins\n");
   }
   else {
      printf("Trump wins\n");
   }
}
[-] Thordros@hexbear.net 25 points 2 days ago

This is much cleaner than mine that I did in python.

[-] kleeon@hexbear.net 39 points 2 days ago

thanks. Nate Silver paid me $50k to write this

[-] carpoftruth@hexbear.net 13 points 2 days ago

could you please input that into chatgpt so it will give me a summary of the code output? I'm a busy data driven guy so I don't have time for the details. however, I do have time for this post

[-] SSJ3Marx@hexbear.net 12 points 2 days ago

Hey! I understood that! That Python class must've taught me something after all.

[-] merthyr1831@lemmy.ml 8 points 2 days ago

huh, the sync for Lemmy code block renderer doesn't show the \ even within the code block 👁️👁️

[-] Hexboare@hexbear.net 7 points 2 days ago

I'm guessing it literally is a few lines in R, plugging in the polling data after running it through a "model" (i.e. tinkering with the variables based on how polls have historically translated into votes)

[-] plinky@hexbear.net 8 points 2 days ago* (last edited 2 days ago)

Seems lots of unnecessary mods tbh,

S=0

for i in 1:80000

S+=rand()

end

ceil(S)

[-] naom3@hexbear.net 6 points 2 days ago

Modding by 2 is just a bitwise operation tho

[-] plinky@hexbear.net 2 points 2 days ago* (last edited 2 days ago)

Gotta dump results in some accumulate tho, and if then logic might be eh (although with branch prediction it might be auto 2 threads actually soviet-hmm or similar utilization at least)

[-] DaPorkchop_@lemmy.ml 2 points 2 days ago

A reasonable compiler could optimize this into a bitwise AND, load the pointer to the appropriate string constant into a register branchlessly using a lookup table or cmov instruction, and then execute a single call to printf.

[-] plinky@hexbear.net 1 points 2 days ago* (last edited 2 days ago)

I mean if I want to know the precise number, like 40012 or whatever. Obviously single call is fast, but printf of 40000 strings single strings is meh. I mean in my variant I don’t run comparison, even bitwise, just 80000 rand and sum, single ceil and print

[-] viva_la_juche@hexbear.net 42 points 2 days ago
[-] Evilphd666@hexbear.net 51 points 2 days ago

sinwar-victory won in 42,069

[-] axont@hexbear.net 34 points 2 days ago

I ran 80,000 simulations of me taking a poop

In 40,000 of them, shit ran down my ballsack and then I had shit on my balls.

[-] Big_Bob@hexbear.net 11 points 2 days ago

In 32 of them, I sneezed in the middle of a stream of diarrhea and covered the entire backside of the toilet.

[-] Awoo@hexbear.net 36 points 2 days ago

"We flipped a coin 80,000 times and it landed on Heads 40,012 times"

[-] LENINSGHOSTFACEKILLA@hexbear.net 38 points 2 days ago

how the fuck does a "simulation" like this even work? so insane

[-] FunkyStuff@hexbear.net 52 points 2 days ago

Take polling data then randomly roll for some error within the margin of error for each state. Then adjust based on bias. Do this n times and get your prediction.

[-] ksynwa@lemmygrad.ml 28 points 2 days ago

Is there a point to this? From the tweet it doesn't give new information. It just reaffirms that three contest will be close which everyone knew.

[-] FunkyStuff@hexbear.net 33 points 2 days ago

They didn't get a certain answer so it was useless this time, but if it had turned out that somehow one candidate won a supermajority of simulations then you got useful information. Can't know unless you ask.

[-] Eris235@hexbear.net 26 points 2 days ago

There is utility in some cases; there's correlations between polling and areas, and the electoral college makes it all complicated (by design)

But, like, here? No, no practical difference between any of the 'models' all showing some variation of 'its a toss up'

[-] Hexboare@hexbear.net 4 points 2 days ago

Yes, it's possible that despite close in polls, the margin of error would favour one candidate being more likely to win.

"Everyone knows" something until there's evidence to the contrary.

The polls and outcome could still be wrong if something unexpected happens, like if all the people who don't usually vote decide this is the most important election and vote for the first and only time in their life.

[-] carpoftruth@hexbear.net 13 points 2 days ago

stochastic modeling is the key word for this type of modeling if you actually care. that kind of thing is used for all kinds of stuff - weather, climate, ecology, river flows, economics

[-] Coolkidbozzy@hexbear.net 34 points 2 days ago

homie's monte carlo analysis probably took like 9 seconds to run

[-] hexaflexagonbear@hexbear.net 23 points 2 days ago

Based on my coworker's workflow, the simulations took up all computing resources they had all day, and the confidence interval was like 0.1% tighter.

[-] SacredExcrement@hexbear.net 29 points 2 days ago

For anyone curious, this means Harris won 50.015% of the time

Truly an earth-shattering margin

[-] take_five_seconds@hexbear.net 17 points 2 days ago

big "i do numbers" energy

[-] Josephine_Spiro@hexbear.net 28 points 2 days ago

I flippee a coin and it landed on heads 40,012 times, here's how Harris can still win

[-] neroiscariot@hexbear.net 16 points 2 days ago

The creator of the simulation

[-] TankieTanuki@hexbear.net 19 points 2 days ago

We're living in a Nate Silver simulation right now. :morpheus:

[-] viva_la_juche@hexbear.net 11 points 2 days ago

You best start believin in Nate silver simulations Tankie, you’re in one!

[-] MF_COOM@hexbear.net 19 points 2 days ago

jagoff this is nothing

[-] ThomasMuentzner@hexbear.net 13 points 2 days ago
[-] kristina@hexbear.net 16 points 2 days ago* (last edited 2 days ago)

god i hope there is a dead tie in delegates elmofire

[-] NonWonderDog@hexbear.net 10 points 2 days ago

Can someone explain to me why the hell he’s ever needed a monte-carlo analysis? The margin of error is gaussian, and it’s not like it’s running up against zero bounds when it’s 50/50, so why isn’t it just a linear equation?

It’s just a linear equation, right? He does a monte-carlo so he can brag about running 80,000 simulations, not for any good reason, right?

[-] DamarcusArt@lemmygrad.ml 3 points 2 days ago

All of those words are ones that the bazinga brains don't know.

[-] Sodium_nitride@lemmygrad.ml 1 points 2 days ago

I presume he is running a monte carlo analysis to account for the electoral college, which makes the equations non-linear.

[-] Evilsandwichman@hexbear.net 17 points 2 days ago
[-] Leon_Grotsky@hexbear.net 14 points 2 days ago

We surveyed the Adeptus Astra Telepathica and every seer came back with the same answer: landslide victory for the Emperor of Mankind!

Praise be the God Emperor!

[-] FALGSConaut@hexbear.net 4 points 2 days ago

Of course you have to vote for the God Emperor! Sure he's genociding everyone who isn't human (and quite a few people that are but shush) but if you don't vote for him then Horus will win! And Horus is going to be so much worse, he'll implement project 025.M42 and abolish the planetary governors! The God Emperor can win if you vote for him!

(I may have mixed my 40k and 30k for the bit, shhh)

[-] TheDoctor@hexbear.net 16 points 2 days ago

Nate Silver thinks he’s Dr. Strange

[-] CascadeOfLight@hexbear.net 10 points 2 days ago

After viewing thousands of possible futures, the only timelines where Kamala wins are ones where she hands Dick Cheney an Infinity Cabinet Post and lets him turn half the Democrats into dust.

[-] Zuzak@hexbear.net 14 points 2 days ago

Kamala Harris IS The Deadliest Warrior.

[-] keepcarrot@hexbear.net 13 points 2 days ago

I was actually surprised that that company's 40k civ game was actually pretty fun.

No idea what their "simulations" consisted of in deadliest warrior though, biggest chunk head show

[-] crispy_lol@hexbear.net 12 points 2 days ago

He just like dr strange fr fr

[-] ShimmeringKoi@hexbear.net 5 points 2 days ago
this post was submitted on 05 Nov 2024
95 points (99.0% liked)

The Dredge Tank

259 readers
517 users here now

The Dredge Tank. For posting all the low tier reactionary bullshit that you can't post anywhere else. Got some bullshit from Reddit with 2 upvotes and want to share, post it here.

This community was created with the purpose that Rule 8 fans will just block it.

The rules are literally The Dunk Tank's rules, just without rule 8.

Rule 1: All posts must include links to the subject matter, and no identifying information should be redacted.

Rule 2: If your source is a reactionary website, please use archive.is instead of linking directly.

Rule 3: No sectarianism.

Rule 4: TERF/SWERFs Not Welcome

Rule 5: No ableism of any kind (that includes stuff like libt*rd)

Rule 6: Do not post fellow hexbears.

Rule 7: Do not individually target other instances' admins or moderators.

founded 2 months ago
MODERATORS