1 / 43

Analysis of Means

Analysis of Means. Farrokh Alemi, Ph.D. Kashif Haqqi M.D. Review Objectives Definitions Expected Value Normal Distribution Distribution of Mean Central Limit Theorem Standard Normal Distribution. Use of Z Values Confidence Interval Hypothesis Two Types of Error One-tailed Tests

gamada
Download Presentation

Analysis of Means

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. Analysis of Means Farrokh Alemi, Ph.D. Kashif Haqqi M.D.

  2. Review Objectives Definitions Expected Value Normal Distribution Distribution of Mean Central Limit Theorem Standard Normal Distribution Use of Z Values Confidence Interval Hypothesis Two Types of Error One-tailed Tests Steps in Testing a Hypothesis When to Assume Normal Distribution for Means Use t-distribution Table of Content

  3. Review • Frequency distribution • Mean, median, and mode • Standard deviation and range Statistics is the art of making sense of distributions.

  4. Objectives • Describe different distributions, including normal, and t-distributions. • Calculate and interpret confidence intervals using normal distributions. • Understand types of errors that occurs with hypothesis testing. • Hypothesis testing using t-distribution.

  5. Example You Should Be Able to Answer at the End • The cost of rehabilitation in the industry is $25,000, with a standard deviation of 3000. • Assume that the average cost in our hospital is $30,000. • With 95% confidence, would you say that our cost is different than the industry? Is it important to ask these types of questions?

  6. Definitions • A random variable is a variable whose values are determined by chance. • A probability distribution is the probability with which values of a random variable can or are observed. • Probability of a value is the frequency of occurrence of that value divided by the frequency of occurrences of all values.

  7. Example of Probability Estimates • We examined the waiting time of 50 people at our emergency room and found that 10 people waited up to 5 minutes, 20 people waited 5.001 to 10 minutes, 13 people waited 10.001 to 15 minutes and 7 people waited 15.001to 20 minutes. • What is the probability of waiting 5 minutes? • What is the probability of waiting up to 10 minutes? Distributions help us make probability estimates about observed values.

  8. Example of Probability Estimates (Continued) • The probability of waiting up to 5 minutes is the number of times people waited up to 5 minutes divided by the total number of people: 10/50=.20. • The probability of waiting up to 10 minutes is the number of people who waited up to 10 minutes divided by the total number of people: (10+20)/50=0.6.

  9. Expected Value • Expected value of a distribution is the mean of the distribution. • It represents our long run expectations about the distribution. • The expected value of X is given by summing the product of each value of X, referred to as “i”, times its probability of occurring, referred to as p(X=i). • Expected value = mean =  p(X=i) * i.

  10. Example Calculation of Expected Value or Mean • We examined the waiting time of 50 people at our emergency room and found that 10 people waited up to 5 minutes, 20 people waited 6 to 10 minutes, 13 people waited 11 to 15 minutes and 7 people waited 16-20 minutes. • What is the mean waiting time at our emergency room?

  11. Example Calculation of Expected Value or Mean (Continued) Do this in Excel

  12. Normal Distribution • A symmetric distribution, meaning that data are evenly distributed about the mean. • Mean, median and mode are the same value. • It has one mode and looks like a bell shaped curve.

  13. Normal Distribution Continued • The curve is continuous, there are no gaps or holes. • The curve never touches the X-axis as any value is possible but with infinitely small probabilities. • 99.7% of values are within 3 standard deviations of mean.

  14. Distribution of Mean • If you take a repeated sample of some observations and average them, then you have a distribution for the mean. • The distribution of the mean has the same mean as the distribution of the observations. • Standard deviation of the mean = Standard error = Standard deviation of the observations / Square root of the sample size.

  15. Example • What is the mean, standard deviation and standard error for the following data: 4, 5, 6? • Mean = 5 • Standard deviation = 1 • Standard error = 1 / 1.7 = 0.58

  16. Central Limit Theorem • For any distribution of n observations with mean of  and standard deviation . • As n increases, the sample means will have a Normal distribution of mean  and standard deviation  / square root (n). The theorem is important because it helps us ignore questions about the shape of distribution and focus on the mean and standard deviation of it. Do this in Excel

  17. Standard Normal Distribution • A Normal distribution. • Mean of zero. • Standard deviation of 1. • Z = (Observed value – mean) / standard deviation of average. • Where standard deviation of mean = standard error = standard deviation of observations divided by square root of sample size.

  18. Example Calculation of Z • What is the Z value for the observed mean of 16, if the average mean is 10 and the standard error is 2? • Z = (16-10) / 2 = 3.

  19. Another Example • What is the Z value for the mean 16 of 4 observations, if the average of repeated sample of means is 10 and the standard deviation of the observations is 2? • Standard deviation of mean = 2 / 4^0.5 = 2/2 =1 • Z value for 16 = (16-10)/1 = 6

  20. Use of Z Values • 99.7% of data are between z=3 and z=-3. • Z is the number of standard deviations that X is away from the mean. • 0.15% of data are below z=-3. • 0.15 % of data are above z=3.

  21. Use of Z Value (Continued) • 95% of data are within z=1.96 and z=-1.96 • 5% are outside z=1.96 and z=-1.96 • 2.5% of data are below z=-1.96 • 2.5% of data are above z=1.96

  22. Confidence Interval • For Normal distributions, the 95% two tailed confidence interval corresponds to observations where z=1.96 and z=-1.96.

  23. Example • What is the 95% confidence interval for mean of 10 and standard deviation of 2? • Lower limit = 10-1.96*2 = 6.08. • Upper limit = 10+1.96*2 =13.92. • At 13.92, Z value is (13.92-10)/2=1.96. • At 6.08 , Z value is (6.08-10) / 2=-1.96. • 95% of data fall within these limits.

  24. Two Tailed Confidence Interval • What percentage of data are between z=1.96 and Z=-1.96. Answer: 95%. Often referred to as two-tailed confidence interval. • What percentage of data are below z=1.96? • Answer = 97.5. Often referred to as one tailed-confidence interval. • What percentage of data are above Z=-1.96. Answer =97.5. Often referred to as one tailed confidence interval.

  25. Hypothesis • A statistical hypothesis is a conjecture about population parameter. • The null hypothesis is that there is no difference between the parameter and a value. • The alternative hypothesis states there is a specific difference. Experimental data can only reject a hypothesis not accept it.

  26. Possible Outcomes of Hypothesis Test There are four possible outcomes: • We reject a hypothesis that is true. • We reject a hypothesis that is false. • We do not reject a hypothesis that is true. • We do not reject a hypothesis that is false.

  27. Two Types of Error

  28. Type 1 Error • The level of significance is the maximum probability of type 1 error, symbolized by alpha, . • When we base our decision on 95% confidence intervals, 5% of the data are ignored at the two tails of the distribution. Therefore, there is 5% chance that we will reject a hypothesis that is true. • Type one error= 5%,  = 0.05.

  29. One-tailed Tests • In a two-tailed test, the hypothesis is rejected when the value is above higher limit and below the lower limit. • In a one-tailed test that a parameter is larger than a particular value, the hypothesis is rejected when the value is above higher limit.

  30. One-tailed Tests (Continued) • When we base our decision on 95% confidence intervals, 2.5% of the data are ignored at one tail of the distribution. Therefore, there is 2.5% chance that we will reject a hypothesis that is true. • =0.025.

  31. Steps in Testing a Hypothesis • State the null hypothesis. • Identify the alternative hypothesis. • Is this a one tailed or two tailed test? • Decide the critical Z value above or below which the hypothesis is rejected, usually 1.96. • Calculate the Z value corresponding to the observation. • Reject or do not reject the hypothesis by comparing the calculated Z to the critical values.

  32. Example • The cost of rehabilitation in the industry is $25,000, with a standard deviation of 3000. • In our hospital, the average cost is $30,000. • With 95% confidence, would you say that our cost is different than the industry? Do this in Excel

  33. Steps in Testing Example Hypothesis • The null hypothesis: Our cost is higher or lower than average. • Alternative hypothesis: Our costs are the same as the industry. • This is a two tailed test. • The critical Z is +1.96 or –1.96. • Observed Z = (30000-25000)/3000 = 1.66. • Do not reject the hypothesis.

  34. When to Assume Normal Distribution for Means • When the population variance is known and observations have a Normal distribution. • When the population variance is unknown and there are more than 30 observations. • Otherwise use t-distribution an approximation for Normal distribution.

  35. Use t-distribution • If the values in the population is Normal. • If we have less than 30 observations. • If we have to estimate the standard deviation from the sample and variance of the population is not known. • The t-distribution is used as an approximation for near Normal data.

  36. Calculating t Statistic • t= (observed average – mean) / standard deviation of the average. • Critical value of t depends on sample size. • For one tail test of alpha = 0.025 and two tailed test of alpha =0.05. • The critical t value for sample size of 10 is 2.22 and for sample size of 20 is 2.08.

  37. Calculating t Statistic (Continued) • If we are examining sample size of 10, 95% of data are within t=2.22 and t=-2.22. • If we are examining sample size of 10, 97.5% of data are below t=2.22.

  38. Testing With t-distribution • State the null hypothesis. • Identify the alternative hypothesis. • Is this a one tailed or two tailed test? • Decide the critical t value above or below which the hypothesis is rejected, the value depends on sample size. • Calculate the t value corresponding to the observation. • Reject or do not reject the hypothesis by comparing the calculated t to the critical values.

  39. Example Data

  40. Selecting Data Analysis

  41. Select Descriptive Statistics

  42. Enter Data Range

  43. Result Confidence interval is the mean plus or minus the confidence level. If it does not include $30,000, then our hospital has a different cost structure than other hospitals in our database

More Related