# How to do prediction using dates in ignition

**URL:** <https://forum.inductiveautomation.com/t/how-to-do-prediction-using-dates-in-ignition/50727>\
**Category:** Ignition\
**Created:** [September 8, 2021, 5:34pm UTC](https://forum.inductiveautomation.com/t/how-to-do-prediction-using-dates-in-ignition/50727 "2021-09-08T17:34:14Z")\
**Posts on this page:** 1\
**Showing post:** 27

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [September 10, 2021, 11:07am UTC](https://forum.inductiveautomation.com/t/how-to-do-prediction-using-dates-in-ignition/50727/27 "2021-09-10T11:07:43Z")

</div>

Some functions here are no longer needed, since we now have newer versions of Jython (we were at v2.2 when I started this). But, I did manage to squeeze in a simple linear and polynomial regressions.

> [@Math Extensions for Ignition](https://forum.inductiveautomation.com/t/math-extensions-for-ignition/3106):
>
> EDIT 2017-07-13: Things have changed enough that this first post is getting revamped. EDIT 2019-08-08: Re-uploaded due to broken link Some useful math functions just aren’t available through scripting. This is an attempt to rectify some of it. Functions: sum mean rectangular-to-polar conversions polar-to-rectangular conversions simple linear regressions polynomial regression greatest-common-denominator least common multiple standard deviation (population and sample) decimal to BCD decimal t…

---

_[View the full topic](https://forum.inductiveautomation.com/t/how-to-do-prediction-using-dates-in-ignition/50727)._
