How do you plan the right inventory levels illustration

How do you plan the right inventory levels when you have intermittent demand, the seemingly random, highly sporadic usage pattern that is especially prevalent with spare parts?