# Accuracy score from confidence interval

I have an algorithm which is able to make a prediction and given a confidence interval ( ex. 0.95 ) it generates the upper and lower bound for the prediction. My question is, how can i get an accuracy score ( in [0,1] ) for my prediction given the confidence interval and the output lower and upper bounds ?

My only idea was to use the bounds to compute the percentage of maximum error for the prediction, but in this way the confidence interval is not exploited in the calculation. (ex. prediction=2, upper=3, lower=1, the maximum error is (prediction-lower)/prediction or (prediction-upper)/prediction )

• I don't understand. Can you elaborate what is an "accuracy score"? What will this tell you? Apr 16 '20 at 7:38
• It will tell you how confident is your model for the single prediction. I just want a measure of how much the model is confident for the prediction. As an example, if the model with 0.95 confidence interval generates a upper/lower bounds very close to the prediction i want the accuracy score to be high. On the other hand if the bounds generate a large interval i want the score to be low. Apr 16 '20 at 7:46

So similar to what you proposed, do $$\frac{Predicted-Lower}{Upper-Lower}$$ to get a value between 0 and 1, again you scale on the distance between max and min, but for each prediction individually.