Discussion Overview
The discussion revolves around a homework problem involving the joint probability distribution of discrete random variables X and Y, specifically focusing on coding this distribution in MATLAB. Participants explore issues related to the implementation of the code and the visualization of the joint cumulative distribution function (CDF).
Discussion Character
- Homework-related
- Technical explanation
- Exploratory
Main Points Raised
- One participant shares their attempt to code the joint distribution in MATLAB but encounters issues with the implementation.
- Another participant questions the clarity of the original homework statement and asks for more specific instructions on what to do with the provided information.
- A suggestion is made to use a larger grid for evaluating the 2D function to avoid inaccuracies in the CDF due to limited sampling.
- It is proposed to avoid using the built-in heaviside function in MATLAB and instead create a custom unit step function to better represent the probability distribution.
- Participants mention various MATLAB functions for 3D plotting, suggesting that the surf function could be useful for visualizing the joint distribution.
Areas of Agreement / Disagreement
Participants express differing views on the best approach to implement the joint distribution in MATLAB, particularly regarding the use of the heaviside function and the grid size for sampling. The discussion remains unresolved as no consensus is reached on the optimal coding strategy.
Contextual Notes
Some limitations are noted, such as the potential inaccuracies in the CDF due to the choice of grid size and the behavior of the heaviside function in MATLAB. There are also unresolved questions regarding the specific requirements of the homework task.