Professional Documents
Culture Documents
FLTasg 1
FLTasg 1
Assignment - 1
Name: Vanaja Chandra Kodali
Roll no: 18EC39002
Question:
Write computer program (matlab, python, C etc) and show the following.
1.
Draw n uniform random variables (X_k) in the interval [0, 10]. For n =
10, 100, 1000, 10000, 100000, 1000000, 10000000 compute the arithmetic
means of the random variable. Plot in the logarithmic scale (mean vs n).
In the report, just mention the assumptions, so the plots. You don't need to write any theory.
Solutions:
3. Matlab Code:
Plot for question 3:
1. I defined the box function B(x) as equal to 1 within the interval [-0.5, 0.5] and 0
elsewhere. This is a standard definition of a box function.
2. I used the convolution operation to convolve the box function with itself repeatedly.
Convolution is a linear mathematical operation that combines two functions to produce a
third function. In this case, I repeatedly convolved the box function with itself to achieve
the desired repetitive convolution effect.
3. For plotting purposes, I assumed a range of x values from -3 to 3. The range was
chosen to ensure that the convolution results are visually meaningful within the specified
interval [-1, 1].