Predicted End Times for Sports

Many events don’t have end times, which is critical information for our transport and on-demand customers. For example, for sports events around 80% or more of source event data doesn’t have a known end time.

This is usually because end times for a sports game or a concert are recorded after the event finishes. Yet many of our transport customers need a predicted end time for future scheduled events (which means providing the end time before the event finishes).

The end time and duration of an event is a key piece of information for events data. The goal of this feature is to increase our end time coverage.

The Predicted End Times feature uses machine learning and our intelligent algorithms to predict event end times. The goal is that customers can use the predicted end time value where an actual known end time is not present.

The initial beta release of Predicted End Times is for sports events and it covers 8 sports (American football, Basketball, Baseball, Ice-hockey, NASCAR, Soccer, Rugby, and Australian rules football) . In future we will release Predicted End Times for more categories of events. This document provides details on the Predicted End Times beta for sports.

Example Use Cases

  • Workforce Optimization: For transportation companies if you want to arrange transportation for people leaving an event you can use Predicted End Times.
  • Demand Forecasting: When forecasting impact of events in certain time periods the end time of the event is required.

How do we calculate it?

We use a combination of methods which are largely determined by the availability of historical data. For sports types with historical data, we use machine learning methods including linear regression and quantile regression. These models use features such as gender, season, and leagues. For sports types without historical data, we use research-based methods e.g. using the mean, using track and series estimates for NASCAR. As a result, our predictions for these events may be less robust. Across all sports types, we cover Professional, College and International types, where applicable.

Sports Professional College International
Ice-hockey Model-based Research-based Model-based
Rugby Model-based Model-based Model-based
Basketball Model-based Research-based Research-based
Australian Football Model-based Model-based Model-based
American Football Model-based Model-based Research-based
Football/Soccer Research-based Research-based Research-based
Baseball Model-based Research-based Research-based
NASCAR Research-based Research-based Research-based

Predicted End Times in PredictHQ API

The events endpoint of the PredictHQ API has been updated with changes for the Predicted End times feature:

  • You can sort events on the predicted end time value by using the sort parameter with a value of predicted_end or -predicted_end.

  • You can filter on predicted end times by specifying a date range with the predicted_end.* parameter.

  • Predicted end time is returned as the predicted_end field in the events response data. This field will only be present if an actual end time is not available for the event and we have a predicted end time. The predicted end date of the event in ISO 8601 format.

Note: Predicted end time and all other start and end times are in UTC if the event time zone is provided, and in local time otherwise. For example, Independence Day falls on the 4th of July regardless of the time zone, and will have a null time zone.

How to use the API

If an event does not have a valid end time then the predicted_end field will be present in the response. To use Predicted End Times you can implement logic that checks if the predicted_end field is present. The logic should be: - If the predicted_end field is present then use predicted_end field value for the event end time. - If the predicted_end field is not present use the end field for the event end time.

You can also use the sort parameter to sort by the end time and the predicted_end where needed.


  • Predicted end times is a predicted value not an actual end time value. It is based on various machine learning models and statistical methods. We aim to have good accuracy on average but there is a margin of error in the value. Please take this into account when you use the value.
  • For events that don’t have an end time the end time is set to the same as the start time in our events API response.

Example Output

Example of an event with a Predicted end time

    "relevance": 1.0,
    "id": "hHkH8zLEYGA2zBH3ka",
    "title": "NBA - Los Angeles Lakers vs Sacramento Kings",
    "description": "",
    "category": "sports",
    "start": "2020-04-15T02:30:00Z",
    "end": "2020-04-15T02:30:00Z",
    "predicted_end": "2020-04-15T04:50:00Z",
    "updated": "2019-08-13T06:21:03Z",
    "first_seen": "2019-08-13T02:25:35Z",

Example of an event with an actual end time.

In this case the predicted_end field is not present.

    "relevance": null,
    "id": "vaUVM7J4nwfNVngoxy",
    "title": "Washington Nationals vs Los Angeles Dodgers",
    "start": "2019-10-04T00:37:00Z",
    "end": "2019-10-04T04:01:15Z",
    "updated": "2019-10-07T02:58:30Z",
    "first_seen": "2019-08-06T07:01:03Z",

Example One: Find all events with a Predicted End Time greater than 1 Oct 2019

GET /v1/events/?
    "count": 100000,
    "overflow": true,
    "next": "",
    "previous": null,
    "results": [
            "relevance": 1.0,
            "id": "gsT7BRmWbB9EPEdktk",
            "title": "Chicago Blackhawks vs Anaheim Ducks",
            "description": "",
            "category": "sports",
            "labels": [
            "rank": 76,
            "local_rank": 88,
            "aviation_rank": 46,
            "entities": [
                    "formatted_address": "1901 West Madison Street\nChicago, IL 60612\nUnited States of America",
                    "entity_id": "Vy5s5Cx4cYAf5uKQNG8hQ9",
                    "type": "venue",
                    "name": "United Center"
            "duration": 0,
            "start": "2022-01-04T01:00:00Z",
            "end": "2022-01-04T01:00:00Z",
            "predicted_end": "2022-01-04T03:15:00Z",
            "updated": "2019-09-12T19:10:52Z",
            "first_seen": "2019-08-05T12:01:40Z",
            "timezone": "America/Chicago",
            "location": [
            "scope": "locality",
            "country": "US",