This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
ecen_370_assignments [2015/06/25 09:54] perry |
ecen_370_assignments [2015/12/30 22:45] (current) nielson |
||
|---|---|---|---|
| Line 14: | Line 14: | ||
| | [[ecen_370_assignments#Homework 7|HW 7]] | Marginal PDF, Conditional PDF, Expectation | Review | 3.4-3.5 | | | [[ecen_370_assignments#Homework 7|HW 7]] | Marginal PDF, Conditional PDF, Expectation | Review | 3.4-3.5 | | ||
| | [[ecen_370_assignments#Homework 8|HW 8]] |PDF, CDF, Poisson RV | Review | 3.6-4.1 | | | [[ecen_370_assignments#Homework 8|HW 8]] |PDF, CDF, Poisson RV | Review | 3.6-4.1 | | ||
| - | | [[ecen_370_assignments#Homework 9|HW 9]] | N/A | [[matlab_guide#Roots| Polynomial Roots]], | 4.1-5.2 | | + | | [[ecen_370_assignments#Homework 9|HW 9]] | N/A | [[matlab_guide#Real and Imaginary Command| Correlation]] | 4.1-5.2 | |
| - | | ::: | ::: | [[matlab_guide#Real and Imaginary Command| Real and Imaginary Command]] | ::: | | + | |
| | [[ecen_370_assignments#Homework 10|HW 10]] |Central Limit Theorem | Review | 5.3-6.1 | | | [[ecen_370_assignments#Homework 10|HW 10]] |Central Limit Theorem | Review | 5.3-6.1 | | ||
| Line 52: | Line 51: | ||
| sequences you suspect are fraudulent. | sequences you suspect are fraudulent. | ||
| </file> | </file> | ||
| + | ==Files== | ||
| {{::hw2_matlab_example.m|}} | {{::hw2_matlab_example.m|}} | ||
| {{::coin_flip_data.zip|}} | {{::coin_flip_data.zip|}} | ||
| + | <ifauth @admin,@370ta> | ||
| ==Solution== | ==Solution== | ||
| {{::homework_2.m|}} | {{::homework_2.m|}} | ||
| {{::solution_graph.png?200|}} | {{::solution_graph.png?200|}} | ||
| + | </ifauth> | ||
| === Homework 3 === | === Homework 3 === | ||
| Line 98: | Line 99: | ||
| with the probability mass function you computed analytically? | with the probability mass function you computed analytically? | ||
| </file> | </file> | ||
| + | ==Files== | ||
| {{::hw3_matlab_example.m|}} | {{::hw3_matlab_example.m|}} | ||
| + | <ifauth @admin,@370ta> | ||
| ==Solution== | ==Solution== | ||
| {{::homework_3.m|}} | {{::homework_3.m|}} | ||
| Line 107: | Line 109: | ||
| {{::screenshot_from_2015-06-09_19_06_44.png?200|}} | {{::screenshot_from_2015-06-09_19_06_44.png?200|}} | ||
| - | | + | </ifauth> |
| === Homework 4 === | === Homework 4 === | ||
| Line 157: | Line 159: | ||
| </file> | </file> | ||
| + | ==Files== | ||
| {{::simulate_joint_pmf.m|}} | {{::simulate_joint_pmf.m|}} | ||
| Line 163: | Line 166: | ||
| {{:burgerfry.zip|}} | {{:burgerfry.zip|}} | ||
| + | <ifauth @admin,@370ta> | ||
| ==Solution== | ==Solution== | ||
| {{::hw_4.m|}} | {{::hw_4.m|}} | ||
| Line 171: | Line 175: | ||
| {{:capture_2.png?200|}} | {{:capture_2.png?200|}} | ||
| + | </ifauth> | ||
| === Homework 5 === | === Homework 5 === | ||
| Line 228: | Line 232: | ||
| </file> | </file> | ||
| + | <ifauth @admin,@370ta> | ||
| ==Solution== | ==Solution== | ||
| {{::hw5.m|}} | {{::hw5.m|}} | ||
| + | </ifauth> | ||
| === Homework 6 === | === Homework 6 === | ||
| Line 260: | Line 266: | ||
| histogram plot. It should look like the histogram for an exponential random variable! | histogram plot. It should look like the histogram for an exponential random variable! | ||
| </file> | </file> | ||
| + | ==Files== | ||
| {{::continuous_sim_commented.m|}} | {{::continuous_sim_commented.m|}} | ||
| + | |||
| + | <ifauth @admin> | ||
| ==Solution== | ==Solution== | ||
| {{::homework_6_graph_0.png?200|}} | {{::homework_6_graph_0.png?200|}} | ||
| {{::capture_0.png?200|}} | {{::capture_0.png?200|}} | ||
| + | </ifauth> | ||
| === Homework 7 === | === Homework 7 === | ||
| Line 292: | Line 302: | ||
| c) Find E[Y] from simulation. | c) Find E[Y] from simulation. | ||
| </file> | </file> | ||
| + | |||
| + | <ifauth @admin,@370ta> | ||
| ==Solution== | ==Solution== | ||
| {{::homework_7_graph.png?200|}} | {{::homework_7_graph.png?200|}} | ||
| + | </ifauth> | ||
| === Homework 8 === | === Homework 8 === | ||
| Line 302: | Line 315: | ||
| Objective: To calculate sums and differences of R.V.s Plot the CDF | Objective: To calculate sums and differences of R.V.s Plot the CDF | ||
| - | Syntax: | + | Starter: random('type', mean, rows, columns); |
| - | Functions to Learn: | + | Functions to Learn: random() |
| This will show you how to simulate derived distributions. The file hw8.m on the website will show | This will show you how to simulate derived distributions. The file hw8.m on the website will show | ||
| Line 331: | Line 344: | ||
| d) Compare your plot with the analytic solution you derived above | d) Compare your plot with the analytic solution you derived above | ||
| </file> | </file> | ||
| + | ==Files== | ||
| {{::hw8.m|}} | {{::hw8.m|}} | ||
| + | <ifauth @admin,@370ta> | ||
| ==Solution== | ==Solution== | ||
| {{::chapter4_problem1.m|}} | {{::chapter4_problem1.m|}} | ||
| Line 346: | Line 360: | ||
| {{:chapter_4_problem_8_graph.png?200|}} | {{:chapter_4_problem_8_graph.png?200|}} | ||
| + | </ifauth> | ||
| === Homework 9 === | === Homework 9 === | ||
| Line 351: | Line 366: | ||
| <file> | <file> | ||
| - | Objective: | + | Objective: To find correlation between statistical data and understand what correlation means |
| - | Syntax: | + | Starter: rho = corr(X, Y); |
| - | Functions to Learn: | + | Functions to Learn: corr() |
| I have taken the following from the CMU DASL statistics website: | I have taken the following from the CMU DASL statistics website: | ||
| Line 397: | Line 412: | ||
| d) Do the simulated values you computed in part (b) match the values in part (a)? | d) Do the simulated values you computed in part (b) match the values in part (a)? | ||
| </file> | </file> | ||
| + | |||
| + | <ifauth @admin,@370ta> | ||
| ==Solution== | ==Solution== | ||
| + | |||
| + | </ifauth> | ||
| === Homework 10 === | === Homework 10 === | ||
| Line 404: | Line 423: | ||
| <file> | <file> | ||
| - | Objective: | + | Objective: To calculate the sum of R.V. and prove that their output is Gaussian |
| - | Syntax: | + | Starter: Refer to page 182 in the book |
| - | Functions to Learn: | + | Functions to Learn: none |
| Viewing the Central Limit Theorem: | Viewing the Central Limit Theorem: | ||
| Line 418: | Line 437: | ||
| raw histogram by both the total number of points (estimate of probability per interval) and | raw histogram by both the total number of points (estimate of probability per interval) and | ||
| by the length of each interval (estimate of probability density per interval). | by the length of each interval (estimate of probability density per interval). | ||
| - | c) On the same graph as the histogram (use the “hold on” and “hold of” commands), plot a | + | c) On the same graph as the histogram (use the “hold on” and “hold off” commands), plot a |
| Gaussian (normal) random variable with the mean and standard deviation for Y. | Gaussian (normal) random variable with the mean and standard deviation for Y. | ||
| d) Compare the plots obtained in part b) and part c). | d) Compare the plots obtained in part b) and part c). | ||
| e) Do the means and standard deviations agree with what you found in part a)? | e) Do the means and standard deviations agree with what you found in part a)? | ||
| </file> | </file> | ||
| + | |||
| + | <ifauth @admin,@370ta> | ||
| ==Solution== | ==Solution== | ||
| + | {{::graph_hw10.png?200|}} | ||
| + | </ifauth> | ||