Solutions to the paper dated 1 June 2015.[ref] Every numbered subpart is treated. The original assertions in 2(b) and 2(c) are false: the two-bin repeated singleton-removal allocation gives exact counterexamples. Those answers explain the defect and the intended conditional calculation; 2(d) also supplies an independent, valid bound for the actual process.
The expectation of a real random variable on a probability space is its integral against the probability measure:
For a discrete random variable, this becomes ; for a random variable with probability density function , it becomes . A finite expectation requires , making an integrable random variable. An extended expectation can also be defined when just one of the positive and negative parts has finite expectation; the indeterminate difference is not allowed.
For a real random variable with finite expectation , its variance is
When the second moment is finite, expansion and linearity of expectation give . The definition also permits infinite variance when the expectation is finite but the second moment is infinite.
Chebyshev's inequality assumes a real random variable with finite expectation and finite variance . For every real ,
No independence assumption is needed. Applying Markov's inequality to the nonnegative random variable proves the formula, including the zero-variance case.
Let be the result of roll , so . Each has the uniform distribution on a finite set , giving
and hence variance . The rolls are independent, so linearity of expectation and variance additivity for independent random variables give
All the required moments are finite. Taking in Chebyshev's inequality now yields
This is an upper bound, rather than an exact tail probability.
Choose a positive integer-valued random variable with probability mass function
These masses are positive. They sum to one because the partial fraction decomposition
makes their sum a telescoping series with value . Its expectation is another telescoping series:
By contrast, since and for , its second moment satisfies
The comparison uses the divergent harmonic series. To check the variance directly, for we have , so the corresponding tail of also diverges. Thus
Here “unbounded” means infinite variance for this single probability distribution.
For with binomial distribution , where is a nonnegative integer and , use its probability mass function and the binomial theorem:
This moment-generating function of a binomial distribution is finite for every real , since the random variable has finite support. The formula also includes the degenerate cases , and .
The independence of and permits factoring the expectation of the product . The moment-generating function of a binomial distribution from the previous part therefore gives
This is the moment-generating function of . Both moment-generating functions are finite on a neighbourhood of zero, so the uniqueness theorem for moment-generating functions identifies the probability distribution:
The common success probability and independence are both used in this argument.
For each of the balls, let be the indicator random variable that ball survives the round of uniform balls-in-bins allocation. Condition on its chosen bin. Each of the other balls avoids that bin with probability , independently, so the probability that ball is served is . Hence, for ,
We used linearity of expectation to sum the indicator random variables; their mutual independence is unnecessary. For or , the next count is zero. This states the boundary cases without an ambiguous when .
There is no proof of the printed assertion: it is false for the stated expectations. The original explicitly defines as the expected remaining count, so replacing it by a deterministic upper envelope changes the problem.[ref]
Let be the actual count after rounds and . The union bound gives the valid conditional estimate
By the law of total expectation, the resulting unconditional bound is
Discarding the variance term is an expectation closure error for a nonlinear recurrence. In particular, Jensen's inequality says , which cannot justify the requested upper bound.
For an exact counterexample, start with two balls and two bins. A round serves both balls if they land separately and serves neither if they collide. Each outcome has probability , independently in successive rounds while both balls remain. Consequently
At , the requested inequality would say , but
The printed bound also fails for the actual expectations. In the two-bin counterexample from part (b), at the true value and proposed bound are
The supplied premise does hold in this example: . Thus the problem is the invalid recurrence in part (b), rather than failure of the supplied starting estimate.[ref]
The intended mathematical induction is valid conditionally on the recurrence. For a deterministic nonnegative sequence satisfying and , the base case is . If , then
This proves the proposed form for but cannot identify with .
Figure 1.
Exact two-bin survivor expectation and the invalid printed bound
. Details.
If the bound in part (c) were available, the intended answer would be
Indeed , so that bound would give . Its growth is in Big O notation. Because (c) is false, this substitution alone does not prove the result for the actual repeated singleton-removal allocation.
The requested order can nevertheless be established for the actual process. Here is a concrete, deliberately generous replacement, with for the empty system:
The large cutoff makes the numerical estimates below simple. A finite initial range does not affect the asymptotic analysis.
First, whenever , a ball is served with probability at least
Thus part (a) gives , also for . The law of total expectation yields . This proves for the small- branch, including , whose single ball is served immediately.
For the large- branch, we need control of the random count, rather than an unjustified recurrence for its expectation. If balls are allocated in a round, changing one chosen bin changes the number of singleton bins by at most two. The surviving count therefore has the bounded differences property with constants . McDiarmid's inequality gives
This can be applied conditionally after any history, since the next allocations are fresh independent random variables.
Use this concentration inequality in three stages. Write .
  • For the first eight rounds, whenever , the conditional expectation is at most . Taking shows that the next count is at most , except with probability at most . If the count has already fallen below , it stays there. Since and , this gives outside the stated exceptional events.
  • Starting with , set . If and , part (a) and the union bound give . Taking gives a next count at most , except with probability at most . The deterministic solution is . It falls below within steps. After reaching that threshold the count cannot increase, so outside the exceptional events.
  • From , the next conditional expectation is at most . A deviation leaves at most balls except with probability . From at most balls, the next conditional expectation is at most . Taking leaves at most balls except with probability . Conditional on this final count bound, one more round has expectation at most .
