# Example: predicting flight delays, but per carrier

**URL:** <https://discuss.elastic.co/t/example-predicting-flight-delays-but-per-carrier/216007>\
**Category:** Elasticsearch\
**Created:** [January 22, 2020, 8:07am UTC](https://discuss.elastic.co/t/example-predicting-flight-delays-but-per-carrier/216007 "2020-01-22T08:07:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sven\_Beauprez](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@Sven\_Beauprez](https://discuss.elastic.co/u/Sven_Beauprez)\
**Post date:** [January 22, 2020, 8:07am UTC](https://discuss.elastic.co/t/example-predicting-flight-delays-but-per-carrier/216007/1 "2020-01-22T08:07:55Z")

</div>

I am learning about the way ES uses regression analysis and looking at the example of flight carriers, I wonder if it is possible to group on a certain field such as carrier and have predictions per carrier.

In the example, I would then be able to ask for a prediction for 'ES-Air' only.

Is that possible? If so what would need to be done on creating the regression model and how does the query looks like?

(update, adding link to example: [https://www.elastic.co/guide/en/machine-learning/7.5/flightdata-regression.html](https://www.elastic.co/guide/en/machine-learning/7.5/flightdata-regression.html) )

thnx

Sven

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 19, 2020, 8:07am UTC](https://discuss.elastic.co/t/example-predicting-flight-delays-but-per-carrier/216007/2 "2020-02-19T08:07:56Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
