This paper addresses the trade-off between accuracy and fairness in prediction algorithms. With the development of artificial intelligence, powerful prediction algorithms have emerged, and both accuracy and fairness have become important. However, these two goals may be in conflict, and there is no clear guidance on how to comprehensively evaluate various accuracy and fairness measures. Using Harsanyi's preference aggregation theory, the paper argues that it is reasonable to measure the overall value of an algorithm through a linear combination of accuracy and fairness metrics, and analyzes it using the COMPAS dataset.