Answer the following question R langauge output explain What
Answer the following question R langauge output, explain.
What is the precision of the following model? Actual no yes Predicted no 40 8 yes 2 50 0.8862 0.8621 0.9091 0.9615Solution
Step1: Find the average (xa) of the predicted data
xa =0.904725.
Step 2: Calculate absoute value of the distance of each data from the mean
[ 0.018525, 0.042625, 0.004375, 0.056775]
Step 3 :
Precision of the model is mean of the data set obtained in step 2.
Precision = (1/4)*(0.018525, 0.042625, 0.004375, 0.056775) = 0.0021875

