<< Chapter < Page Chapter >> Page >

The class { X , Y , Z } of random variables is iid (independent, identically distributed) with common distribution

X = [ - 5 - 1 3 4 7 ] P X = 0 . 01 * [ 15 20 30 25 10 ]

Let W = 3 X - 4 Y + 2 Z . Determine the distribution for W and from this determine P ( W > 0 ) and P ( - 20 W 10 ) . Do this with icalc, then repeat with icalc3 and compare results.

Since icalc uses X and P X in its output, we avoid a renaming problem by using x and p x for data vectors X and P X .

x = [-5 -1 3 4 7];px = 0.01*[15 20 30 25 10];icalc Enter row matrix of X-values 3*xEnter row matrix of Y-values -4*x Enter X probabilities pxEnter Y probabilities px Use array operations on matrices X, Y, PX, PY, t, u, and Pa = t + u; [V,PV]= csort(a,P); icalcEnter row matrix of X-values V Enter row matrix of Y-values 2*xEnter X probabilities PV Enter Y probabilities pxUse array operations on matrices X, Y, PX, PY, t, u, and P b = t + u;[W,PW] = csort(b,P);P1 = (W>0)*PW' P1 = 0.5300P2 = ((-20<=W)&(W<=10))*PW' P2 = 0.5514icalc3 % Alternate using icalc3 Enter row matrix of X-values xEnter row matrix of Y-values x Enter row matrix of Z-values xEnter X probabilities px Enter Y probabilities pxEnter Z probabilities px Use array operations on matrices X, Y, Z,PX, PY, PZ, t, u, v, and P a = 3*t - 4*u + 2*v;[W,PW] = csort(a,P);P1 = (W>0)*PW' P1 = 0.5300P2 = ((-20<=W)&(W<=10))*PW' P2 = 0.5514
Got questions? Get instant answers now!

The class { A , B , C , D , E , F } is independent; the respective probabilites for these events are { 0 . 46 , 0 . 27 , 0 . 33 , 0 . 47 , 0 . 37 , 0 . 41 } . Consider the simple random variables

X = 3 I A - 9 I B + 4 I C , Y = - 2 I D + 6 I E + 2 I F - 3 , and Z = 2 X - 3 Y

Determine P ( Y > X ) , P ( Z > 0 ) , P ( 5 Z 25 ) .

cx = [3 -9 4 0];pmx = minprob(0.01*[42 27 33]);cy = [-2 6 2 -3];pmy = minprob(0.01*[47 37 41]);[X,PX] = canonicf(cx,pmx);[Y,PY] = canonicf(cy,pmy);icalc Enter row matrix of X-values XEnter row matrix of Y-values Y Enter X probabilities PXEnter Y probabilities PY Use array operations on matrices X, Y, PX, PY, t, u, and PG = 2*t - 3*u; [Z,PZ]= csort(G,P); PYgX = total((u>t).*P) PYgX = 0.3752PZpos = (Z>0)*PZ' PZpos = 0.5654P5Z25 = ((5<=Z)&(Z<=25))*PZ' P5Z25 = 0.4745
Got questions? Get instant answers now!

Two players, Ronald and Mike, throw a pair of dice 30 times each. What is the probability Mike throws more “sevens” than does Ronald?

P = (ibinom(30,1/6,0:29))*(cbinom(30,1/6,1:30))' = 0.4307

Got questions? Get instant answers now!

A class has fifteen boys and fifteen girls. They pair up and each tosses a coin 20 times. What is the probability that at least eight girls throw more heads thantheir partners?

pg = (ibinom(20,1/2,0:19))*(cbinom(20,1/2,1:20))' pg = 0.4373 % Probability each girl throws moreP = cbinom(15,pg,8) P = 0.3100 % Probability eight or more girls throw more
Got questions? Get instant answers now!

Glenn makes five sales calls, with probabilities 0.37 , 0.52 , 0.48 , 0.71 , 0.63 , of success on the respective calls. Margaret makes four sales calls with probabilities 0.77 , 0.82 , 0.75 , 0.91 , of success on the respective calls. Assume that all nine events form an independent class. If Glenn realizes a profit of $18.00 on each sale and Margaret earns$20.00 on each sale, what is the probability Margaret's gain is at least $10.00 more thanGlenn's?

