# How to Predict On Test Data

**URL:** <https://discourse.pymc.io/t/how-to-predict-on-test-data/16559>\
**Category:** General\
**Created:** [February 17, 2025, 11:42am UTC](https://discourse.pymc.io/t/how-to-predict-on-test-data/16559 "2025-02-17T11:42:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![JAB](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/jab/32/5791_2.png) [@JAB](https://discourse.pymc.io/u/JAB)\
**Post date:** [February 20, 2025, 8:34pm UTC](https://discourse.pymc.io/t/how-to-predict-on-test-data/16559/2 "2025-02-20T20:34:34Z")

</div>

[I asked a question similar to this](https://discourse.pymc.io/t/out-of-sample-model-predictions-in-hierarchical-model-with-new-observed-data/15153/3). Basically I was wondering if I when getting new observations, do I add them to the existing model or resample the model from scratch. In my case since I can actually observe the data from the new groups, it is best for me to resample from scratch. However, there are cases where you may want to model groups that cannot be observed. In that case you would need to perform some **out of model** prediction not **out of sample** prediction.

This is a very helpful tutorial on the matter: [Out of model predictions with PyMC - PyMC Labs](https://www.pymc-labs.com/blog-posts/out-of-model-predictions-with-pymc/)

The other thing is that since you have temporal data, you may want to consider something that accounts for seasonality or other cycles within the data. This could improve your estimates if what you are modeling has any seasonality.

---

_[View the full topic](https://discourse.pymc.io/t/how-to-predict-on-test-data/16559)._
