ScratchData LogoScratchData
Back to TheWordWeaver's profile

fun with probability!

THTheWordWeaver•Created October 22, 2019
fun with probability!
26
15
399 views
View on Scratch

Description

⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀〖fun with probability〗 ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀+ explanation inside (just a warning that as soon as you press the green flag, a cloud variable get changed. so if you don't want your username recorded, sign out before starting!) Yes. This is maths. But don't run away! It might be fun. (No promises though.) This is a simulation of what happens when you flip a coin. Yes, in real life there's a tiny chance of it landing on the edge or rolling down a drain never to be seen again, but in this project there's two possible outcomes: heads or tails. This simulation's goal is to see what the highest amount of the same result, head or tails, in a row can be flipped. Each time it flips a coin, it checks to see if the result is the same as the one before it, and if yes, it flips another coin. If no, it starts over. The 'repeats' variable is the number of times it's run the experiment, or the number of time's it's started over. The 'highest in a row' variable is the most of the same result you've gotten in a row. For both variables, there's a cloud equivalent so the probability can be demonstrated on a larger scale for comparison. The highest I've gotten is 27 in a row, which, when you think about it, is pretty insane. Imagine sitting down one day and flipping a coin 27 times and getting 27 heads. Insane. Only difference is that in this simulation it usually takes a couple million goes to get it. Now, you're not going to be able to see every individual flip or each experiment, because it goes pretty fast and the frame rate is pretty slow. But yeah, that's about it. Maths! ⠀⠀⠀⠀⠀⠀⠀⠀⠀〖me rambling about maths〗 So, I've never been the biggest fan of probability. Whenever our maths teacher would announce "Okay, that's it with algebra. Time to move on to probability!" I'd just grumble something about determinism and promptly fall asleep. Half of my problem was that we weren't being taught the parts of probability that interested me, and the other half was just that I wasn't all that good at it. The first part's easy to solve: you've just gotta find something that interests you. For me, it's stuff like this project. Simulations that run a probability experiment millions of times puts it all into perspective for me, and just shows everything in a way that you couldn't see from flipping a coin ten times yourself. The second part is harder, but still not impossible. Once again, you've just gotta find what works for you. If it's finding a part of it that interests you, then go for that. If it's practising it over and over, then sure! I find it helps me to understand things by explaining them to someone else. Even if it's something super basic, if it's just the basis of a concept, it can help you understand it by putting it all into words. And not only does it help you, it can help other people too. I'm a huge fan of explaining EVERYTHING. Whether it's super easy or insanely complex, putting all these ideas and concepts into words for yourself and others to use makes knowledge easy to access and understand and makes the whole world into one huge brainstorm, with everyone bouncing off of each other's ideas and learning something new. On this website, I find that a lot of projects about maths and geometry and numbers are made by only a small group of people. They're people who are incredible at what they do, but also a little scary to people who are interested in maths, but not necessarily amazingly good at it. If we all just take a minute to help each other out and explain things, no matter how simple or complex, then so many more people can enjoy messing around with numbers just for the fun of it, or use them to help learn a concept they're using at school, or practise a method until they get it right. There's an infinite amount of numbers for a reason. We may as well use them. ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀〖golly i talk a lot :)〗 So, as you've probably gathered, there's an explanation of the code inside the project. It's not very complex, but adding a running commentary as I go helps me figure out where on earth I'm going with it, especially since I don't do maths-related stuff much. There might be some mistakes and I may have said stuff that only makes sense in my head, so feel free to point anything out if you find it. ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀〖credits〗 ⇨ Me. She's pretty great. Though when she starts writing, she just can't stop. You can probably tell from the NEAR ENDLESS LENGTH OF THESE NOTES AND CREDITS. ⇨ I dunno man. My maths teacher? ⇨ I always like reading the acknowledgements at the ends of books and the author's like "and last but not least, i'd like to thank YOU" so I'd like to thank... ⇨ ... my desk. For acting as both foot- and laptop-rest. Somehow simultaneously. #maths #explanation #probability #fps #from-the-length-of-these-notes-and-credits-youd-be-surprised-to-find-out-that-im-not-actually-that-talkative #my-fingers-just-DONT-STOP-TYPING

Project Details

Project ID338202962
CreatedOctober 22, 2019
Last ModifiedMay 7, 2020
SharedOctober 23, 2019
Visibilityvisible
CommentsAllowed