clc
clear
close all
% gaussian / normal distibution
% part a
N = 4000;
varr = 9;
sd = sqrt(varr);
mu = 3;
gauss_samples = sd.*randn(N,1) + mu;
COMMENT DOWN FOR ANY QUERY RELATED TO THIS ANSWER,
IF YOU'RE SATISFIED, GIVE A THUMBS UP
% part b
figure
plot(gauss_samples,'-')
title(['additive guassian noise of mu = ' num2str(mu) ', var = '
num2str(varr)])
xlabel('sample (n)')
ylabel('value (x)')
figure
plot(gauss_samples,':')
title(['additive guassian noise of mu = ' num2str(mu) ', var = '
num2str(varr)])
xlabel('sample (n)')
ylabel('value (x)')
%part c
actual_mean = mean(gauss_samples)
actual_var = var(gauss_samples)
actual_std = sqrt(actual_var)
% part d
%median_value = median(gauss_samples)
sorted_samples = sort(gauss_samples);
if mod(N,2)~=0
median_value = sorted_samples(ceil(N/2))
else
median_value =
(sorted_samples(N/2)+sorted_samples((N/2)+1))/2
end
mode_value = mode(gauss_samples)
% part e
figure
h = hist(gauss_samples);
hist(gauss_samples)
title('histrogram')
xlabel('x')
ylabel('frequancy of x')
grid on
%part f
%PDF
pdf = h./(sum(h));
x = linspace(0,N,numel(h));
figure
plot(x,pdf,'linewidth',2)
xlabel('x')
ylabel('p(X=x)')
title('pdf')
grid on
%CDF
cdf = cumsum(pdf)
x = linspace(0,N,numel(h));
figure
plot(x,cdf,'linewidth',2)
xlabel('x')
ylabel('p(X<=x)')
title('cdf')
grid on
Perform the following using Matlab For an additive Gaussian noise: a. Generate 4000 samples with ...
Sinnulate N 216 samples of Gaussian noise (volts) with a standard deviation σ 0.25. Estimate the probability density function of the sequence using a histogram set to M50 bars. From this plot, estimate the mean voltage, the standard deviation and variance.
An 8-ary PSK (phase shift keying) signal is transmitted over an additive, zero mean, band-limited Gaussian noise channel.The channel output is r(t)-s(t)+n(t), st<T, where s(tAcos 2rft+0) for ie 10,123,4,5,6,7) were,+8 16 8 The noise n(t) is narrowband, zero mean, bandpass Gaussian noise with power spectral density Sn (f) is shown in Figure 3, where B is the bandwidth of the noise S, (f) (Watts/Hz) 2 cf (Hz) Figure 3 T herefore, 2 2 2 0 elsewhere (i) What is the...
Implement the following problems in MATLAB and document your work using the report guidelines on the next page. 1. Use the subplot function to place the relevant graphical results in a single figure. Generate a sequence of 1000 pairs of independent zero-mean Gaussian random variables, where X has variance 2 and N has variance 1, Let Y = X + N be the equation for a noisy signal. Plot X, N, and Y in a 3D scatter plot using Y...
Problem 4 Let X(t), a continuous-time white noise process with zero mean and power spectral density equal to 2, be the input to an LTI system with impulse response h(t)- 0 otherwise of Y (t). Sketch the autocorrelation function of Y(t) Problem 4 Let X(t), a continuous-time white noise process with zero mean and power spectral density equal to 2, be the input to an LTI system with impulse response h(t)- 0 otherwise of Y (t). Sketch the autocorrelation function...
A causal filter H(z) is excited by x(n) which is a white noise signal of zero mean 2 and unit variance. Its output is y(n). (28 points) H(2)05 Z-0.9 Give the autocorrelation of y(n) in closed form. Show all your work Give numerical values for ryy(0).1(1).1(2) a. b. Give the variance of y(n). c. Give the power spectral density (PSD) of y(n). d. A causal filter H(z) is excited by x(n) which is a white noise signal of zero mean...
3. Let Zt) be a Gaussian white noise, that is, a sequence of i.i.d. normal r.v.s each with mean zero and variance 1. Let Y% (a) Using R generate 300 observations of the Gaussian white noise Z. Plot the series and its acf. (b) Using R, plot 300 observations of the series Y -Z. Plot its acf. c) Analyze graphs from (a) and (b). Can you see a difference between the plots of graphs of time series Z and Y?...
2. The following causal system is excited by white noise (x[n)=w(n)) of zero mean and unit variance. The output is y(n). q(n)-x(n) 0.8 q(n-1) y(n) 0.2 q(n) a) Determine the autocorrelation of the output y(n) in closed form for all m. Give numerical values for ry(0), ryy(1), ryy(2) b) Find the variance of y(n). Give a numerical value and show all your work. c) Find the poles and zeros of the power spectral density (PSD) of y(n) and sketch them...
Using MATLAB, generate a sequence of L=4000 independent Gaussian random variable with variance σ^2 = N0/2. MATLAB code to generate one Gaussian random variable with variance σ^2: \sqrt(σ^2)∗randn. Make sure that N0 has to be set to a proper value, depending on the value Eb/N0 (dB) you’re working on.
The following causal system is excited by white noise (x(n)=w(n)) of zero mean and unit variance. The output is y(n). q(n)=x(n) - 0.8 q(n-1) y(n)=0.2 q(n) a) Determine the autocorrelation of the output y(n) in closed form for all m. Give numerical values for ryy(0), ryy(1), ryy(2). b) Find the variance of y(n). Give a numerical value and show all your work. c) Find the poles and zeros of the power spectral density (PSD) of y(n) and sketch them carefully...
3.0 Points Which of the following are assumed to be true when modeling a quantizer with resolution or step size, A? O The probability density function of quantization noise is a constant function between - and The quantization noise has a Gaussian probability density function. The power spectral density of quantization noise is a constant function within the Nyquist interval D. It has a mean value of — and a variance of