Predicting the future with data
Another way to predict the future is to gather data from there you can make predictions. You can then use maths, statistics, machine learning, algorithm and artificial intelligence or a combination of the mentioned above. From here you can see how maths and statistic plays an important part. In this case it also includes computer science.
If you want to learn more just google - predicting the future big data machine learning or Can machine learning predict the future? Or predicting the future with data.
Remember the saying:
"The best way to predict the future is to invent it” – well this is a handy phrase.
More on predicting the future:
Try reading this website for more info - https://en.wikipedia.org/wiki/Prediction or google - wikipedia predicting