Computers models run thousands of simulations of near future weather and the data from those simulations determine the probability of any specific weather event.
Wikipedia has a bit more details https://en.m.wikipedia.org/wiki/Numerical_weather_prediction
Latest Answers