Sie sind auf Seite 1von 14

Toss a fair coin in a spreadsheet Total number of coins = 100

Index of coins Outcome X Total number of heads obtained


1 #NAME? 1: Head #NAME?
2 #NAME? 0: Tail
3 #NAME? Sample mean of X
4 #NAME? #NAME?
5 #NAME?
6 #NAME? Sample Variance
7 #NAME? #DIV/0!
8 #NAME?
9 #NAME? Maximum of B4 and B5
10 #NAME? #NAME?
11 #NAME?
12 #NAME? Display "B4" if B4 > B5
13 #NAME? Display "B5" otherwise
14 #NAME? #NAME?
15 #NAME?
16 #NAME?
17 #NAME?
18 #NAME?
19 #NAME?
20 #NAME?
21 #NAME?
22 #NAME?
23 #NAME?
24 #NAME?
25 #NAME?
26 #NAME?
27 #NAME?
28 #NAME?
29 #NAME?
30 #NAME?
31 #NAME?
32 #NAME?
33 #NAME?
34 #NAME?
35 #NAME?
36 #NAME?
37 #NAME?
38 #NAME?
39 #NAME?
40 #NAME?
41 #NAME?
42 #NAME?
43 #NAME?
44 #NAME?
45 #NAME?
46 #NAME?
47 #NAME?
48 #NAME?
49 #NAME?
50 #NAME?
51 #NAME?
52 #NAME?
53 #NAME?
54 #NAME?
55 #NAME?
56 #NAME?
57 #NAME?
58 #NAME?
59 #NAME?
60 #NAME?
61 #NAME?
62 #NAME?
63 #NAME?
64 #NAME?
65 #NAME?
66 #NAME?
67 #NAME?
68 #NAME?
69 #NAME?
70 #NAME?
71 #NAME?
72 #NAME?
73 #NAME?
74 #NAME?
75 #NAME?
76 #NAME?
77 #NAME?
78 #NAME?
79 #NAME?
80 #NAME?
81 #NAME?
82 #NAME?
83 #NAME?
84 #NAME?
85 #NAME?
86 #NAME?
87 #NAME?
88 #NAME?
89 #NAME?
90 #NAME?
91 #NAME?
92 #NAME?
93 #NAME?
94 #NAME?
95 #NAME?
96 #NAME?
97 #NAME?
98 #NAME?
99 #NAME?
100 #NAME?
obtained
The binomial distribution is the discrete probability distribution of the numbe
of n independent yes/no experiments, each of which yields success with probab

Binominv(rand(), n, p)

Use a single function to generate the number of heads obtained from tossing 10
#NAME?
stribution of the number of successes in a sequence
elds success with probability p.

obtained from tossing 100 coins:


Suppose that the weather on a day is either rainy or non-rainy. The chance of rain tomorrow dep
previous weather conditions only through whether or not it is raining today and not on past weat
Specifically, if it rains today, then it will rain tomorrow with probability 0.6; if it does not rain to
rain tomorrow with probability 0.4.

Today is Sunday, and it is a rainy day. Simulate the weather for the rest of the week (Monday to

1: rainy 0: non-rainy

Sunday Monday Tuesday Wednesday Thursday Friday Saturday


Weather 1 #NAME? #NAME? #NAME? #NAME? #NAME? =IF(G16=1, BINO
rain tomorrow depends on
nd not on past weather conditions.
if it does not rain today, then it will

e week (Monday to Saturday).

=IF(G16=1, BINOMINV(RAND(), 1, 0.6), BINOMINV(RAND(),1,0.4))


Suppose that whether or not it rains today depends on previous weather conditions
through the last two days. Specically, suppose that if it has rained for the past two
days, then it will rain tomorrow with probability 0.7; if it rained today but not
yesterday, then it will rain tomorrow with probability 0.5; if it rained yesterday but
not today, then it will rain tomorrow with probability 0.4; if it has not rained in the past two day
rain tomorrow with probability 0.2.
Today is Monday, and it is a rainy day; yesterday (Sunday) was a non-rainy day. Simulate the w
rest of the week (Tuesday to Saturday).

1: rainy 0: non-rainy

Sunday Monday Tuesday Wednesday Thursday Friday Saturday


Weather 0 1 #NAME? #NAME? #NAME? #NAME? =IF(AND(F18=1,

In H18, the formula is displayed in red.


The same formula is used for D18--G18.
ditions
t two
ot
ay but
in the past two days, then it will

day. Simulate the weather for the

=IF(AND(F18=1, G18=1), BINOMINV(RAND(),1, 0.7), IF(AND(F18=0, G18=1), BINOMINV(RAN


=1), BINOMINV(RAND(),1,0.5), IF(AND(F18=1, G18=0), BINOMINV(RAND(),1,0.4), BINOMINV
(),1,0.4), BINOMINV(RAND(),1,0.2))))

Das könnte Ihnen auch gefallen