Predict a Number
Esta página aún no está disponible en español. Se muestra la versión en inglés.
Get a number for each new row, such as how many days a shipment will take, what a new customer will spend in their first year, or what a job will cost, with a range around each prediction.
You don’t pick this analysis. Ask your question in your own words and the Scientist chooses it.
What it answers
Section titled “What it answers”You have history: past shipments with their delivery times, past customers with their first-year spend. This analysis learns from that history how the inputs you know up front (the lane, the carrier, the first order’s size) relate to the number you want, and then predicts that number for new rows you haven’t seen the end of yet.
It answers “what will it be?” for each row. If you want “by how much does each input move it?”, ask What drives a number instead.
Questions you can ask
Section titled “Questions you can ask”- “What will each new customer’s first-year spend be?”
- “What order value should we expect from each campaign’s leads?”
- “What basket size should we expect from each marketplace order this month?”
- “How many days will each open shipment take to deliver?”
- “How many hours will each inbound truck take to unload, given its load and the dock?”
- “What length of stay should we expect for each new resident?”
- “What will each open project cost at completion?”
What you get back
Section titled “What you get back”In the paper:
- How accurate it is on data it never saw. The model is scored on rows held back while it learned, and compared with a simple rule of thumb such as the plain average. The paper says how much better it is, or that it isn’t.
- Which inputs matter most, measured on those held-back rows rather than on the rows it learned from.
- A range for each prediction (a prediction interval: the span a single future value is likely to fall in), sized from the model’s real mistakes on held-back rows.

What you can do next
Section titled “What you can do next”- Score new rows. Attach a table of new rows (this week’s shipments, last month’s new customers) to the investigation’s project and ask for a prediction for each. You get
prediction,lowerandupperfor every row. - Run what-ifs, such as “What if every shipment went by the faster carrier?”
- Ask follow-ups about the result.
The data it needs
Section titled “The data it needs”- One row per case, such as a shipment, customer or project, with the outcome you want to predict.
- Only inputs you’d know at the moment of predicting. A delivery’s final route isn’t known when the order is placed.
- At least 30 rows, and as a rule of thumb about 10 rows per input. See the rules every model needs.
Pitfalls Querri handles for you
Section titled “Pitfalls Querri handles for you”- Columns that give the answer away. A column recorded after the outcome, such as an actual delivery date when you’re predicting days to deliver, would make the model look perfect and be useless. Inputs like that are found and left out.
- The same customer or site appearing many times. When rows repeat a customer or store, whole customers or stores are held out together for testing, so the model can’t score well just by recognising them.
- A model that only looks clever. If it doesn’t beat the plain average on rows it never saw, the paper says so.
Limits
Section titled “Limits”- No effect sizes. It tells you what each row will be, not how much each input moves the number. Use What drives a number for that.
- New categories and unusual values are flagged. When you score a row with a category the model never saw (a new carrier) or a value outside anything in its history, the result warns you.
Related
Section titled “Related”- Predict yes or no: the chance of an outcome instead of a number
- Ranges and promises: a value you can promise 90% of the time
- How the Scientist checks its work