I have been having difficulty in deriving the probability function of unknown distributions. Once I look at the solutions I understand the procedure however I cannot think of the initial step.
Are there tricks which can be used or is it only intuition?
Here are a couple of examples, no need to solve them as I have the solutions, they are just for reference:
- Suppose a fair die is tossed three times. Let X be the largest of the three faces which appears. Find the probability function of X as a formula.
- Consider a sequence of independent tosses of a fair coin. Let the random variable X denote the number of tosses needed to obtain the first head. Determine the probability function of X and verify it satisfies the necessary conditions for a valid probability function.
Thanks to anyone who responds :) and I wish you an early Merry Christmas!

For example 1 it's easier to to do the cumulative probabilities then difference them at the end. $$ Pr(X \le n) = Pr(\text{each roll} \le n) = \left({n\over6}\right)^3 $$ Then $$ Pr(X=n) = P(X \le n) - Pr (X \le n-1) = \left({n\over6}\right)^3 - \left({n-1\over6}\right)^3 $$ $$ = {3n^2 - 3n + 1\over 216} $$ Same approach works for example 2. Try it and see!