←
1
2
3
The Dividing Line
Sometimes you want to split data into two groups. For example into blue and red.
🎯
Step 1 of 3
What you'll learn in this level
- How a straight line separates two groups
- How to spot a good dividing line
- When a line is no longer enough
One Line Splits Two Groups
Sometimes you want to split data into two groups. For example into blue and red.
The computer draws a straight line for that. All the blue dots should land on one side, all the red ones on the other.
How It Works
- 1
Show the Data
Put all your data points on a graph.
- 2
Draw Line
Draw a straight line through the data.
- 3
Check Separation
See if the line correctly separates the groups.
- 4
Adjust
Move the line. It should split the groups as well as possible.
Can you find the perfect line?
Guess first, then experiment
Can every group of data be separated with a single straight line?