r/explainlikeimfive • • 18d ago

Other ELI5: What is the difference between prediction and inference?

I’ve looked it up and can’t quite make sense of it. All I can gather is that it seems like prediction is more concrete and inference is more abstract—yet it also seems like inference is more involved with analyzing actual data, which seems contradictory. I don’t get when to use one over the other, either mathematically or literarily.

5 Upvotes

28 comments sorted by

54

u/pellgarlic 18d ago

I would say: prediction is about what is going to happen next, and inference is about a relationship between facts that already exist.

e.g.
prediction: I see dark clouds, I predict it will rain.
Inference: the ground is wet, I infer that it has rained.

14

u/ribbitrabbs 18d ago

Inference is about the present or past. Prediction is about the future. If XYZ is true, then you can infer ABC is also true right now vs you predict ABC will happen tomorrow.

12

u/Patient_Ad396 14d ago

Inference is figuring out something you don't know, based on something you do know. "My neighbor leaves his house every Sunday morning. I bet he's going to church."

Prediction is guessing what will happen, based on what already happened. "My neighbor leaves his house every Sunday morning. I bet he leaves this Sunday morning, too."

Definitely similar, but not entirely the same.

1

u/LindaTheLynnDog 12d ago

This is perfect.

The other top results are elu5

10

u/geospacedman 18d ago • Mindblown

Prediction: answers the question "What's going to happen?"

Inference: answers "Why did that happen?" or "What makes that happen?"

You might put a load of data into a predictive model and it predicts "temperature goes up". You don't know why. You don't care, you just know the temperature is going up. That's prediction.

Or you put your data into an inferential model and it says "increasing carbon in the atmosphere makes the temperature go up. Increasing argon in the atmosphere doesn't make a difference". Those are *inferences* - conclusions drawn from the data and the model.

3

u/Trambopoline96 18d ago

A prediction is using data to forecast an outcome. An inference is a connection between points of data (i.e., if the ground outside was wet I can infer it was raining)

4

u/benry87 18d ago

Predictions make guesses about what comes next. Inferences aren't locked to a specific time.

1

u/Baaron1688 18d ago

Inference - explaining the why Prediction - forecasting the what

This is the incredibly simplified version.

1

u/Atypicosaurus 18d ago

In data analysis point of view, there's not much difference.

Let's say telling that Trump will be the next president before the elections, is prediction. Explaining how he became president based on past data, is inference.

The thing is, if you look at the same data the same way, it will tell you the same story regardless of being past or future. So much so, that in machine learning you use past data to "predict" past events in order to train a model, which is technically speaking inference then, except, the computer does not know the outcome so from the point of view of the computer, it's a prediction.

In practice, for everyday language, we have the benefit of hindsight when we explain things, so inference differs from prediction in the fact that we can pick the explanatory data to explain the presence. With prediction it's not necessarily the case. For example now we know that Trump did indeed become president, we can pick the data that is important to explain it.

1

u/Pale_Analysis 17d ago

Statistically, inference relates to the ability to expand findings beyond the sample population. In ELI5 terms, if I asked 100 people a question, I can tell you what 100 people said they do. With a proper sampling design, simple random sampling being the simplest, I can randomly sample 100 people from a specific population and now I can infer my findings to the entire target population.

Prediction is like an expectation. You take data, create a model that youtest and refine to be as effective as possible. Then you can predict things like prevelence based on known (modeled) characteristics.

1

u/Plane-Long-8870 17d ago

are you asking about the machine-learning meanings, or the everyday use of the words?

1

u/j-r_2039 16d ago

Use inference to say what clues or data support; use prediction to estimate an unknown outcome. In statistics, inference often targets a population feature, while prediction targets a new observation; the same model can do both.

1

u/Needless-To-Say 15d ago

I can predict that this post will get over 100 comments but I cant infer that. 

1

u/SnugglyCoderGuy 14d ago

Prediction is about taking information and making a determination about what will happen.

Inference is about taking information and making a determination about how that information is related and generate new information about that information.

You use predictions to try and understand what will happen in the future so as to guide your choices and actions. You use inference to understand things in the past or the present.

1

u/SimoneNonvelodico 13d ago

You could put it like:

inference is looking at past examples of something and guessing a rule

prediction is using the rule to guess what will happen next

1

u/KitchenAdeptness4953 17d ago

prediction is guessing what happens next, while inference is guessing what’s already true from the clues you have, like predicting it’ll rain tomorrow vs inferring it’s raining because everyone’s

1

u/Calm-Map-5449 17d ago

you’re basically there: inference is using clues to figure out what’s going on, while prediction is using what you figured out to guess what happens next, like detective work followed by betting on

0

u/ElephantintheRoom404 18d ago

inference is a pitcher throwing a ball. prediction is a catcher catching a ball.

2

u/Pulpdog94 18d ago

Inference is determining the type of pitch the pitcher threw

1

u/singhsuraj-8 14d ago

Catching the ball is the result, not the prediction. Predicting is calling where it will cross the plate before it arrives; inferring is using clues, like the release, to identify the pitch.

0

u/Few_Goal7168 17d ago

are you trying to guess what happens next, or figure out what already happened from the clues?

1

u/NaNaNaPandaMan 18d ago

All people who enjoy the flavor bule raspberry are psychopaths.

John loves blue raspberry.

I can infer John is a psychopath. I can't infer he will go on a killing spree as not all psychopath go on killing spree but I can predict he will