1 / 54

Statistics Quick Overview

Statistics Quick Overview. Class #3. A/B Testing in Obama’s 2008 Campaign. Objective: Maximize Sign-Up Rate. Source: http://www.youtube.com/watch?v=7xV7dlwMChc. So, What is Your Guess?. A/B Testing for On-Line Businesses. What is it? Develop two versions of a page

lacy-wiley
Download Presentation

Statistics Quick Overview

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. Statistics Quick Overview Class #3

  2. A/B Testing in Obama’s 2008 Campaign • Objective: Maximize Sign-Up Rate Source: http://www.youtube.com/watch?v=7xV7dlwMChc

  3. So, What is Your Guess?

  4. A/B Testing for On-Line Businesses • What is it? • Develop two versions of a page • Randomly show users different versions • Track how they do • Uses statistics to decide which is better • Answers yes/no questions • Why? • You have the data to do it • Web sites convert a small number of users • Some see a 40% increase in conversion Source: Ben Tilly btilly@gmail.com

  5. Some Lessons from A/B Testing • Explore before you refine • Example: ABC Family: • Existing Website: Promotions for upcoming shows • Radical Idea: People come to the website looking for old episodes +600% engagement

  6. Some Lessons from A/B Testing • Words Matter, Call to action • Which button led to the biggest increase in donations?

  7. Some Lessons from A/B Testing • Words Matter, Call to action • Which button led to the biggest increase in donations? • Trick question. Depended on what campaign knew!

  8. Thought Exercise with Our Packaging Example Original Case (mean = 290, sd = 53) If a store manager came to you and said, “what will my sales be?” how would you answer? If CEO came to you and said, “what will average sales be?” how would you answer? Less Variability (m = 290, sd = 5) More Variability (m = 290, sd = 186)

  9. Thought Exercise II- We Doubled The Samples (mean = 290, sd = 53) (mean = 290, sd = 53) What do you think of these questions now? If a store manager came to you and said, “what will my sales be?” how would you answer? If CEO came to you and said, “what will average sales be?” how would you answer?

  10. Sampling Distribution–Many times we are sampling a population and need to find the true mean • The mean of the sample is denoted by • estimates the true mean, µ • Is it a ‘good’ estimator? • It depends on a few things • The standard deviation of the population • The sample size • The distribution of the population (sometimes) • A good random sample and maybe a little luck

  11. Sampling Distribution • is approximately normally distributed with a mean of µ and stdev of • Since we never know the actual σ, we approximate it with the sample standard deviation, s. • is commonly used in statistics • We call this term the standard error of the mean Let’s see how this applies to our examples

  12. Central Limit Theorem– General Idea • is approximately normally distributed with a mean of µ and stdev of • In other words, as you take various samples, the collection of these samples will be approximately normally distributed • The larger the value of n, the closer to normally distributed • The population data does not have to be normally distributed

  13. We Have 3 Measures for a Sample of Data • Mean (average) • Standard Deviation (sample standard deviation) • Standard Error of the Mean • Let’s build a confidence interval….

  14. The t-distribution • The t-distribution resembles a standard normal but with thicker ‘tails’ • t-distributions are characterized by a feature called degrees of freedom • t-distributions with higher degrees of freedom more closely represent the standard normal

  15. t-distributions with various Degrees of Freedom

  16. The TDIST function requires three inputs X (the function finds the area to the right of X) Deg_freedom Tails (inputting 1 tail finds the area to the right of X, 2 tails reports twice the area) X must be a positive number Excel: The t-distribution

  17. The TINV function requires two inputs Probability Deg_freedom The function reports the value, t, that will yield the required probability to its right for a t-dist with the specified d.f. Excel: The inverse t-distribution

  18. Sampling Distribution • is approximately normally distributed with a mean of µ and stdev of • Since we never know the actual σ, we approximate it with the sample standard deviation, s. • follows a t-distribution with n-1 d.f.

  19. Notation • is commonly used in statistics • We call this term the standard error of the mean

  20. Interval Estimates • Our estimate of the true mean sales per store is 290.5 • The standard error of the mean is 8.8 • What proportion of samples like ours would be within 10 units of the true mean? • We can use the t-distribution to find out

  21. The Computations Area between -1.13 and 1.13

  22. Where does this fall on t-distribution? Not to scale Degrees of F: 35 -1.13 0 1.13

  23. Let’s Do This in Excel • Find the probability of +/- 10 units

  24. Confidence • In this example, we say that we are 73% confident that the true mean lies within 10 units of our estimate. • We must use the word confidence instead of probability as the randomness is associated with our estimator and not the true mean which is not random at all. • Usually, we work backwards from a desired level of confidence and then find the range of the interval necessary to achieve that level.

  25. 95% Confidence Intervals • A 95% confidence interval takes on the form: • where is the value needed to generate an area of α/2 in each tail of a t-distribution with n-1 degrees of freedom • Use the Excel formula CONFIDENCE.T for • CONFIDENCE.T uses the following: • Alpha = 1 – Confidence you want • StdDev = Std Deviation (not the std error of the mean) • Sample= sample size

  26. Test With Sample Data • Divide into groups • Work on one of the data sets • Find the Mean, StdDev, Std Error of the Mean, and the 95% Confidence Intervals

  27. Hypothesis Testing Source for Hypothesis Testing: Dr Nicola Ward Petty and CreativeHeuresitcs

  28. Hypothesis Testing We can say things about a population from a sample taken from the population Source for Hypothesis Testing: Dr Nicola Ward Petty and CreativeHeuresitcs

  29. Steps of Hypotheses Testing • Hypotheses • Significance • Sample • P-value • Decide

  30. Hypothesis Testing: Step 1: The Hypothesis • We are testing something about the underlying population parameters • Null includes the equality sign (=, ≥, or ≤) H0- Null Hypothesis (everything else or the status quo) Ha- Alternative Hypothesis (what you want to prove)

  31. Test Marketing (Formally) m : average sales per week. Ho: m is equal to or smaller than 275. Ha: m is greater than 275.

  32. Hypothesis Testing, Step 2: Significance • Significance, or alpha (α), is generally set to 5% • It is the probability that the Null is rejected when it is really correct, • Or a Type I Error

  33. Hypothesis Testing: Step 3: Sample Take a sample and gather the statistics about the sample (like the mean, stddev, std error of the mean, etc)

  34. Hypothesis Testing, Step 4: P-Value • Different ways to calculate p-value if we are testing one mean or two • One mean: Will the new packaging have sales greater than 275? • Two means: Is the Blue Package better than the Green Package? • We will start with one mean. • To start, we calculate the test statistic: • The value for μ is the value in our Null hypothesis (we are testing to see if this is true population value)

  35. Hypothesis Testing: P-Value:Example with Packaging

  36. Let’s Not Lose Track of the Intuition… • Is 290 larger than 275? • What if sales had to be more than 400, more than 500, more than 320, would you be comfortable about our hypothesis? • How much larger is 290 than 275 relative to the statistics we have calculated? • Hint– think about the standard deviation and the standard error of the mean • How do you feel about our test?

  37. Hypothesis Testing: P-Value: If 275 is the true mean (our Null Hypothesis), what is the chance we drew a sample with an average of 290.54? St. Dev = 8.8475 275 290.54

  38. Hypothesis Testing: P-Value:Formal Statement Of Problem m : average sales per store Ho: m is less than or equal to 275. Ha: m is greater than 275.

  39. Hypothesis Testing: P-Value:Computations Test Statistic = Case: When Null is ≤ and the sample mean is higher than the null value: P equals (1-T.DIST) Function or the T.DIST.RT Function Let’s test in Excel =1.76

  40. Hypothesis Testing Step 5: DecideHow to Use the P-Value If p > Significance Level, Do Not Reject the Null Significance If p < Significance Level, Reject the Null

More Related