Skip to main content

Generation of Gaussian Random Noise using Box-Mullar Transform

 

Box-Mullar Transform generates random noise where noise samples are independent, standard, and normally distributed. So, we can say this type of noise is Gaussian noise.

 In MATLAB Codes below, independent random variables u1 and u2 are uniformly distributed between 0 and 1 and then transformed using the Box-Muller method to obtain pairs of independent, standard, normally distributed random variables z0 and z1.

 

MATLAB Code for Generating Random (Gaussian) Noise

clc;
clear all;
close all;
numSamples = 1000; % Number of samples
gaussianNoise = generateGaussianNoise(numSamples);

disp(gaussianNoise);
function noise = generateGaussianNoise(numSamples)
% Generate Gaussian noise using Box-Muller transform
noise = zeros(1, numSamples);

% Generate pairs of independent, standard, normally distributed random variables
for i = 1:2:numSamples
u1 = rand();
u2 = rand();

z0 = sqrt(-2 * log(u1)) * cos(2 * pi * u2);
z1 = sqrt(-2 * log(u1)) * sin(2 * pi * u2);

noise(i) = z0;
if i+1 <= numSamples
noise(i+1) = z1;
end
end
end
 

Output 

 
 
 
Fig: Generation of Gaussian Random Noise using Box-Mullar Transform 
 
 

MATLAB Code for Generating AWGN Noise

clc;
clear all;
close all;
numSamples = 1000; % Number of samples
noisePower = 1; % Desired noise power
awgnSignal = generateAWGN(numSamples, noisePower);
% Plot the AWGN signal
plot(awgnSignal);
xlabel('Sample');
ylabel('Amplitude');
title('AWGN Signal');
function noise = generateAWGN(numSamples, noisePower)
% Generate Gaussian noise using Box-Muller transform
noise = zeros(1, numSamples);
% Generate pairs of independent, standard, normally distributed random variables
for i = 1:2:numSamples
u1 = rand();
u2 = rand();
z0 = sqrt(-2 * log(u1)) * cos(2 * pi * u2);
z1 = sqrt(-2 * log(u1)) * sin(2 * pi * u2);
noise(i) = z0;
if i+1 <= numSamples
noise(i+1) = z1;
end
end
% Scale the noise to have the desired power
currentPower = sum(noise.^2) / numSamples;
scalingFactor = sqrt(noisePower / currentPower);
noise = noise * scalingFactor;
end
 

Output 

 
 
Fig: Generation of AWGN Signal using Box-Muller Transform

Differences Between Gaussian Noise and AWGN

  1. Gaussian noise refers to noise that follows a Gaussian (normal) distribution. It's characterized by having values distributed symmetrically around a mean value, with the probability density function given by the bell-shaped Gaussian curve.
  2. Gaussian noise can have any mean and variance, and it's not necessarily additive or white (i.e., frequency-independent).
  3. AWGN is characterized by having zero mean and constant power spectral density across all frequencies, making it ideal for modeling many practical noise scenarios in communication systems

Copy the MATLAB Codes from here

 

 

 

Read more about

[1]  Gaussian Random Variable



Contact Us

Name

Email *

Message *

Popular Posts

UGC NET Electronic Science Previous Year Question Papers with Solutions

Home / Engineering & Other Exams / UGC NET 2026 PYQ ⬇️ Download Papers and Solutions 📋 Exam Pattern 💡 Preparation Tips ❓ FAQs 📊 Exam Highlights: Electronic Science (88) Feature Details Junior Research Fellowship (JRF) ₹37,000 + HRA per month Eligibility M.Sc/M.Tech in Electronics (55%) Validity of Certificate JRF (3 Years) | Lectureship (Lifetime) 📥 Download UGC NET Electronics PDFs Complete collection of previous year question papers, answer keys and explanations for Subject Code 88. Start Downloading 📂 View All Question Papers June 2025 - Question Paper Download PDF June 2025 - Solved Paper + Explanation ...

Hybrid Beamforming | Page 1

