1 / 17

Cross Tabs

Cross Tabs. A frequency distribution for two variables. M&Ms Color Distribution % according to their website. We take a sample of M&M’s and find a sample distribution to compare to the website distribution. My M&Ms data in counts. 14 of the 76 M&M’s were plain brown M&M’s.

keefe-bray
Download Presentation

Cross Tabs

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Cross Tabs A frequency distribution for two variables

  2. M&Ms Color Distribution % according to their website

  3. We take a sample of M&M’s and find a sample distribution to compare to the website distribution

  4. My M&Ms data in counts

  5. 14 of the 76 M&M’s were plain brown M&M’s

  6. 54 of the 76 M&M’s were Plain

  7. 8 of the 76 M&M’s were blue

  8. Probability • To find the probability: • N(event)/N(total) • P(peanut green M&M) = • N(Peanut Green)/N(Total M&M’s)

  9. To find Joint Distribution, we find the probabilities of each cell by dividing by the total (76)

  10. My M&Ms data: With Marginal Distributions

  11. Knowing that the M&M is green, what is the probability it was Peanut? We can focus on just the green column so the probability of Peanut is:N(Green Peanut)/N(Green) = 4/12

  12. Conditional distribution of flavor for color • We know the color of our M&M already, but now how is flavor distributed for this color?

  13. Knowing that the M&M is Plain, what is the probability it is Yellow? We can focus on just the Plain row so the probability of Yellow is:N(Yellow Plain)/N(Plain) = 10/54

  14. Conditional distribution of color for flavor • We know the flavor of our M&M already, but now how is color distributed for this color?

  15. Conditional distributions in general Conditional distribution of X for Y (we know Y for sure already, but we want to know the probability or % of having X be true as well):

  16. Bar graphs for conditional distribution of color for both flavors

  17. Joint Distribution (In white boxes) Marginal (In gray boxed) Conditional (Given color or flavor)

More Related