Ben Chuanlong Du's Blog

And let it direct your passion with reason.

Calculate Covariance Between Multinomial Categories by Hand

Let \((X_1, \ldots, X_k)\sim\text{Multinomial}(n, p_1, \ldots, p_k)\). I'll show how to calculate \(Cov(X_i, X_j), i\ne j\). The main purpose of doing this is to illustrate the little trick of reducing complexity of problems by decomposing a complicated random variable into simple ones.

Let \((Y_ …

Which One Is the Best Strategy? (continued)

Suppose we flip a coin which has probability 0.7 to be head again and again and two people choose two different sequences of length 3 (e.g., THH). The people whose sequence appears first wins. If you are allowed to choose first, which sequence will you choose?

I discussed …

Expected Gain of Tossing a Dice

Suppose you toss a symmetric dice. You are allowed to quit the game and get money which equals the total points you get at any time if 6 has never showed up. Whenever 6 shows up, the game is over and you get nothing. For example, if the first three …

Randomly Select an Integer?!

I found this "probability" problem when I read a person's blog.

What's probability that two randomly chosen nature numbers are relatively prime?

It is claimed that there is a very elegant solution for this problem. This problem reminds me another one. Some people asked for an example of a 0-probability …

How Many Balls Do We Need?

If we randomly put balls into \(m(\ge1)\) boxes until \(n(\le m)\) of them are occupied, what is the expectation of the number of balls needed?

See my neat solution here.

Number of Records?

Suppose there are \(n\) distinct numbers \(x_1,\ldots, x_n\), and \(y_1, \ldots, y_n\) is a random permutations of them. If \(\exists k\) such that \(y_k<y_i, \forall 1\le i<k\), then we say that \(y_k\) is a record (we always count \(y_1\) as a record). What is the expected …