Implement a function matthews_correlation_coefficient(y_true, y_pred) that calculates the Matthews Correlation Coefficient (MCC) for binary classification.
y_true: A list of actual binary labels (0 or 1)y_pred: A list of predicted binary labels (0 or 1)The Matthews Correlation Coefficient is considered one of the best metrics for binary classification, especially for imbalanced datasets. It produces a high score only if the prediction obtained good results in all four confusion matrix categories (true positives, true negatives, false positives, and false negatives).
The MCC value ranges from -1 to +1: