# Grid Predictions

The <mark style="color:red;">`grid`</mark> prediction endpoint calculates [`maxfit`](/prediction-engine/maxfit.md) solutions across all possible combinations of attributes (independent variables). It evaluates these solutions over relevance and similarity censors, ultimately producing an adjusted-fit weighted average of all outcomes. By taking this comprehensive approach, grid prediction ensures a robust and holistic understanding of the data, making it ideal for uncovering deeper patterns and insights across multiple variable combinations without overfitting.

Whether you’re looking for high-level overviews or fine-grained control with custom settings, the grid prediction system adapts to your needs, ensuring accurate and relevant results tailored to your task. This versatile method is ideal for discovering patterns, optimizing decisions, and forecasting outcomes.

## Quick Start

Getting started with the <mark style="color:red;">`grid`</mark> endpoint is straightforward. Just provide the required access ID along with the key prediction inputs: dependent variable, independent variables, and the prediction conditions. The API will then post your prediction task to the CSA Prediction Engine for processing. This approach is ideal for quickly deriving insights and making data-driven decisions, without the need for complex customizations.

{% openapi src="<https://raw.githubusercontent.com/CambridgeSportsAnalytics/prediction_engine/refs/heads/main/docs/api_specs/basic.json>" path="/grid" method="post" %}
<https://raw.githubusercontent.com/CambridgeSportsAnalytics/prediction_engine/refs/heads/main/docs/api_specs/basic.json>
{% endopenapi %}

## Custom Settings

The <mark style="color:red;">`grid`</mark> endpoint offers extensive customization options, allowing you to fine-tune prediction options. Whether you’re adjusting relevance threshold resolution or specifying attribute combinations, these settings ensure the output is precisely aligned with your objectives. This flexibility is ideal for advanced users looking to optimize predictive performance.

{% openapi src="<https://raw.githubusercontent.com/CambridgeSportsAnalytics/prediction_engine/refs/heads/main/docs/api_specs/extended.json>" path="/grid" method="post" %}
<https://raw.githubusercontent.com/CambridgeSportsAnalytics/prediction_engine/refs/heads/main/docs/api_specs/extended.json>
{% endopenapi %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.csanalytics.io/prediction-engine/grid.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
