Answer:
Output:
John's Z-score: 2.383
Outlier Threshold: 1515
Step-by-step explanation:
# Given data
mean_rent = 810
std_dev = 235
johns_rent = 1370
# Calculating Z-score
z_score = (johns_rent - mean_rent) / std_dev
# Identifying Outlier Threshold
outlier_threshold = mean_rent + 3 * std_dev
# Printing Z-score and Outlier Threshold
print("John's Z-score:", round(z_score, 3))
print("Outlier Threshold:", outlier_threshold)