Consider the following sequence created by flipping a biased coin five times $$ D={H,H,T,H,H} $$
where H denotes heads and T denotes tails.
The probability of observing D (in the specific ordering given), assuming it was generated by flipping a coin X with an unequal probability of heads (H) and tails (H), where the distribution is:
$$ P(X=H) = 0.75 $$ $$ P(X=T) = 0.25$$
is simply:
$$ P(D) = \dfrac 3 4 \times \dfrac 34 \times \dfrac 14 \times \dfrac 34 \times \dfrac 34 = \dfrac {81}{1024} $$
However, my aim is to maximize this probability value by varying the individual $P(X=H)$ or in other words for what value of $P(X=H)$ do I maximize $P(D)$ ?