1.99k likes | 2k Views
This article discusses hypothesis testing, margin of error, sample size calculations, and visualization techniques such as histograms. It also provides administrative information for an upcoming midterm.
E N D
Last Time • Hypothesis Testing • 1-sided vs. 2-sided Paradox • Big Picture Goals • Hypothesis Testing • Margin of Error • Sample Size Calculations • Visualization • Histograms
Administrative Matters Midterm I, coming Tuesday, Feb. 24 • Excel notation to avoid actual calculation • So no computers or calculators • Bring sheet of formulas, etc.
Administrative Matters Midterm I, coming Tuesday, Feb. 24 • Excel notation to avoid actual calculation • So no computers or calculators • Bring sheet of formulas, etc. • No blue books needed
Administrative Matters Midterm I, coming Tuesday, Feb. 24 • Excel notation to avoid actual calculation • So no computers or calculators • Bring sheet of formulas, etc. • No blue books needed (will just write on my printed version)
Administrative Matters Midterm I, coming Tuesday, Feb. 24 • Material Covered: HW 1 – HW 5
Administrative Matters Midterm I, coming Tuesday, Feb. 24 • Material Covered: HW 1 – HW 5 • Note: due Thursday, Feb. 19
Administrative Matters Midterm I, coming Tuesday, Feb. 24 • Material Covered: HW 1 – HW 5 • Note: due Thursday, Feb. 19 • Will ask grader to return Mon. Feb. 23
Administrative Matters Midterm I, coming Tuesday, Feb. 24 • Material Covered: HW 1 – HW 5 • Note: due Thursday, Feb. 19 • Will ask grader to return Mon. Feb. 23 • Can pickup in my office (Hanes 352)
Administrative Matters Midterm I, coming Tuesday, Feb. 24 • Material Covered: HW 1 – HW 5 • Note: due Thursday, Feb. 19 • Will ask grader to return Mon. Feb. 23 • Can pickup in my office (Hanes 352) • So today’s HW not included
Reading In Textbook Approximate Reading for Today’s Material: Pages 261-262, 9-14, 270-276, 30-34 Approximate Reading for Next Class: Pages 279-282, 34-43
Big Picture • Hypothesis Testing (Given dist’n, answer “yes-no”) • Margin of Error (Find dist’n, use to measure error) • Choose Sample Size (for given amount of error) Need better prob. tools
Big Picture • Margin of Error • Choose Sample Size Need better prob tools Start with visualizing probability distributions (key to “alternate representation”)
Histograms Idea: show rectangles, where area represents
Histograms Idea: show rectangles, where area represents: • Distributions: probabilities • Lists (of numbers): # of observations
Histograms Idea: show rectangles, where area represents: • Distributions: probabilities • Lists (of numbers): # of observations Note: will studies these in parallel for a while (several concepts apply to both)
Histograms Idea: show rectangles, where area represents: • Distributions: probabilities • Lists (of numbers): # of observations Caution: There are variations not based on areas, see bar graphs in text But eye perceives area, so sensible to use it
Histograms Steps for Constructing Histograms: • Pick class intervals that contain full dist’n
Histograms Steps for Constructing Histograms: • Pick class intervals that contain full dist’n a. Prob. dist’ns: If possible values are: x = 0, 1, … , n, get good picture from choice: [-½, ½), [½, 1.5), [1.5, 2.5), … , [n-½, n+½) where [1.5, 2.5) is “all #s ≥ 1.5 and < 2.5” (called a “half open interval”)
Histograms Steps for Constructing Histograms: • Pick class intervals that contain full dist’n a. Prob. dist’ns b. Lists: e.g. 2.3, 4.5, 4.7, 4.8, 5.1 Start with [1,3), [3,7) • As above use half open intervals (to break ties)
Histograms Steps for Constructing Histograms: • Pick class intervals that contain full dist’n a. Prob. dist’ns b. Lists: e.g. 2.3, 4.5, 4.7, 4.8, 5.1 Start with [1,3), [3,7) • Can use anything for class intervals • But some choices better than others…
Histograms Steps for Constructing Histograms: • Pick class intervals that contain full dist’n • Find “probabilities” or “relative frequencies” for each class (a) Probs: use f(x) for [x-½, x+½), etc. (b) Lists: [1,3): rel. freq. = 1/5 = 20% [3,7): rel. freq. = 4/5 = 80%
Histograms Steps for Constructing Histograms: • Pick class intervals that contain full dist’n • Find “probabilities” or “relative frequencies” for each class • Above each interval, draw rectangle where area represents class frequency
Histograms • Above each interval, draw rectangle where area represents class frequency (a) Probs: If width = 1, then area = width x height = height So get area = f(x), by taking height = f(x)
Histograms • Above each interval, draw rectangle where area represents class frequency (a) Probs: If width = 1, then area = width x height = height So get area = f(x), by taking height = f(x) E.g. Binomial Distribution
Binomial Prob. Histograms From Class Example 5 http://www.stat-or.unc.edu/webspace/courses/marron/UNCstor155-2009/ClassNotes/Stor155Eg5.xls Construct Prob. Histo: • Create column of x values • Compute f(x) values • Make bar plot
Binomial Prob. Histograms • Make bar plot • “Insert” tab • Choose “Column” • Right Click – Select Data (Horizontal – x’s, “Add series”, Probs) • Resize, and move by dragging • Delete legend • Click and change title • Right Click on Bars, Format Data Series: • Border Color, Solid Line, Black • Series Options, Gap Width = 0
Binomial Prob. Histograms From Class Example 5 http://www.stat-or.unc.edu/webspace/courses/marron/UNCstor155-2009/ClassNotes/Stor155Eg5.xls Construct Prob. Histo: • Create column of x values • Compute f(x) values • Make bar plot • Make several, for interesting comparison
Binomial Prob. Histograms From Class Example 5a
Binomial Prob. Histograms From Class Example 5a Compare Different p
Binomial Prob. Histograms From Class Example 5a Compare Different p: • Surprisingly similar “mound” shape
Binomial Prob. Histograms From Class Example 5a Compare Different p: • Surprisingly similar “mound” shape (will exploit this fact)
Binomial Prob. Histograms From Class Example 5a Compare Different p: • Centerpoint moves as p grows
Binomial Prob. Histograms From Class Example 5a Compare Different p: • Centerpoint moves as p grows (will quantify, and use this, too)
Binomial Prob. Histograms Important point: Binomial shows common shape across p
Binomial Prob. Histograms Important point: Binomial shows common shape across p Mound Shape (like dumping dirt out of a truck)
Binomial Prob. Histograms Important point: Binomial shows common shape across p Mound Shape (like dumping dirt out of a truck) What about n?
Binomial Prob. Histograms From Class Example 5b Compare Different n
Binomial Prob. Histograms From Class Example 5b Compare Different n: • Again very similar mound shape
Binomial Prob. Histograms From Class Example 5b Compare Different n: • Again very similar mound shape (will exploit this fact)
Binomial Prob. Histograms From Class Example 5b Compare Different n: • Center does not appear to move
Binomial Prob. Histograms From Class Example 5b Compare Different n: • Center does not appear to move, but check axes!
Binomial Prob. Histograms From Class Example 5b Compare Different n: • Center does not appear to move, but check axes! (will quantify, and use this, too)
Binomial Prob. Histograms From Class Example 5b Compare Different n: • But width of bump does seem to change
Binomial Prob. Histograms From Class Example 5b Compare Different n: • But width of bump does seem to change (will quantify, and use this, too)
Binomial Prob. Histograms Important point: Binomial shows common shape across p & n Mound Shape (like dumping dirt out of a truck)
Binomial Prob. Histograms Important point: Binomial shows common shape across p & n Mound Shape (like dumping dirt out of a truck) Question for later: How can we put this work?
And now for something (sort of) different Recall survey from first class meeting
And now for something (sort of) different Recall survey from first class meeting Display Results?
And now for something (sort of) different Recall survey from first class meeting Display Results? Use “bar graph”
And now for something (sort of) different Bar Graph from Survey, on major