Probability theory and the first boundary value problem