WOLFRAM|DEMONSTRATIONS PROJECT

Generating Realistic Baseball Line Scores

​
visitor inning score parameters
home inning score parameters
length of normal game
6
7
8
9
10
11
12
new sample
1
2
3
4
5
6
7
8
9
F
0
0
0
0
0
1
0
0
1
2
0
0
0
0
0
0
0
0
0
0
1
2
3
4
5
6
7
8
9
F
1
0
0
0
0
0
0
0
0
1
0
6
0
0
5
0
0
7
x
18
1
2
3
4
5
6
7
8
9
F
1
0
0
0
0
1
0
0
0
2
0
0
0
0
0
0
0
0
0
0
1
2
3
4
5
6
7
8
9
F
3
0
0
0
2
0
2
0
0
7
0
0
0
0
0
1
0
0
0
1
1
2
3
4
5
6
7
8
9
F
0
0
0
0
0
3
0
0
2
5
0
0
2
0
0
0
0
0
0
2
1
2
3
4
5
6
7
8
9
F
0
0
4
0
0
0
0
1
0
5
0
0
0
0
0
0
0
0
4
4
1
2
3
4
5
6
7
8
9
F
0
0
1
0
0
0
1
0
0
2
3
0
0
0
0
0
0
2
x
5
1
2
3
4
5
6
7
8
9
F
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
3
x
4
1
2
3
4
5
6
7
8
9
10
F
0
2
0
0
0
0
0
0
0
1
3
2
0
0
0
0
0
0
0
0
0
2
1
2
3
4
5
6
7
8
9
F
0
0
0
1
0
0
0
0
0
1
0
2
1
3
0
0
1
0
x
7
1
2
3
4
5
6
7
8
9
F
0
0
2
0
0
0
0
0
0
2
0
1
4
0
0
0
0
0
x
5
1
2
3
4
5
6
7
8
9
10
F
0
0
0
0
0
0
0
1
0
1
2
1
0
0
0
0
0
0
0
0
0
1
1
2
3
4
5
6
7
8
9
F
0
0
1
0
0
0
0
0
0
1
0
1
0
0
6
0
0
0
x
7
1
2
3
4
5
6
7
8
9
F
0
0
8
0
0
0
0
0
0
8
1
0
1
0
2
0
0
1
0
5
1
2
3
4
5
6
7
8
9
10
F
0
0
0
0
0
0
0
0
2
6
8
0
0
1
0
0
0
0
1
0
0
2
1
2
3
4
5
6
7
8
9
F
0
0
1
0
0
1
0
6
0
8
2
3
0
0
0
0
0
1
0
6
1
2
3
4
5
6
7
8
9
F
0
0
2
2
0
2
0
0
1
7
9
0
0
0
0
4
0
1
x
14
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
F
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
2
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
A "line score" of a baseball game lists the runs scored by each team in each inning, along with various embellishments such as the total number of runs scored by each team. This Demonstration lets you produce synthetic line scores for baseball games. You choose the mean number of runs scored per inning and the standard deviation of runs scored per inning using the sliders. You choose the length of the standard game. The Demonstration responds by producing 18 sample line scores. If you want to produce a new sample without changing any of the other parameters, you can move the bottom slider.