cg = [18*ones(1,5) 0];cm = [20*ones(1,4) 0];pmg = minprob(0.01*[37 52 48 71 63]);pmm = minprob(0.01*[77 82 75 91]);[G,PG] = canonicf(cg,pmg);[M,PM] = canonicf(cm,pmm);icalc Enter row matrix of X-values GEnter row matrix of Y-values M Enter X probabilities PGEnter Y probabilities PM Use array operations on matrices X, Y, PX, PY, t, u, and PH = u-t>=10; p1 = total(H.*P)p1 = 0.5197
Got questions? Get instant answers now!

Mike and Harry have a basketball shooting contest.

  • Mike shoots 10 ordinary free throws, worth two points each, with probability 0.75 of success on each shot.
  • Harry shoots 12 “three point” shots, with probability 0.40 of success on each shot.

Let X , Y be the number of points scored by Mike and Harry, respectively. Determine P ( X 15 ) , and P ( Y 15 ) , P ( X Y ) .

X = 2*[0:10];PX = ibinom(10,0.75,0:10); Y = 3*[0:12]; PY = ibinom(12,0.40,0:12);icalc Enter row matrix of X-values XEnter row matrix of Y-values Y Enter X probabilities PXEnter Y probabilities PY Use array operations on matrices X, Y, PX, PY, t, u, and PPX15 = (X>=15)*PX' PX15 = 0.5256PY15 = (Y>=15)*PY' PY15 = 0.5618G = t>=u; PG = total(G.*P)PG = 0.5811
Got questions? Get instant answers now!

Martha has the choice of two games.

  • Pay ten dollars for each “play.” If she wins, she receives $20, for a net gain of $10 on the play; otherwise, she loses her $10. The probability of a winis 1/2, so the game is “fair.”
  • Pay five dollars to play; receive $15 for a win. The probability of a win on any play is 1/3.

Martha has $100 to bet. She is trying to decide whether to play Game 1 ten times or Game 2 twenty times. Let W 1 and W 2 be the respective net winnings (payoff minus fee to play).

  • Determine P ( W 2 W 1 ) .
  • Compare the two games further by calculating P ( W 1 > 0 ) and P ( W 2 > 0 )

Which game seems preferable?

W1 = 20*[0:10] - 100;PW1 = ibinom(10,1/2,0:10); W2 = 15*[0:20]- 100; PW2 = ibinom(20,1/3,0:20);P1pos = (W1>0)*PW1' P1pos = 0.3770P2pos = (W2>0)*PW2' P2pos = 0.5207icalc Enter row matrix of X-values W1Enter row matrix of Y-values W2 Enter X probabilities PW1Enter Y probabilities PW2 Use array operations on matrices X, Y, PX, PY, t, u, and PG = u>= t; PG = total(G.*P)PG = 0.5182
Got questions? Get instant answers now!

Jim and Bill of the men's basketball team challenge women players Mary and Ellen to a free throw contest. Each takes five free throws.Make the usual independence assumptions. Jim, Bill, Mary, and Ellen have respective probabilities p = 0.82 , 0.87 , 0.80 , and 0.85 of making each shot tried. What is the probability Mary and Ellen make a total number of free throwsat least as great as the total made by the guys?

x = 0:5; PJ = ibinom(5,0.82,x);PB = ibinom(5,0.87,x); PM = ibinom(5,0.80,x);PE = ibinom(5,0.85,x);icalc Enter row matrix of X-values xEnter row matrix of Y-values x Enter X probabilities PJEnter Y probabilities PB Use array operations on matrices X, Y, PX, PY, t, u, and PH = t+u; [Tm,Pm]= csort(H,P); icalcEnter row matrix of X-values x Enter row matrix of Y-values xEnter X probabilities PM Enter Y probabilities PEUse array operations on matrices X, Y, PX, PY, t, u, and P G = t+u;[Tw,Pw] = csort(G,P);icalc Enter row matrix of X-values TmEnter row matrix of Y-values Tw Enter X probabilities PmEnter Y probabilities Pw Use array operations on matrices X, Y, PX, PY, t, u, and PGw = u>=t; PGw = total(Gw.*P)PGw = 0.5746icalc4 % Alternate using icalc4 Enter row matrix of X-values xEnter row matrix of Y-values x Enter row matrix of Z-values xEnter row matrix of W-values x Enter X probabilities PJEnter Y probabilities PB Enter Z probabilities PMEnter W probabilities PE Use array operations on matrices X, Y, Z,WPX, PY, PZ, PW t, u, v, w, and P H = v+w>= t+u; PH = total(H.*P)PH = 0.5746
Got questions? Get instant answers now!

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Applied probability. OpenStax CNX. Aug 31, 2009 Download for free at http://cnx.org/content/col10708/1.6
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Applied probability' conversation and receive update notifications?

Ask