Step 2: If you have a bunch of distributions f (say, n of them), and you convolve them all together into a distribution

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Step 2: If you have a bunch of distributions f (say, n of them), and you convolve them all together into a distribution

Post by answerhappygod »

Step 2 If You Have A Bunch Of Distributions F Say N Of Them And You Convolve Them All Together Into A Distribution 1
Step 2 If You Have A Bunch Of Distributions F Say N Of Them And You Convolve Them All Together Into A Distribution 1 (38.35 KiB) Viewed 27 times
Step 2 If You Have A Bunch Of Distributions F Say N Of Them And You Convolve Them All Together Into A Distribution 2
Step 2 If You Have A Bunch Of Distributions F Say N Of Them And You Convolve Them All Together Into A Distribution 2 (51.93 KiB) Viewed 27 times
Step 2: If you have a bunch of distributions f (say, n of them), and you convolve them all together into a distribution Fe=ff-f............. f, then the larger nis, the more F. will resemble a Gaussian distribution. The conditions for the distributions is that: must be 1) independent and 2) identically distributed Here is an interesting code from the Matlab. This is from an associate known as ImageAnalyst. Try to run this code and see what happens after one convolution cycle and two convolution cycles: % Startup code cle; % Clear command window. clearvars; % Get rid of variables from prior run of this m- file. workspace; % Make sure the workspace panel with all the variables is showing close all; % Close all imtool figures. format longs: format compact; fontSize = 20; % Define initial data %m=ones(1, 10) % Pick uniform, or random data to start with m=rand(1, 10); iteration 0; again = 1; while again-1 && iteration 12 % Plot it: plot(m, "6.-', 'LineWidth', 2, 'MarkerSize", 30); grid on; caption=sprintf("This was after %d convolutions.', iteration); title(caption, "FontSize", fontSize); % Set up figure properties: % Enlarge figure to full screen. set(ger, Units', 'Normalized', 'Outer Position", [0 0 1 1]); % Get rid of tool bar and pulldown menus that are along top of figure setgef, Toolbar', 'none', 'Menu', 'none'); % Do the convolution for this iteration: m conym moll)
caption=sprintf("This was after %d convolutions.', iteration); title(caption, 'FontSize', fontSize); % Set up figure properties: % Enlarge figure to full screen. set(gef, 'Units' , 'Normalized', 'OuterPosition', [0 0 1 1]); % Get rid of tool bar and pulldown menus that are along top of figure. set(gcf, "Toolbar', 'none', 'Menu', 'none'); % Do the convolution for this iteration: m=conv(m,m,'full'); % Normalize it so we don't overflow. m=m/max(m); % See if user wants to do another iteration. promptMessage = sprintf("This was after%d convolutions. InDo you want to do another iteration, nor Cancel to abort processing?', iteration); titleBarCaption = 'Continue?'; button=questdlg(promptMessage, titleBarCaption, Continue', 'Cancel', 'Continue'); if strempi(button, 'Cancel') again = false; % Bail out break; end iteration = iteration + 1; end What are your observations? [Note: Also look at the coding style, all the lines have comments, all the variables have been defined at the beginning of the program and all the variables he has assigned e.g. button, promptMessage, iteration, again has a significant name, which pretty much tells us what it does. These are some of the coding standards followed across all industries. This is just something you should try following when you code next time!!]
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply