Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Is the var function of Matlab wrong?

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Today, the power of the constellation symbol is calculated. In the past, when analyzing the data, the variance was calculated directly by matlab's var function, and no problem was found. The number of constellations calculated today is relatively small, which is strange no matter how it is calculated.

Refer to the formula known by Baidu

That's right. Is it because the mean is not zero?

For simple

A = [- 3-113]; the mean is 0

Let var (a) = 6.6667. W..H..Y..

Help var took a look.

Variance, according to the definition in higher numbers, can be divided into biased estimators (biased estimator) and unbiased estimators (unbiased estimator). The difference lies in whether the denominator of the above formula is divided by n or nmai 1.

The default var for Matlab calculates unbiased estimates. Looking back at my test example, isn't it? the denominator is divided by 3. The solution is to add a parameter 1 and modify it to a biased estimate.

Refer to blog posts:

Http://blog.163.com/wanglei2146073@126/blog/static/90689607201132294156177/

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report