








Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!









Probability Theory The branch of mathematics that focuses on the likelihood of random events to occur. o Probability refers to the chance that an event will occur. Impossible events are assigned a probability of zero. Certain (sure) events occur at a probability of 100% or 1. Anything in between these two values (0 and 1) is probable. o Events are outcomes of probability-producing experiments: Rolling a die is an experiment that produces different events with corresponding probabilities. o An elementary event delineates the most basic outcomes of an experiment. e.g., rolling a 2 on the die. Rolling an even number (i.e., 2, 4 or 6) on the die is an event that consists of three elementary events, namely: rolling a 2,4or 6. o Sample space : collection of all elementary events that can possibly come out of a specific experiment; it is denoted using curly brackets For example, the sample space for rolling the die is {1, 2, 3, 4, 5, 6}, and the sample space for tossing a coin is {H, T}. The sample space for tossing two coins would be {HH, HT, TH, TT}, which enumerates all possible outcomes of the experiment Example : Kickstarter It has a all-or-nothing funding scheme: only projects that reach their funding goals are deemed successful and receive any money. 36% of the projects have reached their funding goals. Among the projects that were not successful (that is, received no funding), various pledge levels were obtained, shown in the table Creating a new project on Kickstarter is an experiment. o It produces two possible events:
Two Foundational Rules
The Multiplication Rule To examine the intersection of two events o We have previously used the contingency table to obtain P(A and B),but we can also compute it from already-known probabilities. o From the discussion on conditional probabilities, we know that: P(A|B) = P(A and B)/P(B)
→ We are looking for P(S|G). The formula we should use is: P(S|G) = P(S and G)/P(G) The marginal probability , P(G), can be computed as the sum of all joint probabilities in its corresponding column int he contingency table Example : P(S|G)= P(S and G)/P(S and G)+P(Sc and G) = 0.0288/(0.02888+0.0576) = 0. → the success probability for games projects (33.33%) is just slightly lower than the overall success probability of 36% GENERAL FORMAT FOR THE BAYES’ THEOREM: Another Example : An event organizer is considering 3 locations for an upcoming concert: indoors, under the sky, and in a tent. Each location will yield a different layout depending on the weather that day The event planner believes there is a 60% chance of good weather (event G; P(G)=0.6), and 40% chance of bad weather (event Gc; P(Gc)=0.4) → initial evidence However, he then hires an expert weather specialist, who has a good record of past predictions. She has been able to correctly predict good weather 80% of the time when good weather actually occurred → P(PG|G) = 0. We also know that the specialist correctly predicted bad weather (when bad weather actually occurred) 90% of the time → P(PGc|Gc) = 0. The weather specialist has just delivered her report, which predicts good weather conditions. So, what should be the planner’s revised prediction of the weather conditions? Probability Tree : o Drawing showing all possible events with their probabilities o The tree is shown left-to-right, meaning that events that occur first are presented to the left of later events o The sum of all branches coming out of a specific node should be one (graphical equivalent of the complement rule)
Probability of distribution: probability of occurrence of expected values. It helps us make inferences about a population of interest Example: number of Twitter followers you can expect ○ Random variable (X): number of followers you may have on Twitter, based on your observations of the followers of your friends ○ P(X) is the probability of each specific X value (so we use lowercase x) ○ The table displays possible values of X alongside the probabilities of occurrence we expect from each value → 29% chance you’ll get no followers, and so on All data associated with a variable of interest follow some distribution. The distribution may be discrete, describing the probabilities of values of a discrete (countable) random variable, such as number of customers walking into a store in a specific timeframe. Or, it may be continuous, describing the probabilities of intervals of a continuous (measurable) random variable, such as income, time, or distance Random Variable
Variance
Online store example: You want to calculate the cart conversion rate, which is the percentage of customers that complete an order after setting the order up in a shopping cart → in your case, 5% conversion rate X = random variable counting the number of website visitors that have converted the cart into a purchase What’s the probability that, out of 100 visitors with items in the cart, six of them will purchase something? About 15% chance that 6 will complete the purchase What is the probability that, out of 100site visitors who have placed items in their shopping cart, between six to ten customers (inclusive) will complete the purchase? P(6≤X≤10) = P(6)+ P(7)+ P(8)+ P(9)+ P(10) Computing the mean and variance of binomial distributions: μ = np → 𝜇 (mean) or E(X) = 100 ∗ 0.05 = 5 σ2 = np(1− p) → 𝜎² (standard deviation) or V(X) = 100 ∗ 0.05 ∗ 0.95 = 4. σ = (^) √𝑛𝑝( 1 − 𝑝) → 𝜎 (variance) = (^) √ 4. 75 = 2. CONTINUOUS PROBABILITY DISTRIBUTION A continuous random variable, X, ○ Can assume an uncountable number of values → can take on any value at a given probability ○ Because there is an infinite number of values: a. We cannot list each and every value b. The probability of each individual value is virtually 0 (for example, what is the probability that tonight you’ll sleep exactly 7h 5min 29s?), so we look at cumulative probabilities across intervals of values (e.g., probability that you sleep less than 7 hours) ○ The probability distribution obtained from a histogram representing the frequency of classes is a continuous probability distribution ○ E.g. the amount of time devoted to studying statistics each week is a continuous random variable Probability Density Function o The probability density function describes the likelihood that the values of X, the continuous random variable, fall within a given interval. o The total area captured between the line and the x-axis is equal to ‘one’, because the sum of all probabilities in a sample space is one o We can compute the probability of X falling in a specific interval along the x- axis by computing the partial area underneath the density function for this interval
The uniform distribution Assigns an equal likelihood of occurrence to all possible values of X
Website example: Value of a customer visit of 4 miniatures is exactly 1 standard deviation below the mean (see above). Indeed, you can calculate that the corresponding Z score for a 4-minute visit is - 1 → Z = (4-5)/1 = - 1 The Empirical Rule (cfr. Midterm 1) 68% of all values lie within 1 standard deviation from the mean 95% of all values lie within 2 standard deviation from the mean 99.7% of all values lie within 3 standard deviation from the mean P-VALUE It is the probability of obtaining a Z score farther away from the mean than a specified Z score value, shown as the absolute value of z. Since we are using the absolute value of z, farther away can mean being either to the right of a positive Z score value or to the left of a negative Z score value → P(Z ≥ |𝑧|) → P(Z ≥ Z) = P(Z ≤ - Z) Example: Left panel: shaded area left of the Z score value of - 2; the p-value for a Z score of - 2 is: P(Z ≤ - 2)= 0. Right panel: shaded area right of Z value 1.7: P (Z ≥ 1.7) = 1-P(Z ≤ 1.7) = 0.0466 → complement rule! INVERSE PROBABILITY CALCULATIONS To find the Z score value that corresponds to a given probability → 𝑃(𝑍 ≤ 𝑧) = probability Graph Example: Find z such that P(Z>z) = 0. Using the complement rule: P(Z<z) = 1- 0 - 025 = 0. Look for this value inside the table to find that it corresponds to a Z value of 1. Therefore z* = 1.96S