Support

 

πŸ“Š What is Support?

πŸ”Ή Definition

Support is the number of actual occurrences of each class in a dataset.

It tells you how many true instances exist for a class, independent of model predictions.


πŸ“ Mathematical Expression

For a class cc:

Support(c)=Number of samples where true label=c\text{Support}(c) = \text{Number of samples where true label} = c

🧠 Key Idea

  • Support depends only on ground truth labels
  • It does not depend on model predictions

πŸ‘‰ That’s why:

Support remains the same across all models


πŸ“Š Example

Suppose we have a dataset of 100 emails:

Class    Count
Spam    30
Not Spam    70

πŸ”Ή Support Values

  • Support (Spam) = 30
  • Support (Not Spam) = 70

πŸ”Support in Confusion Matrix

Using confusion matrix:

Actual Positive    Actual Negative
Predicted Positive    TP    FP
Predicted Negative    FN    TN

πŸ”Ή Support for Positive Class

Support=TP+FN\text{Support} = TP + FN

πŸ‘‰ Total actual positives


πŸ”Ή Support for Negative Class

Support=TN+FP\text{Support} = TN + FP

πŸ‘‰ Total actual negatives


🎯 Why Support is Important


πŸ”Ή 1. Detects Class Imbalance

If support is uneven:

ClassSupport
Class A    950
Class B    50

πŸ‘‰ Dataset is imbalanced


πŸ”Ή Impact:

  • Accuracy becomes misleading
  • Minority class may be ignored

πŸ”Ή 2. Helps Interpret Metrics

Example:

  • Recall = 90%
  • But support = 10

πŸ‘‰ Only 9 correct predictions → not very reliable


πŸ”Ή 3. Used in Weighted Metrics

Weighted averages use support:

Weighted Metric=(metrici×supporti)supporti\text{Weighted Metric} = \frac{\sum (\text{metric}_i \times \text{support}_i)}{\sum \text{support}_i}

πŸ”Ή 4. Evaluates Reliability

  • High support → metric is more reliable
  • Low support → metric may be unstable

πŸ“Š 8. Role in Classification Report

Typical output (e.g., sklearn):

ClassPrecision    Recall    F1-score    Support
Spam    0.70    0.50    0.58    140
Not Spam    0.83    0.92    0.87    360

πŸ‘‰ Support helps you interpret:

  • Whether results are balanced or biased

🎯Key Takeaways

  • Support = number of actual samples per class
  • Independent of model predictions
  • Helps detect class imbalance
  • Important for interpreting evaluation metrics
  • Used in weighted averaging

πŸ“Œ Final Insight

Support answers the question:
“How much data do we actually have for each class?”

Comments

Popular posts from this blog

Machine Learning PCCST503 Semester5 KTU CS 2024 Scheme - Dr Binu V P

Introduction to Machine Learning (ML)

Distinguishing Machine Learning from Traditional Programming