Beamforming Techniques Hybrid Beamforming... Page 1 | Page 2 | Hybrid Beamforming: Hybrid beam formation was developed to address some of the limitations of digital pre-coding approaches. Every antenna element is connected to an RF chain in digital pre-coding (beam forming) method. We also know that each RF chain is in charge of providing a separate data stream between the transmitter and the receiver. We know that a larger number of independent data streams leads to higher data rates. It has a spatial multiplexing feature for MIMO. As a result, we may assume that switching from MIMO to massive MIMO will benefit us more in terms of spatial multiplexing in massive MIMO, where each antenna is coupled to a single RF chain. We'll proceed with a definition of hybrid beam forming. Overview of hybrid beam forming with example: Unlike digital beam forming, more than one antenna element is connected to a single RF chain in hybr...

MIMO Channel Matrix | Rank and Condition Number

MIMO / Massive MIMO MIMO Channel Matrix | Rank and Condition...   The channel matrix in wireless communication is a matrix that describes the impact of the channel on the transmitted signal. The channel matrix can be used to model the effects of the atmospheric or underwater environment on the signal, such as the absorption, reflection or scattering of the signal by surrounding objects. When addressing multi-antenna communication, the term "channel matrix" is used. Let's assume that only one TX and one RX are in communication and there's no surrounding object. Here, in our case, we can apply the proper threshold condition to a received signal and get the original transmitted signal at the RX side. However, in real-world situations, we see signal path blockage, reflections, etc.,  (NLOS paths [↗]) more frequently. The obstruction is typically caused by building walls, etc. Multi-antenna communication was introduced to address this issue. It makes diversity app...

UGC NET Electronic Science June 2025 Question Paper with Answer Key & Detailed Solutions

Home / UGC NET PYQ / June 2025 Solved UGC NET Electronic Science June 2025 Question Paper with Answer Key and Full Explanations 📥 Download Question Paper (PDF) 2025 2024 2023 2022 2021 2020 Explanations 1.  Answer: Option (3) For forming a p-type semiconductor, the dopant must be a trivalent impurity (three valence electrons) so that it creates acceptor levels and holes become the majority carriers. Among the given elements, boron (B) is a group-III element (trivalent). Arsenic (As) and phosphorus (P) are group-V (pentavalent) donors that produce n-type material, and germanium (Ge) is a group-IV element usually used as the semiconductor, not as an acceptor dopant. Hence, doping an intrinsic semiconductor with B produces a p-type semiconductor. 2.  Answer: Option (4) The ohmic resistance of a JFET at zero gate bias is given by the standard relation: R DS(on) = V P / I DSS ...

Online Simulator for ASK, FSK, and PSK Signal Generation

Interactive Digital Signal Processing (DSP) Tutorial and Simulator for ASK, FSK, and BPSK modulation techniques. Try our new Digital Signal Processing Simulator!   •   Interactive ASK, FSK, and BPSK tools updated for 2025. Start Now Digital Modulation Visualizer: ASK, FSK, & BPSK Simulator Learn and visualize binary modulation techniques (ASK, FSK, BPSK) in real-time with adjustable carrier and sampling parameters. Perfect for DSP students and engineers. 📡 ASK Simulator 📶 FSK Simulator 🎚️ BPSK Simulator 📚 More Topics ASK Modulator FSK Modulator BPSK Modulator More Topics 1. ASK (Amplitude Shift Keying) Simulat...

Design of CMOS XOR/XNOR Gates

Design of CMOS XOR/XNOR Gates The semiconductor industry has experienced rapid integration of multimedia applications into mobile electronics, leading to very high integration density in CMOS VLSI. As operating frequencies increase, power consumption, speed, silicon area, and reliability become critical considerations. The XOR-XNOR circuits are fundamental building blocks in arithmetic circuits (Full Adders, Multipliers), compressors, comparators, parity checkers, code converters, error-detecting/correcting codes, and phase detectors. Their performance directly impacts the complex circuits they are used in. Design goals include full output voltage swing, low power consumption, reduced transistor count, minimal delay, and simultaneous non-skewed outputs. Static Logic (Static CMOS) Stat...