Hoping someone can help me correct the flaws in my logic.
I have a number of water tanks, which may leak. I want to model the probability a water tank leaks given that it has never leaked before as a function of water tank age. Due to the small number of water tanks that do leak, I have to calculate probabilities in broad age bins of 10 years.
I calculate the probability as follows
- Find all the first leaks and stratify them into year of leak.
- In each year, calculate the water tank age at first leak.
- In each year, count the number of first leaks in each 10 year age bin.
- In each year, calculate the age of all water tanks that have not leaked prior to that year (or ever).
- In each year, calculate probability in 10 year age bins, as first leak counts divided by the sum of first leak counts and never leaked counts.
This gives me probabilities in 10-year age bins for each year of data I have. I then take the mean over age bins across years to get a final probability as function of age. The splitting by year may seem weird but I do this because non-leaking water tanks need to be sampled at the same age as the leaking water tanks at their first leaks. I know of no other way to deal with this.
There is a lot I am unsure of in the calculation for example
- Is this business of calculating the probability in each year of data and taking the mean reasonable?
- Does a flaw in this method arise because I don't track the leakage of water tanks all the way through a 10-year age bin? For example, If I have a water tank aged 2 years old that has never leaked, should I be considering the fact that it may leak in the 8 future years that it remains in that bin?
I am hoping someone can help me with my logic, feel free to dismantle this procedure as long as you can help me work towards a correct method.