# Uniform, Gaussian and Rayleigh Distribution

It is sometimes important to know the relationship between various distributions. This can be useful if there is a function available for one distribution and it can be used to derive other distributions. In the context of Wireless Communications it is important to know the relationship between the Uniform, Gaussian and Rayleigh distribution.

According to Central Limit Theorem the sum of a large number of independent and identically distributed random variables has a Gaussian distribution. This is used to model the amplitude of the in-phase and quadrature components of a wireless signal. Shown below is the model for the received signal which has been modulated by the Gaussian channel coefficients g1 and g2.

r=g1*a1*cos(2*pi*fc*t)+g2*a2*sin(2*pi*fc*t)

The envelope of this signal (sqrt(g1^2+g2^2)) as a Rayleigh distribution. Now if you only had a function for Uniform Distribution you can generate Rayleigh Distribution using the following routine.

```clear all
close all
M=10000;
N=100;

for n=1:M;
x1=rand(1,N)-0.5;
x2=rand(1,N)-0.5;

y1=mean(x1);
y2=mean(x2);

z(n)=sqrt(y1^2+y2^2);
end

hist(z,20)```

Note: Here a1 and a2 can be considered constants (at least during the symbol duration) and its really g1 and g2 that are varying. #### Author: John (YA)

John has over 15 years of Research and Development experience in the field of Wireless Communications. He has worked for a number of companies around the world including Qualcomm Inc. USA. He has an MS in Electrical Engineering from Virginia Tech USA and has published his work in international journals and conferences.

5.00 avg. rating (93% score) - 1 vote

## 1 thought on “Uniform, Gaussian and Rayleigh Distribution”

1. qpoiqp says:

x1 and x2 should be normal not uniform so use randn instead of rand.
{"ft_lang_label":"__label__en","ft_lang_prob":0.92810124,"math_prob":0.9126471,"size":1701,"snap":"2019-35-2019-39","text_gpt3_token_len":400,"char_repetition_ratio":0.12433706,"word_repetition_ratio":0.015686275,"special_character_ratio":0.23221634,"punctuation_ratio":0.0952381,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9860835,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-09-20T19:07:58Z\",\"WARC-Record-ID\":\"<urn:uuid:1cc5c3c7-c366-403e-9cff-619edced79d2>\",\"Content-Length\":\"42553\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:d37b5d31-5cd6-4bc6-beda-472a58fd732d>\",\"WARC-Concurrent-To\":\"<urn:uuid:e8b08a41-3fd9-4f99-899d-d0b877bc99ee>\",\"WARC-IP-Address\":\"210.56.11.67\",\"WARC-Target-URI\":\"http://www.raymaps.com/index.php/uniform-gaussian-and-rayleigh-distribution/\",\"WARC-Payload-Digest\":\"sha1:MK6VXDD6ISGOLJEIXBIJAQHWCM4JPJ4Z\",\"WARC-Block-Digest\":\"sha1:E74SRQF2YYPK6MU3WDGMB2ETOR4CTMGR\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-39/CC-MAIN-2019-39_segments_1568514574058.75_warc_CC-MAIN-20190920175834-20190920201834-00302.warc.gz\"}"}