
The difference between Gaussian Noise variance (user defined) and MATLAB generated variance (using built-in function var)
조회 수: 4 (최근 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!