/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} Problem 85 In the list problem, when the \(... [FREE SOLUTION] | 91Ó°ÊÓ

91Ó°ÊÓ

In the list problem, when the \(P_{i}\) are known, show that the best ordering (best in the sense of minimizing the expected position of the element requested) is to place the elements in decreasing order of their probabilities. That is, if \(P_{1}>P_{2}>\cdots>P_{n}\), show that \(1,2, \ldots, n\) is the best ordering.

Short Answer

Expert verified
By calculating the expected positions of the elements requested in list L and list L' (obtained by swapping elements a and b), we find that the difference in expected values, \( E(L) - E(L') \), is negative. This means that the expected value of list L', where elements are ordered in decreasing probabilities, is smaller than any other ordering. Therefore, the best ordering to minimize the expected position of the element is to place the elements in decreasing order of their probabilities.

Step by step solution

01

Define the expected value of an ordering

Let's define \(L\) as a list of elements, with length \(n\). Let \(E(L)\) be the expected position of the element requested in the list L, if list L has elements ordered in a certain way. We can calculate the expected position of the element requested as follows: \( E(L) = \sum_{i=1}^{n} P_{i} \cdot i \) where \(P_{i}\) is the probability of the element at position i being requested, and i is the position of the element.
02

Define a different ordering

Now let's consider two elements, \(a\) and \(b\), at positions \(i\) and \(j\) respectively, with probabilities \(P_{a}\) and \(P_{b}\). Assume that \(i < j\) and \(P_{a} < P_{b}\), meaning element a is before b in the list, but has a lower probability.
03

Compare the expected value of different orderings

Let's call the current list L and the list obtained by swapping elements a and b as L'. We want to compare the expected values of these two orderings, \(E(L)\) and \(E(L')\). For L, the expected value is: \( E(L) = \sum_{k=1}^{n} P_{k} \cdot k = \cdots + P_{a} \cdot i + \cdots + P_{b} \cdot j + \cdots \) For L', the list with elements a and b swapped, the expected value is: \( E(L') = \sum_{k=1}^{n} P_{k} \cdot k^{'} = \cdots + P_{a} \cdot j + \cdots + P_{b} \cdot i + \cdots \) Now let's find the difference between the expected values of these two orderings: \( E(L) - E(L') = (P_{a} \cdot i + P_{b} \cdot j) - (P_{a} \cdot j + P_{b} \cdot i) \) \( E(L) - E(L') = (P_{a} - P_{b}) \cdot (j - i) \) Since \(P_{a} < P_{b}\) and \(i < j\), the difference \((P_{a} - P_{b}) \cdot (j - i)\) is negative. This means that: \( E(L) - E(L') < 0 \) or \( E(L') > E(L) \)
04

Conclusion

We showed that the expected value of the list L', where elements a and b are swapped, is greater than the expected value of the original list L. Therefore, the list with the elements in decreasing order of their probabilities has a smaller expected value than any other ordering, and it is the best ordering in the sense of minimizing the expected position of the element requested.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with 91Ó°ÊÓ!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

The number of red balls in an urn that contains \(n\) balls is a random variable that is equally likely to be any of the values \(0,1, \ldots, n\). That is, $$ P\\{i \text { red, } n-i \text { non-red }\\}=\frac{1}{n+1}, \quad i=0, \ldots, n $$ The \(n\) balls are then randomly removed one at a time. Let \(Y_{k}\) denote the number of red balls in the first \(k\) selections, \(k=1, \ldots, n\). (a) Find \(P\left\\{Y_{n}=j\right\\}, j=0, \ldots, n\). (b) Find \(P\left\\{Y_{n-1}=j\right\\}, j=0, \ldots, n\). (c) What do you think is the value of \(P\left\\{Y_{k}=j\right\\}, j=0, \ldots, n ?\) (d) Verify your answer to part (c) by a backwards induction argument. That is, check that your answer is correct when \(k=n\), and then show that whenever it is true for \(k\) it is also true for \(k-1, k=1, \ldots, n\).

If \(R_{i}\) denotes the random amount that is earned in period \(i\), then \(\sum_{i=1}^{\infty} \beta^{i-1} R_{i}\), where \(0<\beta<1\) is a specified constant, is called the total discounted reward with discount factor \(\beta .\) Let \(T\) be a geometric random variable with parameter \(1-\beta\) that is independent of the \(R_{i} .\) Show that the expected total discounted reward is equal to the expected total (undiscounted) reward earned by time \(T\). That is, show that $$ E\left[\sum_{i=1}^{\infty} \beta^{i-1} R_{i}\right]=E\left[\sum_{i=1}^{T} R_{i}\right] $$

Let \(X_{1}, X_{2}, \ldots\) be independent continuous random variables with a common distribution function \(F\) and density \(f=F^{\prime}\), and for \(k \geqslant 1\) let $$ N_{k}=\min \left\\{n \geqslant k: X_{n}=k \text { th largest of } X_{1}, \ldots, X_{n}\right\\} $$ (a) Show that \(P\left\\{N_{k}=n\right\\}=\frac{k-1}{n(n-1)}, n \geqslant k\). (b) Argue that $$ f_{X_{N_{k}}}(x)=f(x)(\bar{F}(x))^{k-1} \sum_{i=0}^{\infty}\left(\begin{array}{c} i+k-2 \\ i \end{array}\right)(F(x))^{i} $$ (c) Prove the following identity: $$ a^{1-k}=\sum_{i=0}^{\infty}\left(\begin{array}{c} i+k-2 \\ i \end{array}\right)(1-a)^{i}, \quad 0

An unbiased die is successively rolled. Let \(X\) and \(Y\) denote, respectively, the number of rolls necessary to obtain a six and a five. Find (a) \(E[X]\), (b) \(E[X \mid Y=1]\), (c) \(E[X \mid Y=5]\).

Suppose \(X\) and \(Y\) are independent continuous random variables. Show that $$ E[X \mid Y=y]=E[X] $$ for all \(y\)

See all solutions

Recommended explanations on Math Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.