FIRST COURSE IN PROBABILITY (LOOSELEAF)
FIRST COURSE IN PROBABILITY (LOOSELEAF)
10th Edition
ISBN: 9780134753751
Author: Ross
Publisher: PEARSON
bartleby

Videos

Textbook Question
Book Icon
Chapter 10, Problem 10.1P

The following algorithm will generate a random permutation of the elements 1,2, ..., n. It is somewhat faster than the one presented in Example 1a, but is such that no position is fixed until the algorithm ends. In this algorithm, P ( i ) can be interpreted as the element in position i.

Step 1. Set k = 1

Step 2. Set P ( 1 ) = 1 .

Step 3. If k = n , stop otherwise, let k = k + 1 .

Step 4. Generate a random number U and let P ( k ) = P ( [ k U ] + 1 ) P ( [ k U ] ÷ 1 )   = k

Go to step 3.

a. Explain in words what the algorithm is doing.

b. Show that at iteration k—that is. when the value of P(k) Is initially set—

P(1), P(2), ..., P(k) is a random permutation of 1, 2, ..., k.

Hint: Use induction and argue that P k { i 1 , i 2 ... , i j 1 , k , i j , ... , i k 2 , i } = P k 1 { i 1 , i 2 ... , i j 1 , k , i j , ... , i k 2 } 1 k = 1 k !  by the induction hypothesis

(a)

Expert Solution
Check Mark
To determine

To find: the explanation that the algorithm is doing.

Explanation of Solution

Given:

Some steps of algorithm are given.

The algorithm starts by initially putting k=1 thus it sets p(1)=1 .

Then, until K=M it increases the value of K by one after each iteration. It generates a random number U and replaces p(k) by p([ku]+1) . Then, it puts p([ku]+1)=k . Then, it goes again to step 3.

This algorithm start by putting p(1)=1 , but it does not exclude this value in next interation the value of p(1) can change in any subsequent iteration. Thus, no position is fixed until the algorithm ends.

Therefore, therequired explanation is shown above.

(b)

Expert Solution
Check Mark
To determine

To prove:that the set p(1),p(2),.....,p(k) which is a random permutation of 1,2,....,k .

Explanation of Solution

Given:

It is given that pk{i1,i2,......,ik}=pk1{i1,i2,.....,ik1}×p{ik} .

As it is given that the condition pk{i1,i2,......,ik}=pk1{i1,i2,.....,ik1}×p{ik} .

It is known that;

  p{ik}=1total sample space=1k

Then, the given condition becomes;

  pk{i1,i2,......,ik}=pk1{i1,i2,.....,ik1}×1k

Similarly,

  pk{i1,i2,......,ik}=1k×1k1×.....11=1k!

This proves that at iteration k can be defined as p(1),p(2),.....,p(k) which is a random permutation of 1,2,....,k .

Therefore, the required identity has been proved.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
QUESTION 18 - 1 POINT Jessie is playing a dice game and bets $9 on her first roll. If a 10, 7, or 4 is rolled, she wins $9. This happens with a probability of . If an 8 or 2 is rolled, she loses her $9. This has a probability of J. If any other number is rolled, she does not win or lose, and the game continues. Find the expected value for Jessie on her first roll. Round to the nearest cent if necessary. Do not round until the final calculation. Provide your answer below:
5 of 5 (i) Let a discrete sample space be given by Ω = {ω1, 2, 3, 4}, Total marks 12 and let a probability measure P on be given by P(w1) 0.2, P(w2) = 0.2, P(w3) = 0.5, P(w4) = 0.1. = Consider the random variables X1, X2 → R defined by X₁(w3) = 1, X₁(4) = 1, X₁(w₁) = 1, X₁(w2) = 2, X2(w1) = 2, X2(w2) = 2, X2(W3) = 1, X2(w4) = 2. Find the joint distribution of X1, X2. (ii) [4 Marks] Let Y, Z be random variables on a probability space (N, F, P). Let the random vector (Y, Z) take on values in the set [0,1] × [0,2] and let the joint distribution of Y, Z on [0,1] × [0,2] be given by 1 dPy,z(y, z) (y²z + y²²) dy dz. Find the distribution Py of the random variable Y. [8 Marks]
Total marks 16 5. Let (,,P) be a probability space and let X : → R be a random variable whose probability density function is given by f(x) = }}|x|e¯|×| for x Є R. (i) (ii) Find the characteristic function of the random variable X. [8 Marks] Using the result of (i), calculate the first two moments of the random variable X, i.e., E(X") for n = 1, 2. (iii) What is the variance of X? [6 Marks] [2 Marks]

Additional Math Textbook Solutions

Find more solutions based on key concepts
Knowledge Booster
Background pattern image
Probability
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, probability and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Linear Algebra: A Modern Introduction
Algebra
ISBN:9781285463247
Author:David Poole
Publisher:Cengage Learning
Text book image
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:9781133382119
Author:Swokowski
Publisher:Cengage
Text book image
Elements Of Modern Algebra
Algebra
ISBN:9781285463230
Author:Gilbert, Linda, Jimmie
Publisher:Cengage Learning,
Graph Theory: Euler Paths and Euler Circuits; Author: Mathispower4u;https://www.youtube.com/watch?v=5M-m62qTR-s;License: Standard YouTube License, CC-BY
WALK,TRIAL,CIRCUIT,PATH,CYCLE IN GRAPH THEORY; Author: DIVVELA SRINIVASA RAO;https://www.youtube.com/watch?v=iYVltZtnAik;License: Standard YouTube License, CC-BY