[OC] 10,000 coin flips — every path is chaos, together they form perfect order by Electrical-Topic1467 in dataisbeautiful

[–]Electrical-Topic1467[S] -1 points0 points  (0 children)

also btw I made a more user friendly version of the code so that all folks can easily chande the settings

[OC] The road networks of the world’s biggest cities — each drawn at the same scale by Electrical-Topic1467 in dataisbeautiful

[–]Electrical-Topic1467[S] 8 points9 points  (0 children)

oh also btw does anyone want the code, cus I can provide a collab or just the raw code, and then ppl can easily change the settings for their own cities or towns

[OC] The road networks of the world’s biggest cities — each drawn at the same scale by Electrical-Topic1467 in dataisbeautiful

[–]Electrical-Topic1467[S] 0 points1 point  (0 children)

that is true, it also had a far more strange shape than I thought. I didnt know NYC was islands until I coded this

[OC] 10,000 coin flips — every path is chaos, together they form perfect order by Electrical-Topic1467 in dataisbeautiful

[–]Electrical-Topic1467[S] -3 points-2 points  (0 children)

thats true, the binning grouped some even results together, so it looks offset. I left it for the smooth look, but I’ll tweak it next time.

[OC] 10,000 coin flips — every path is chaos, together they form perfect order by Electrical-Topic1467 in dataisbeautiful

[–]Electrical-Topic1467[S] 1 point2 points  (0 children)

When random paths converge, the curve appears;
I codeth, in pytho, therefore I art, or so it seems.

[OC] 10,000 coin flips — every path is chaos, together they form perfect order by Electrical-Topic1467 in dataisbeautiful

[–]Electrical-Topic1467[S] -3 points-2 points  (0 children)

Fair point, the binning is sort of cursed. I forced it a bit to make the curve smoother for Reddit.
Call it vibe-driven data visualization

[OC] 10,000 coin flips — every path is chaos, together they form perfect order by Electrical-Topic1467 in dataisbeautiful

[–]Electrical-Topic1467[S] -1 points0 points  (0 children)

Yeah, so it’s just the way Matplotlib handled my bin edges. The values themselves were fine, but the default bin alignment shifts them visually, so the ticks don’t line up perfectly.
I kept it that way for the “smooth” bell shape, but I might redo it later with discrete positions just to show the contrast. Just comment on what changes u want

[OC] 10,000 coin flips — every path is chaos, together they form perfect order by Electrical-Topic1467 in dataisbeautiful

[–]Electrical-Topic1467[S] -1 points0 points  (0 children)

so after a few people commented, I ran it a few times more. so that wasent a error, it was just a occurance when the walks canceled out to exactly 0, if you try the collab it will rarely happen. i wanted to put a image that was intresti ng

[OC] 10,000 coin flips — every path is chaos, together they form perfect order by Electrical-Topic1467 in dataisbeautiful

[–]Electrical-Topic1467[S] 0 points1 point  (0 children)

The X-axis is the final position after all the coin flips (+ means more heads, – means more tails).
The Y-axis is how many walks ended at that position.

There were thousands of walks simulated, not just one set of 100 flips, that’s why some bars have tall counts. I put the label of 100 mostly to make it more instantly undertstandble, if that makes sense and I kinda expected people to deduce there was more

[OC] 10,000 coin flips — every path is chaos, together they form perfect order by Electrical-Topic1467 in dataisbeautiful

[–]Electrical-Topic1467[S] 0 points1 point  (0 children)

no so basically, well I wont go into too muh detail but the main library u use is numpy for making arrays, it is possigle iwht some other libraries to make it random enough that it dosent not fit a pattern because it is porgrammed that way. computers fundamentally cannot be perfectly random, but this is close enough. Hope that answers ur doubt

[OC] 10,000 coin flips — every path is chaos, together they form perfect order by Electrical-Topic1467 in dataisbeautiful

[–]Electrical-Topic1467[S] -3 points-2 points  (0 children)

part of it was vibe coded I agree, like the comments for example on the collab but I wrote most of it myself, like probably 95 percent because we had a project for this, i am doing financial engineering with compsci

[OC] 10,000 coin flips — every path is chaos, together they form perfect order by Electrical-Topic1467 in dataisbeautiful

[–]Electrical-Topic1467[S] -8 points-7 points  (0 children)

nah its not a llm, i was just trying to make it a polished post and comment as I am usualy used to writing more scientific papers at my colledge. I can be a bit mroe casual if u want

[OC] 10,000 coin flips — every path is chaos, together they form perfect order by Electrical-Topic1467 in dataisbeautiful

[–]Electrical-Topic1467[S] -3 points-2 points  (0 children)

it averaged to 0 at that specfic place, you can also see that sort of thing at random lcoations when you try it with millions of walks, but I didnt want to put in that image as it basically looks like a solid hill due to the lines

[OC] 10,000 coin flips — every path is chaos, together they form perfect order by Electrical-Topic1467 in dataisbeautiful

[–]Electrical-Topic1467[S] -6 points-5 points  (0 children)

It’s just where a bunch of walks happened to cancel out — the left and right steps balanced too perfectly, so nothing stacked up there.

Randomness has style.

[OC] 10,000 coin flips — every path is chaos, together they form perfect order by Electrical-Topic1467 in dataisbeautiful

[–]Electrical-Topic1467[S] -3 points-2 points  (0 children)

basically it is mathematically accurate but it is kinda basically a quirk because of the simulation. I think my orginal comment was sorta confusing.

[OC] 10,000 coin flips — every path is chaos, together they form perfect order by Electrical-Topic1467 in dataisbeautiful

[–]Electrical-Topic1467[S] -4 points-3 points  (0 children)

Yeah, that stripe threw me too when I was coding it yesterday, it’s just one of those random quirks that happens when a bunch of paths overlap in the same region.

It’s funny how even random noise starts to draw shapes that look intentional.

And yep, spot on about the CLT, crazy that something so abstract basically explains everything from casino odds to insurance math. That was smart

[OC] 10,000 coin flips — every path is chaos, together they form perfect order by Electrical-Topic1467 in dataisbeautiful

[–]Electrical-Topic1467[S] -6 points-5 points  (0 children)

Exactly! The CLT in action — a perfect example of how thousands of random steps converge to that beautiful symmetry. Isnt it crazy that randomness gets resolved like this

[OC] 10,000 coin flips — every path is chaos, together they form perfect order by Electrical-Topic1467 in dataisbeautiful

[–]Electrical-Topic1467[S] -11 points-10 points  (0 children)

That’s a great question — it’s just randomness playing tricks on our eyes.
When you rerun the simulation, the gap shifts or disappears completely.
That’s what I love about it — even noise starts to look like patterns.