If weighted precision is calculated as
weighted_precision = [(pc1*c1)+(pc2*c2)]/(c1+c2)
where,
pc1 = precision of class 1
c1 = no.of samples in class 1
pc2 - precision of class 2
c2 = no.of samples in class 2
How does the above equation change while dealing with class imbalance via