shg4421
Electrical
- Apr 7, 2018
- 11
Last year I asked a question in about a function to give the number of spares required for a lifetime purchase given only the number of operating hours and failures to date, the operating hours remaining, and the confidence level. -- something I thought would be pretty common, but apparently not. In the end, I wrote a VBA function for Excel to do just that via numerical integration:
= NumSpares(HrsSoFar, nFail, HrsToGo, ConfMin, [Stats])
E.g.,
=NumSpares(100000, 0, 150000, 95%) returns 1
=NumSpares(100000, 0, 150000, 95%, 1) returns
1 98.4% 27,109 3,949,789[/tt]
... which means 1 spare gives 98.4% confidence and shows the MTBF integration limits.
=NumSpares(100000, 0, 150000, 95%, 2) returns
0 88.9% 27,109 3,949,789
1 98.4% 27,109 3,949,789
... which means 0 spares gives 88.9% confidence and the second line is as described above. The output lists all results from 0 spares to the number that achieves the required confidence.
I'm happy to post the code if anyone want to give it a test drive and compare the results to any alternative method.
= NumSpares(HrsSoFar, nFail, HrsToGo, ConfMin, [Stats])
E.g.,
=NumSpares(100000, 0, 150000, 95%) returns 1
=NumSpares(100000, 0, 150000, 95%, 1) returns
1 98.4% 27,109 3,949,789[/tt]
... which means 1 spare gives 98.4% confidence and shows the MTBF integration limits.
=NumSpares(100000, 0, 150000, 95%, 2) returns
0 88.9% 27,109 3,949,789
1 98.4% 27,109 3,949,789
... which means 0 spares gives 88.9% confidence and the second line is as described above. The output lists all results from 0 spares to the number that achieves the required confidence.
I'm happy to post the code if anyone want to give it a test drive and compare the results to any alternative method.