1 / 36

Applied Statistics Using SPSS

The future is a vain hope, the past is a distracting thought. Uphold our loving kindness at this instant, and be committed to our duties and responsibilities right now. Applied Statistics Using SPSS. Topic: Hypothesis Testing By Prof Kelly Fan, Cal State Univ, East Bay. Hypothesis Testing.

Download Presentation

Applied Statistics Using SPSS

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. The future is a vain hope, the past is a distracting thought. Uphold our loving kindness at this instant, and be committed to our duties and responsibilities right now.

  2. Applied Statistics Using SPSS Topic: Hypothesis Testing By Prof Kelly Fan, Cal State Univ, East Bay

  3. Hypothesis Testing • A statistical hypothesis is an assertion or conjecture concerning one or more populations. • Agenda: • Types of tests • Types of errors • P-value • Summary of tests • Assumption checking

  4. Types of Tests

  5. Types of Tests

  6. Types of Tests

  7. Types of Errors H0 true H0 false Type II Error, or “ Error” Good! (Correct!) we accept H0 Type I Error, or “ Error” Good! (Correct) we reject H0

  8. = Probability of Type I error = P(rej. H0|H0 true)  = Probability of Type II error= P(acc. H0|H0 false) We often preset , called significance level. The value of  depends on the specifics of the H1 (and most often in the real world, we don’t know these specifics).

  9. EXAMPLE: H0 : < 100 H1 :  >100 Suppose the Critical Value = 141: X  =100 C=141

  10.  = P (X < 141/= 150) = .3594  = 150 What is ? 141  = 150  = 160 These are values corresp.to a value of 25 for the Std. Dev. of X  = P (X < 141/= 160) = .2236  = 160 141  = 170  = P (X < 141/= 170) = .1230  = 170 141  = 180  = P (X < 141/= 180) = .0594  = P (X < 141|H0 false)  = 180 141

  11. Note: Had  been preset at .025 (instead of .05), C would have been 149 (and  would be larger); had  been preset at .10, C would have been 132 and  would be smaller. and“trade off”.

  12. P Value Definition: the probability that we reject Ho when Ho is true based on the observed data Idea: the largest “risk” we pay to reject H0 Alternate name: the observed type I error rate / the observed significance level • When will we reject Ho ? • What is the formula to calculate the largest risk?

  13. Steps of Hypothesis Tests • Set up Ho and Ha properly • Preset a level (the significant level) • Select an appropriate test • Calculate its p-value • Reject Ho if p-value < or = the significant level; otherwise fail to reject Ho

  14. Set Up Hypothesis Properly • Conjecture: The fraction of defective product in a certain process is at most 10%. • Which error is more seriously? Incorrectly claim this conjecture is true? false? • The “=“ sign must be in Ho

  15. One Population

  16. Two Populations

  17. Assumption Checking • Tests/graphs for normality • Tests for equal variances

  18. Example: Mortar Strength The tension bond strength of cement mortar is an important characteristic of the product. An engineer is interested in comparing the strength of a modified formulation in which polymer latex emulsions have been added during mixing to the strength of the unmodified mortar. The experimenter has collected 10 observations on strength for the modified formulation and another 10 observations for the unmodified formulation.

  19. Example: Mortar Strength Modified Unmodified16.85 17.5016.40 17.6317.21 18.2516.35 18.0016.52 17.8617.04 17.7516.96 18.2217.15 17.9016.59 17.9616.57 18.15

  20. SPSS Data Input • SPSS: One variable one column in the work sheet

  21. Normality Tests/Plots SPSS: Analyze >> Descriptive Statistics >> Explore >> Plots , Normality plots with tests

  22. One-sample t tests SPSS: Analyze >> Compare means >> One sample t test , choose Test variable, Test value

  23. Two-sample Normality Tests/Plots SPSS: Analyze >> Descriptive Statistics >> Explore , choose Dependent , Factor lists >> Plots , Normality plots with tests SPSS output:

  24. Two-sample t Tests and Equal-variance Tests SPSS: see below; choose test and grouping variables

  25. Research Question • A researcher claims that a new series of math courses for elementary school is more effective than the current one. Two (1st grade) classes of students are selected to perform an experiment to verify this claim. How would you conduct the experiment to avoid confounding variables as much as possible?

  26. Paired Samples • If the same set of sources are used to obtain data representing two populations, the two samples are called paired. The data might be paired: • As a result of the data from certain “before” and “after” studies • From matching two subjects to form “matched pairs”

  27. Tests for Paired Samples • Calculate the pair differences • Proceed as in one sample case Notes: • SPSS: create/calculate all variables we need

  28. When population is nonnormal and n is small, how to do inferences about m: 1). Non-parametric tests 2). (Optional) Use Bootstrap methods to simulate the sampling distribution of t test statistic and then the simulated distribution to find an (approximate) C.I. and p-value INFERENCES ABOUT MEAN WHEN “BEYOND THE SCOPE”

  29. Non-parametric Tests • Independent samples: Wilcoxon Rank Sum Test (also called Manny-Whitney test) • Assumption: two distributions of the same shape • Paired samples/One sample: Wilcoxon Signed-Rank Test • Assumption: a symmetric distribution (of the differences for paired samples)

  30. Introduction to Bootstrap Methods How to simulate the sampling distribution of a given statistic, say t, based on a given sample of size n: Pretend the original sample is the entire population Select a random sample of size n from the original sample (now the population) with replacement ; this is called a bootstrap sample Calculate the t value of the bootstrap sample, t* Repeat steps 2, 3 many times, 1000 or more, say B times. Use the obtained t* values to obtain an approximation to the sampling distribution

  31. Review: Confidence Interval

  32. One Population

  33. Two Populations

More Related