MA490: Ethics in Math, Data Science, and Engineering

Lesson 4: Probability Review

LTC Delante E. Moore

Learning Objectives

  • Interpret joint, marginal and conditional probabilities and explain their relationship to one another

  • Demonstrate and understanding of independence and conditional independence

  • Interpret conditional expectations as subgroup-specific means

  • Identify the connection between conditional means and regression

Stitch Fix

Give it a Try

In groups of two; go to www.stitchfix.com and complete the “Style Profile” quiz

  • One of you will sign up for StitchFix.
  • Together you’ll both complete the quiz for one of the (binary) choices of gender: men or women.
  • The other group member will then sign up for StitchFix.
  • Together you’ll both complete the quiz for the other choice of gender. Make note of any differences you find interesting.

Fundamental Ideas of Statistics

We are interested in learning something by gathering some data on some people.

  • Some people = experimental population, target population, super population

  • Something = target parameter, parameter, estimand

  • Data may be (but not necessarily!) drawn from target population

The target population describes who you are trying to learn about.

  • A hypothetical construct: data that would be generated if n = \(\infty\).

  • Example: All potential StitchFix users who could complete the Style Profile quiz.

The target parameter(s) describes what you are trying to learn about. - A summary describing some aspect of the population.

  • Example: the differences in style preferences between the two gender groups.

  • Example: average preferences in clothing styles, preferred colors, fit preferences, and other fashion-related choices.

Probability

In general, probabilities can be interpreted as sampling proportions.

Example 1:

A = Gender chosen for the Style Profile quiz (1 if men, 0 if women);

Y = Preference for a specific style attribute (1 if preferred, 0 if not preferred)

  • P(A = 1, Y = 1) = Proportion of the population choosing ‘men’ as gender and preferring a specific style attribute.

Example 2:

W = Age of the participant;

A = Gender chosen for the Style Profile quiz (1 if men, 0 if women);

Y = Preference for a specific style attribute (1 if preferred, 0 if not preferred)

  • P(W = 22, A = 1, Y = 0) = Proportion of the population that is 22 years old, chooses ‘men’ as gender for the quiz, and does not prefer a specific style attribute.

Properties of Probability

Add (integrate) to go from joint probability to marginal probability.

Example 1: Proportion of participants preferring a specific style attribute is the sum of those preferring the attribute when selecting ‘men’ in the quiz, plus those who selected ‘women’,

\[P(A=1) = \sum_{y=0}^1P(A=1,Y=y).\] \[= P(A=1,Y=0) + P(A=1,Y=1)\]

Here, A represents the gender chosen in the quiz (1 for men, 0 for women),

Y represents the preference for a specific style attribute (1 if preferred, 0 if not).

Example 2:

Proportion of participants who are 22 years old and chose ‘men’ in the quiz:

\[P(W=22,A=1) = \sum_{y=0}^1P(W=22, A=1, Y=y)\]

And, the proportion of participants who are 22 years old:

\[P(W=22)= \sum_{a=0}^1\sum_{y=0}^1P(W=22, A=a, Y=y)\]

Properties of Probability

Divide joint probability by marginal probability to get a conditional probability. Key idea: Conditional probability = proportion of a subgroup. \[P(\text{characteristic} \mid \text{subgroup)}\]

Example 1: Proportion of participants preferring a specific style attribute amongst those who chose ‘men’ in the quiz:

\[ P(Y = 1 \,|\, A = 1) = \frac{P(Y = 1, A = 1)}{P(A = 1)} \] Here, Y represents the preference for a specific style attribute (1 if preferred, 0 if not), and A represents the gender chosen in the quiz (1 for men, 0 for women).

Example 2: Proportion of participants preferring a specific style attribute amongst those who are 22 years old and chose ‘men’ in the quiz:

\[ P(Y = 1 \,|\, W = 22, A = 1) = \frac{P(Y = 1, A = 1, W = 22)}{P(A = 1, W = 22)} \] In this case, W represents the age of the participant, A is the gender choice in the quiz, and Y is the preference for a specific style attribute.

Movie Reviews

Do audience scores differ from critic scores?

  • Using the movies.csv file, lets conduct a one proportion z test