Consider that 20 stories of author X and 10 stories of author Y were kept together without mentioning the names of the authors. A classifier was then asked to predict the author (X or Y) of each of the stories. Later out of X’s stories 6 were classified as that of Y. On the other hand, out of Y’s stories 2 were classified as that of X. Considering X and Y as two classes, then which of the following is/are true?
Solution :
The correct options are:
1. Precision of class X is higher than the precision of class Y.
2. Accuracy of the classifier is 11/15.
Let us analyze the given problem step-by-step to understand why these options are correct.
First, we extract the given information from the problem statement:
Total stories of Author X (Actual Class X): 20
Total stories of Author Y (Actual Class Y): 10
Total number of stories: 20 + 10 = 30
Next, we look at the classifier's predictions:
- Out of X's 20 stories, 6 were classified as Y. This means:
- Stories of X correctly predicted as X (True Positives for X, or TPX): 20 - 6 = 14
- Stories of X incorrectly predicted as Y (False Negatives for X, or FNX): 6
- Out of Y's 10 stories, 2 were classified as X. This means:
- Stories of Y correctly predicted as Y (True Positives for Y, or TPY): 10 - 2 = 8
- Stories of Y incorrectly predicted as X (False Negatives for Y, or FNY): 2
From these classification results, we can construct the confusion matrix:
- True Class X predicted as X (TPX): 14
- True Class X predicted as Y (FNX / FPY): 6
- True Class Y predicted as X (FNY / FPX): 2
- True Class Y predicted as Y (TPY): 8
Now, let us calculate the performance metrics for both classes.
1. Accuracy:
Accuracy is the ratio of correctly predicted observations to the total observations.
Thus, the accuracy of the classifier is indeed 11/15, which matches one of the correct options.
2. Precision:
Precision is defined as the ratio of correctly predicted positive observations to the total predicted positive observations for a given class.
For class X:
Total predictions as X = TPX + FPX = 14 + 2 = 16
For class Y:
Total predictions as Y = TPY + FPY = 8 + 6 = 14
Comparing the precision values, we have 0.875 > 0.5714, which means the precision of class X is higher than the precision of class Y. This matches the other correct option.
Completely free for students. Educators & coaching institutes get 2 months free Pro trial to create tests.
Access unlimited practice questions, detailed step-by-step solutions, and exam study materials — completely free for students.
Create and conduct professional online assessments with AI question generation, tab proctoring, and comprehensive batch management.
Prepare for GATE 2026 Civil Engineering with the latest question papers, previous year papers, detailed solutions, syllabus, exam pattern, preparation tips, mock tests, and subject-wise study material. Download GATE 2026 CE question papers with solutions in PDF format and boost your preparation for top engineering institutes and PSU recruitment.
Prepare effectively for GATE 2026 Electronics & Communication Engineering (EC) with this comprehensive Question Paper with Solutions. This resource includes detailed explanations, concept-wise solutions, previous year paper analysis, and exam-oriented practice to help aspirants strengthen core subjects like Electronic Devices, Analog Circuits, Digital Circuits, Signals & Systems, Network Theory, Control Systems, Electromagnetics, Communications, and more. Perfect for revision, self-assessment, and boosting your GATE 2026 EC preparation strategy.
Copyright © 2026 Combe Labs Private Limited. All Rights Reserved.