开发者:上海品职教育科技有限公司 隐私政策详情

应用版本:4.2.11(IOS)|3.2.5(安卓)APP下载

叶赫那拉坤坤 · 2025年04月24日

老师这个题,怎么算出样本的标准差

NO.PZ2024120401000050

问题如下:

Suppose that we have the following data on three features for each of three banks, A, B, and C:

Scale the features using standardization. What is the standardized number of customers of Bank A ?

选项:

A.

-0.690

B.

-0.456

C.

-0.666

D.

-0.498

解释:

As an example, undertaking the standardization for bank A and the customers feature, the calculation would be:

(1.2 - mean(1.2,6,0.5)) / std(1.2,6,0.5) = -0.456.

公式会用,不用算这个题的样本的标准差。

1 个答案

李坏_品职助教 · 2025年04月24日

嗨,爱思考的PZer你好:


比如customers这个特征,三个bank的customers分别是1.2, 6, 0.5, 这三个数字的均值 = 2.5667.

那么customers这个特征的样本方差 = 1/2 *[(1.2-2.5667)的平方 + (6-2.5667)的平方 + (0.5-2.5667)的平方] = 8.9633.


std = 根号8.9633 = 2.99


所以(1.2 - 2.5667)/2.99 = -0.457. 稍微有一点点误差,这个是正常的。

----------------------------------------------
加油吧,让我们一起遇见更好的自己!