Untrusted Predictions and Mean Estimation: Machine-Learning Primitives from Data-Dependent Perspectives