
The difference between Gaussian Noise variance (user defined) and MATLAB generated variance (using built-in function var)
2 ビュー (過去 30 日間)
古いコメントを表示
I added Gaussian Noise (mean 0, variance 0.01) to a matrix of all zeros. The variance from using built-in function var is expected to be 0.01 as the noise addition. However, it is 0.0034. What is the difference / connection between these 2 variance values?
0 件のコメント
回答 (1 件)
Dimitris Kalogiros
2018 年 7 月 18 日
Dear Ann
Maybe you have using too litle data. For example , if you execute command var(randn(1,1000)) many consecutive time you will get different results that, also, differ from 1. But if you try var(randn(1,1E7)) , results tends to unity.
More over var(), has a flexible definition in matlab . Look at the following figure:

where "w" is a parameter of var() calling.
For more info , have a look at matlab help
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!