Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

1.

Continuos Probability distribution functions


The probability distribution of total annual snowfall in Illinois, in inches, is given
by the function below.

1
In[ ]:= Piecewise{0, x ≤ 10},  * 40 - x, 10 < x ≤ 40, {0, x > 40}
función a trozos 450

0 x ≤ 10
40-x
Out[ ]= 10 < x ≤ 40
450
0 True

1
In[ ]:= PlotPiecewise{0, x ≤ 10},  * 40 - x, 10 < x ≤ 40, {0, x > 40}, {x, 0, 50}
repr⋯ función a trozos 450

0.07

0.06

0.05

0.04
Out[ ]=
0.03

0.02

0.01

10 20 30 40 50

What is the probability that snowfall is between 20 a 30 inches in a


year?
30 40 - x
In[ ]:=  Piecewise{0, x ≤ 10},  , 10 < x ≤ 40, 0 ⅆ x
20 función a trozos 450

1
Out[ ]=
3

Probability that snowfall is 5-15 inches in a year?


15 40 - x
In[ ]:= 0+ Piecewise{0, x ≤ 10},  , 10 < x ≤ 40, 0 ⅆ x
10 función a trozos 450

11
Out[ ]=
36

11
In[ ]:=
36.
Out[ ]= 0.305556

Probability that there will be two or three high-snowfall


events?

Printed by Wolfram Mathematica Student Edition


2 lectura 5.nb

P(2 ⋃ 3) = P(2)+ P(3) = 0.30+0.13 =0.43


Bartender’s dartboard. You are not very good at darts, and the dart is
equally likely to land anywhere on this board, which has a radius of 45 cm.
(However, you are good enough that the dart always hits the board.)
What’s the PDF of the random variable R, “distance from the center”?
In[ ]:= f[x_] := 2 * π * k * r * ⅆ r
45
In[ ]:=  2 * π * k * r ⅆ r
0

Out[ ]= 2025 k π

45
∫0 (2 * π * k * r) ⅆr = 1

2025 k π = 1

1
k= 2025 π

2
In[ ]:= f[x_] := *r
2025
- Probability that the dart lands exactly 5 cm from the center
No se puede realizar, debe haber un intervalo
-Probability that the dart lands 5-8 cm from the center?
8 2
In[ ]:=  * r ⅆr
5 2025
13
Out[ ]=
675

13
In[ ]:=
675.
Out[ ]= 0.0192593

Printed by Wolfram Mathematica Student Edition


lectura 5.nb 3

Probability that when you have thrown two darts, at least one of them lies 5-8 cm from the
center?
P(D1 ⋃ D2) = P(D1)+(D2)-P(D1⋂D2)

= 0.0192+0.0192-0.0192*0.0192
In[ ]:= 0.0192 + 0.0192 - 0.0192 * 0.0192
Out[ ]= 0.0380314

Printed by Wolfram Mathematica Student Edition

You might also like