简体   繁体   English

Excel中的加权标准差和四分位数

[英]Weighted Standard Deviation and Quartiles in excel

I've got a dataset with aggregated data and total values per category. 我有一个包含汇总数据和每个类别的总值的数据集。 Example: 例: 数据示例

Now I want to create a boxplot to visualize the insights of this dataset and not just the (weighted) averages. 现在,我想创建一个箱线图以可视化此数据集的见解,而不仅仅是(加权)平均值。 I've found some formula's for weighted standard deviation, but nothing I have been able to translate to an excel formula. 我已经找到了一些用于加权标准偏差的公式,但是我无法将其转换为excel公式。 Is there a default formula that does this in excel? 在excel中是否有默认公式? If not, some suggestions on how to handle this? 如果没有,关于如何处理的一些建议? And how about the quartiles? 四分位数呢? Or is the best way to somehow expand the dataset to reflect the frequencies? 还是以某种方式扩展数据集以反映频率的最佳方法?

The formula for the quartiles: 四分位数的公式:

{=PERCENTILE(IF(COLUMN(INDIRECT("1:"&MAX(Data!N3:N15)))<=Data!N3:N15,Data!M3:M15,""),0.25)}

(confirm with Ctrl+Shift+Enter / Command+Enter ) (用Ctrl + Shift + Enter / Command + Enter确认)

With Column N containing the weights and M the values, giving the 1st quartile. N列包含权重,M列包含值,得出第一个四分位数。

Now I just need the median, if possible at all without expanding the data... ;) 现在我只需要中位数(如果可能的话)而无需扩展数据...;)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM