What statistical test to use to figure out probability given these circumstances

modernelement

New member
Joined
Jun 19, 2020
Messages
1
Here's the scenario. I have a product, let's call it milk. I'd like to know the probability of milk being spoiled given the days since it was produced. My data set has two variables, days since production (t) and spoiled or not spoiled (pass/fail, or X=0,1). We know that x is dependent on t, so as time increases (t), the probability of X being 1 (fail) increases. My sample size is around 150 (n=150).

So back to the question, how can I predict the probability of the milk being spoiled when given the age of the milk (days since produced).
I understand that I want to know the probability of x given t, where x is dependent on t. I'm not sure where to go from here. Any help is appreciated and thanks for reading.
 
Top