# Probability of weather on consecutive days.

Probability of a cloudy day is .55 Probability of a sunny day is .45

A)What is the probability of three consecutive cloudy days, followed by a sunny day?

B)What is the probability that exactly 1 out of 4 consecutive days will be sunny?

C)What is the probability that at least 1 out of 4 consecutive days will be sunny?

I think part A is a Geometric distribution where a success is a sunny day and the number of trials is 3.

You should probably know that the number of ways to construct each case is just the binomial coefficient $\binom{n}{k}$, where $n$ is the total number of days and $k$ is either the number of sunny or rainy days. If not, it's not hard to just count up the cases for these problems. Just replace that thing with the number of cases you count. Multiplying this with the probabilities, we have the formula $\binom{n}{k}p^k(1-p)^{(n-k)}$. Finally, we just sum up all of the cases we need.
It's easy to show that the total probability is $1$. The binomial theorem states that the expansion: $$(x+y)^n = \sum\limits_{k = 0}^n x^ky^{n-k}$$ Setting $x = p$ and $y = 1-p$ we get: $$(p+1-p)^n = \sum\limits_{k = 0}^n p^k(1-p)^{n-k} = 1$$ For part C, we could just add up all the individual cases, but we could also just find the inverse probability and subtract it from $1$. $$\sum\limits_{k = 1}^n p^k(1-p)^{n-k} = 1 - p^0(1-p)^{n-0} = 1 - (1-p)^n$$ And that should pretty much explain all of those problems.
For A, the probability is simply $0.55\times 0.55\times 0.55\times 0.45$. For B and C, I would rather you use the binomial distribution, where probability of success (sunny) is $0.45$ and number of trials is $4$.
Let $X$ be the number of days, out of $4$ to be sunny. $X$ follows a binomial distribution with parameters $n=4$ and $r=0.45$.