Labs · 9618 18.1 · classification
Catch the Spam: a Naive Bayes Filter
Label your messages as spam or not spam and the filter counts the words. Then it works out the chance that a new message is spam, word by word. Find out why it needs α, and where to set the line.
3 levelsFree bench
Well done: the goal is met.
Next challenge →
More real experiments
- Ray Optics BenchSteer a laser with mirrors, glass blocks, prisms and lenses. Measure angles, find the refractive index and make a sharp image.
- Projectile LauncherSet the angle and the speed, launch the ball and hit targets over walls, onto ledges and on the Moon. Measure range and time of flight.
- Electromagnet & MotorWind a coil, choose a core and set the current to pick up paperclips. Then build a motor that spins, reverses and runs at a set speed.
- Moments BalanceHang masses on a metre rule to balance it, find unknown masses and the weight of the rule, and lift a load with a lever.
- Springs & PendulumsLoad springs and plot extension against load to test Hooke's law. Time a pendulum with a stopwatch and use it to find g.
- Specific Heat LabHeat metal blocks and water, read the thermometer and the joulemeter, and find specific heat capacity and latent heat. Then beat the insulation challenge.
- Ripple TankMake water waves, then measure their wavelength and speed. Watch them refract in shallow water, spread through a gap and interfere.
- Radiation LabUse a Geiger counter and absorbers to find out what a source gives out. Measure the background, a half-life and how distance and lead change the count.
- Collisions TrackCrash gliders on an air track with springs, Velcro or putty. Read the light gates, check that momentum is conserved and find unknown masses.
- Density & FloatingMeasure mass and volume with a balance, calipers and a measuring cylinder. Find densities, identify a metal and predict what floats.
- Teach a PerceptronSort apples from pears with one artificial neuron. Set its weights by hand, then press Train and watch the dividing line learn.
- Logic LabBuild real logic circuits: drag gates onto a board, wire them up, flip the switches and watch the lamps. Your expression and truth table update as you build.
- Train a Network on Your DrawingsDraw ticks, crosses and circles, train a small neural network on them and watch it learn. Then test it with new drawings.
- Boolean Algebra LabSimplify Boolean expressions one law at a time: tap part of the expression, choose a law and watch the working grow, as in Paper 3.
- Teach a Robot by RewardA robot learns a maze by trial and error. Give it rewards, watch its Q values grow square by square and help it find the shortest way.
- Karnaugh Map LabFill a Karnaugh map from a truth table, loop the 1s and watch the expression get shorter. Loops can wrap round the edges and the corners.
- Build a Decision TreeSort animals with yes or no questions. Build your own tree, then let the computer choose its questions by information gain and compare.
- Flip-flop LabDraw the output Q of SR and JK flip-flops in timing diagrams. Step through time and watch the flip-flop remember.
- Nearest NeighboursSort songs into dance and calm by asking their nearest neighbours. Choose k, scale the axes and find out what happens when the data is one-sided.
- Roll Down the Loss: Gradient DescentFit a line to ice-cream sales. Each error becomes a red square, and the loss is their mean. Then watch gradient descent roll downhill to the best line, and choose a good step size.
- Find the Groups: k-meansPlace pizza shops in a town so nobody walks far. Then let k-means do it: every house joins its nearest shop, every shop moves to the centre of its houses. Watch it get stuck, and choose how many shops.
- Find the Shortest Route: Dijkstra and A*Ten towns, sixteen roads. Run Dijkstra's algorithm by hand with the exam table, read the route back, then let A* guess its way and see when a guess goes wrong.
- See Like a Computer: Convolution FiltersSlide a 3 × 3 filter over a picture and watch a new picture appear. Find edges, blur, and build a filter that spots one shape: the first step of every image-recognition network.
- Guess the Next Word: a Tiny Language ModelA chatbot writes by guessing the next word, again and again. Build a tiny one from eight sentences: count the pairs, change what it says by adding text, and use temperature to make it say something new.
- Bits and BytesFlip the switches of one byte. See it as binary, denary, two's complement, hex, BCD and floating point, and watch the place values add up.
- Is the Computer Fair?A bank's computer learns from past loan decisions, and the past was unfair to one town. Find what it learned, take away the unfair features, and see why removing the town is not enough.
- Pixels and SoundPaint bitmaps pixel by pixel, squeeze them with run-length encoding, and sample a sound wave. See every bit and every byte.
- Build an Expert System: the Plant DoctorWrite the IF … THEN rules an expert uses to find out what is wrong with a plant. Watch the inference engine try them one by one, and see why the order of the rules matters.
- Tiny CPUProgram a little computer in real 9618 assembly language. Watch every fetch, decode and execute move along the buses.
- Evolve a Catapult: a Genetic AlgorithmThrow a ball over a wall at a target. First aim by hand, then let a population of catapults evolve: the best ones become parents, children mix their genes, and mutation brings new ideas.
- Pointer LabPush, pop, queue, link and branch. Run stacks, circular queues, linked lists and binary trees held in arrays, and watch every pointer move.
- Sort and SearchBe the computer. Run bubble sort, insertion sort, linear search, binary search and hash tables step by step, with the 9618 pseudocode lit as you go.
- Trace TablesBe the computer for 9618 pseudocode. Predict every value in the trace table, then run the program line by line and watch the variables change.
- Normal FormsSplit one big table into good tables. Choose each primary key, and watch the repeated facts in the data disappear, step by step to 3NF.
- Resistivity of a WireA real Paper 3 practical: move a clip along a wire, read the rule and a voltmeter, fill in the results table, plot 1/V against x, draw the best-fit line, take the gradient and use a micrometer to find the resistivity.
- Interrupted PendulumA real Paper 3 practical: a pendulum whose string catches on a rod. Read lengths on a metre rule, time the swings with a stopwatch, plot T against √L1 + √L2 and find g.
- Falling BallsA real Paper 3 Question 2: measure a tube and two steel balls with vernier calipers, time their fall through water, find two values of k, test the idea against a 10 % uncertainty, and name limitations and improvements.
- Balanced Metre RuleA real Paper 3 practical: move 10 g masses along a metre rule, balance it on a pivot, plot y/n against 1/n and find the mass of the rule from the gradient.
- Parallel WiresA real Paper 3 Question 2: two resistance wires in parallel on metre rules. Set the clips, read an ohmmeter, move the clips by x, find two values of k and test the idea against a 15 % uncertainty.
- Syringe FlowA real Paper 3 practical: water drains from a syringe through its nozzle. Read heights on a metre rule, time the level between graduations, plot 1/T against hm and find p and q.
- Two-Resistor CircuitA real Paper 3 practical: build up a series circuit, read a voltmeter with and without a wire across one resistor, plot V1/(V2 − V1) against R and find P and Q.
- LED and LDRA real Paper 3 Question 2: a red LED shines on a light-dependent resistor. Set the distance d, change the current with a wire, read a voltmeter and an ohmmeter, find two values of k, test them against 5 % and find the wavelength of the light.
- Cooling CupA real Paper 3 Question 2: hot water cools in a cup. Start the stopwatch at 75 °C, read a thermometer after two minutes, measure the water with rules, find two values of k and decide whether more water really cools more slowly in proportion.
- Spring PendulumA real Paper 3 Question 2: a mass on a spring bounces and swings. Time both with a stopwatch (your own reaction time counts), for 50 g and 150 g, test whether TS² − TV² stays the same and find g.
- Glass JarsA real Paper 3 Question 2: a jar of water is a lens. Move a nail away until it disappears, measure y and D for two jars, test (r + y) ÷ r = k against 20 %, then try it on a glass lens.
- Hot PipeA real Paper 3 Question 2: a plastic pipe expands in hot water and a lever makes the change big enough to measure. Two pipes, two values of k, the 20 % test, then the evaluation.
- Rolling BottleA real Paper 3 practical: raise a board until a bottle rolls over a pile of paper, measure the pile with calipers, plot cos θ against T and find a and b.
- Falling Filter PapersA real Paper 3 Question 2: drop filter papers from the top of a metre rule, time them by hand with your own reaction time, and test k t = m A with two sizes.