Every exceptional probability above is at most , and there are at most opportunities for an exception. For , the elementary bounds and give, by the union bound, total exceptional probability at most . The first numerical inequality holds at the cutoff and remains true because is increasing there. On an exceptional history there are at most balls. Taking the last round's conditional expectation and then averaging gives
This proves the displayed replacement for the literal process without relying on either false assertion.
Consider any edge of the simple graph. One endpoint comes first in the permutation ; suppose it is . Then has a graph neighbour preceding it, namely , so . Therefore no edge has both endpoints in :
This argument uses only the order of the endpoints, with no random choice required.
Choose a uniform random permutation of the vertices, giving every one of the orders the same probability. For a fixed vertex , consider together with its graph neighbours. The relative order of these vertices is uniform, so each is equally likely to be first. The membership rule for therefore gives
Let be the indicator random variable of this event. The cardinality is , and linearity of expectation gives
The indicator random variables are generally dependent; only the uniform random permutation and linearity of expectation were needed. An isolated vertex has and is always included, as the formula correctly predicts.
The expectation from part (f) is the average of over the finite collection of permutations. At least one value is as large as its average. By part (e), the corresponding is an independent set, so
Here is the independence number. Since its value is an integer, one can equivalently round the right side up with the ceiling function. This application of the probabilistic method is the Caro-Wei bound.
A trial of Amy's rejection sampling uses exactly fair Bernoulli trials. Exactly of the equally likely binary sequences have heads, so the acceptance probability is
Independent retries make the number of trials a geometric random variable on with expectation . The total number of coin tosses is , so
Using Stirling's approximation, the central binomial coefficient satisfies
Consequently
The rejection sampling output is uniform among the balanced binary sequences: they have equal probability on every trial, and conditioning on acceptance preserves that equality. For , the empty output needs zero tosses; the formula above concerns .
Betty's scheme is biased for every . The output occurs precisely when the first tosses are heads: the algorithm stops there and appends tails. Thus
For comparison, take the output . Its first symbols contain heads and tails, so neither stopping threshold has been reached. The next symbol is the th head, at which point the last tail is appended. Its unique generating prefix has length , giving
Therefore
The faster stopping rule does not produce a uniform distribution on a finite set of balanced binary sequences. For example, at the six outputs have the following exact probabilities:
OutputBettyUniform target
HHTT
HTHT
HTTH
THHT
THTH
TTHH
For , the two possible outputs each have probability , so that special case is uniform. For , simply return the empty output.
Use uniform balanced binary sequence sampling by choosing the positions of the heads. Number the positions from zero to . Start with no selected positions. Repeatedly toss the fair coin times, interpret the resulting bits as a position, and select that position if it has not already been selected; otherwise discard this block of tosses and retry. Stop when distinct positions have been selected. Put heads at those positions and tails everywhere else.
After positions have been selected, every one of the remaining positions has the same probability of being the next new position. This follows either by summing a geometric series over rejected blocks or by conditioning a uniform distribution on a finite set on avoiding the selected positions. Every ordered list of distinct selected positions consequently has probability
Each fixed -element subset has such orders, so its probability is
Thus every balanced binary sequence is equally likely.
When positions are selected, a block succeeds with probability , so the geometric distribution gives expectation blocks until the next new position. By linearity of expectation, the total expected toss count is
The strict inequality holds since , making each term less than two. A Boolean array records membership of each position; initializing it and constructing the output require additional work. The scheme terminates with probability one, since every stage has positive success probability.
Colour each edge of the complete graph independently red or blue, with probability for each colour. Every four-element subset of vertices determines exactly one copy of , containing six edges. These six edges are all red with probability and all blue with probability . The events are disjoint events, so
Let be the indicator random variable for this event and let count the monochromatic copies. Linearity of expectation gives
The indicator random variables for overlapping copies need not be independent. Averaging over all edge colorings ensures that at least one has . Thus the probabilistic method proves
For , both sides are zero and any edge coloring works. Copies are counted by their four-vertex subsets, rather than by their possible labellings.
Set . Independently sample an edge coloring exactly as in part (d), count its monochromatic copies of by examining all four-vertex subsets, and accept precisely when . Otherwise start over with a fresh edge coloring.
To prove an expected polynomial time bound, the existence argument alone is insufficient: we need a lower bound on the acceptance probability at this exact threshold. Since is a nonnegative integer with expectation , rejection implies . Markov's inequality therefore gives the integer-valued expectation threshold restart bound
The number of attempts has a geometric distribution, with expectation at most . Sampling the edge coloring costs random bits, and checking all four-vertex subsets costs operations, since only six edges must be tested per subset. Hence
This is a randomized algorithm that always returns an edge coloring meeting the original threshold and terminates with probability one. The stated operation count uses -bit counters; counting their bit complexity explicitly introduces at most a further logarithm factor and still gives polynomial time. For , return any edge coloring immediately.
Order the edges arbitrarily and fix their colours one at a time. After a partial assignment , regard all unassigned edges as independent fair red/blue choices, and compute
The conditional expectation of a monochromatic clique count is easy to compute. For each four-vertex subset , let be the number of its six edges still unassigned. Its contribution to is
In the second case, every remaining edge must match the already fixed colour; this includes a completely fixed monochromatic copy, for which and the contribution is one. In the last case, the six unassigned edges may become either all red or all blue. By linearity of expectation,
For the next unassigned edge , compute and . The law of total expectation gives
Choose the colour with the smaller value, resolving a tie by a fixed rule. At least one is at most their average, so the loop invariant is that never increases. Initially ; once every edge is fixed, there is no randomness left and . Therefore the method of conditional expectations guarantees
A direct implementation recomputes both sums over all four-vertex subsets for each of the edges, requiring arithmetic operations. The comparisons can be exact: every contribution is a multiple of , so store as an integer with bits. This gives bit complexity with elementary arithmetic, and hence a deterministic polynomial time construction. No random sampling is performed by this derandomization.

Articles by others on the same topic (0)

There are currently no matching articles.