demonstrations:1_mechanics:1a_measurement:pinball_machine:start
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| demonstrations:1_mechanics:1a_measurement:pinball_machine:start [2019/02/14 23:33] – external edit 127.0.0.1 | demonstrations:1_mechanics:1a_measurement:pinball_machine:start [2019/05/29 22:57] (current) – demoroom | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Pinball Machine ====== | + | ====== |
| - | {{tag>falling bell curve gaussian statistc needs_review untagged | + | {{tag> |
| <WRAP box right> | <WRAP box right> | ||
| Line 11: | Line 11: | ||
| ===== Description ===== | ===== Description ===== | ||
| - | Shows statistical variation. | + | Consists of an apparatus mounted |
| - | + | ||
| - | statistics | + | |
| + | When the ' | ||
| + | On the lower left side of the frame holding the machine is a spring pin which holds the orientation of the box at vertical. | ||
| ===== Purpose ===== | ===== Purpose ===== | ||
| - | To demonstrate statistical variation. | + | To illustrate the occurrence of a Gaussian distribution. Show how analyzing the result of many repetitions of an event can lead to a more nuanced understanding of the behaviour of that event. |
| ===== Apparatus ===== | ===== Apparatus ===== | ||
| - | pinball machine is complete with ball bearings | + | * ' |
| ===== Setup ===== | ===== Setup ===== | ||
| - | Place all the ball bearings | + | The machine will likely be stored with the ball bearings at the bottom. To move the ball bearings to the top: |
| + | |||
| + | * Use the knob at the back of the machine to release the ' | ||
| + | * Pull out the spring pin on the lower left of the frame so that the box can be inverted. | ||
| + | * Slowly tilt the machine back until the ball bearings | ||
| + | * Tilt the machine back to vertical, pull the spring pin out again, line up the hole on the side with the pin and release the spring pin. | ||
| + | |||
| + | At this point, the machine is ready to go. Note that the funnel | ||
| ===== Notes ===== | ===== Notes ===== | ||
| + | This machine is also known as a 'bean machine', | ||
| + | |||
| + | To explore the statistics behind this machine, I wrote a short python script which I'll include here: | ||
| + | |||
| + | # -*- coding: utf-8 -*- | ||
| + | """ | ||
| + | Created on Wed May 29 15:06:00 2019 | ||
| + | | ||
| + | @author: Aiden Smith | ||
| + | """ | ||
| + | | ||
| + | import random | ||
| + | | ||
| + | levels = 20 | ||
| + | balls = 1000 | ||
| + | |||
| + | bins = [0] * (levels + 1) | ||
| + | | ||
| + | for i in range(0, | ||
| + | x = 0 | ||
| + | for y in range(0, | ||
| + | rand = random.randint(0, | ||
| + | if (rand == 0): | ||
| + | x+= -1 | ||
| + | else: | ||
| + | x+= 1 | ||
| + | bins[int((x+levels)/ | ||
| + | | ||
| + | for entry in bins: | ||
| + | print(entry) | ||
| + | This script outputs the number of simulated balls that land in each bin in order from one side to the other. Graphing it, for large values, produces a bell curve very similar to the one produced by the demo. | ||
| <WRAP group> | <WRAP group> | ||
demonstrations/1_mechanics/1a_measurement/pinball_machine/start.1550187203.txt.gz · Last modified: by 127.0.0.1
