Math 151 , Day 31, Monday, April 15, 2002Hit reload to get current versionAfter class

More shoeboxes. Jumping Jacks = 1, Sperry Topsider (red top) = 2
    Take a sample of size 4 from each,  record, return numbers.
    Keep track of which box; return numbers to right box.

Closed book quiz at end of class.   Day30
HW questions?

Relation of m(margin of error, half width), C (confidence level), and n (sample size),  (and sigma)
    C and z* get bigger and smaller together (bigger C means bigger z*, and vice versa) (standard normal sketch)
m = z* (sigma)/ sqrt(n)
    Want bigger C?  Must accept bigger m.  Trade off confidence vs. accuracy.
    But bigger n will make smaller m. This makes sense: bigger sample size, more info-->more accurate estimate.
            (square root makes it Expensive: have to quadruple n to make m half as  big)
    So smaller m can be achieved only by
        » accepting lower confidence level (smaller C),
        » or by increasing sample size (bigger n).

    Sigma:  We can't change it, it comes with the population.  But bigger sigma (more population variability) will give bigger m (wider CI), i.e. less accuracy in prediction (for the same C and n).
Science colloquium last Wednesday:  Experiments on chickens bred to be "identical"--very low variability from one to the other.  Therefore very small samples suffice.

Planning ahead:  Choose sample size big enough to satisfy desired: margin of error, confidence level.
    Given C and m (and sigma), find n.
        Method:  Use C to find z*.  Plug in to formula for m, and solve for n.  Or memorize formula for n and plug in to it.
          n = (z* sigma / m)2   Note:  z* sigma still on top.  m and n change places, and whole thing is squared!
            Round up!  If you get n = 5.06, you need a sample of size 6 to get your margin of error at least as short as you want.
~~~~~~~~~~~~~~~~
Start here Wednesday
Sec 6.2: "Significance tests use an elaborate vocabulary, but the basic idea is simple: an outcome that would "rarely" happen if a claim were true--is good evidence that the claim is NOT true." (p.314)
(New terms?)

Shoeboxes 1 and 2:  I claim the mean value  for both shoeboxes is µ = 20.  Am I telling you the truth?  I can't remember for sure.  I do know that the distribution in the box is normal,  standard deviation is 4.
I do remember that if  µ is not 20, then it is greater than 20. µ > 20.
Take a sample of size 4, find xbar.   Once for each shoebox!
How far from 20 is it?  Measure that in standard deviations of Xbar. (That is, find z for xbar.  Note s.d. for sampling dist of xbar is 2 (why?) ).
Is this a far-out value of z?Look in the normal table to see how much probability is in the tail to the right of it--gives a measure of far-out-ness independent of distribution.

The game:
Before taking data, define
H0: "Null hypothesis" A claim or statement about the population we would like to show is NOT true.
       Stated usually as:  A parameter = a particular value.  H0: µ =1000 hrs.  (Average lightbulb life.)
Ha: "Alternative hypothesis" A claim or statement about the population we are trying to find evidence FOR.
          Stated usually as: The parameter  is >, or <, (one-tail tests) --or NOT = the particular value. (two-tail)
            Ha:   µ  > 1000 hrs. (Suppose we have a New process that makes them burn longer. We hope.)

Take data.  Calculate statistic (outcome).  Is it an unlikely result if  H0 is true?  Then that is evidence against H0.

Measuring the strength of the evidence against H0 (a common measuring stick for all distributions and parameters):
P-value of a test:  The probability, computed assuming that H0 is true, that the observed outcome would take a value as extreme or more extreme than that actually observed (if we could repeat taking-data again).  p. 321.
    The smaller the P-value, the stronger the data's evidence against H0 ( for Ha).

For a test of mu, using xbar (sigma known), the P-value is
--the area of the tail beyond the observed xbar, in the direction of Ha(one tail)
--or twice that area (two-tail).
We usually calculate it by standardizing the observed xbar (assuming H0 true) and looking in the normal table. (p. 329)
How far from 20 is your xbar? Find z for xbar.
Is this a far-out value of z? What is the probability of being farther out, i.e. being in the tail beyond this z?  That's the P-value.

Start with understanding "null and alternative hypothesis, p-value."   Those are the foundation. Then

A "Significance level" alpha is a probability level we decide on  in advance as being the "rarely" amount that will push us over into believing (well, sort of) that the H0 claim  is not true. (Historically older language than P-value)
We tend to use simple benchmark numbers for it, like .10 (1 in 10), .05 (1 in 20), .01 (1 in 100).
When the P-value is less  than (or equal to) a particular significance level alpha (say .05), we say,
    "The results are significant at the alpha = .05 level," or "The results are significant (P< .05)"
A particular scientific discipline may have a commonly accepted set of benchmarks, and language to go with it. (I think I remember .05 = "significant", .01 = "highly significant" in psychology?)
We will be less doctrinaire, use the language "significant at the alpha = ___ level."  (However, "nobody" uses a significance level less rare  than .10, 1 in 10).



PreClass assignment Day 31 for  Day 32
Significance Tests.
Activstats: Same as given on Day 29.  Continuing, 
Page19-4 talks about one-and 2 sided hypotheses.  We won't be doing Type I and Type II error now, but they're good to know about.
Moore Focus on pp. 318-334 for next time.  When that's under control, continue.
Bring to class:  New terms you'll need to know.
HW Day31  Read Sec. 6.1, sample size, p. 308-311. Review rest.
Hand in: All from Moore
Sample size for C.I., review 
p. 3.11, 6.10, 6.11, 6.12 
p. 315, 6.16  enlighten the unstatistical
  6.17hotel mgrs.
- - - - - - - - - - - - - - - - - 
A.  For each of your samples of size 4  from the two shoeboxes *(keep track of which box they came from!): 
test H0:  µ=20 vs.  Ha:   µ  > 20.  Do it like this:
--Find xbar.
--Find z (assuming the population mean is 20, and the population s.d. is 4, so the s.d. for Xbar is 2)
--Use the standard normal table to find the probability to the right of your z.  (this is the P-value)
--Is your P-value smaller (less likely) than alpha = .10?  If so, your result is "significant at the alpha = .10 level"
--Do you think the box really has mean 20?
Be ready with these answers to pool and compare next time.
*I'll leave the boxes outside my door, so If you didn't get your samples in class for any reason, you can come and get them.
Read,
to discuss
Optional

Continue to (Re)read Sec. 6.2.  Focus on pp. 318-334 for next time.  When that's under control, continue.
Sec. 6.2:  Look these over to see where we're going.  Hand in Wednesday.
To hand in Wednesday: Moore
Sketching xbars for H0, p-value 
p. 323, 6.25 SSHA 
6.26 Spending on housing

Stating null and alternative hypotheses 
p. 325 6.27, 28, 29, 30 


Calculating p-value (one-sided), relating to Sig. level 
p. 328, 6.31 and 32 (extending 6.25 and 26) 
6.33 restating jargon

 Calculating p-value (one or two-sided), using z test statistic, relating to Sig. level 
p. 333, 6.34 price reduc. on coffee
  6.35 crankshafts true? Use your calculator to find the sample mean.
  6.36 cola? Use your calculator to find the sample mean.
Read, 
to discuss
Optional 
(more practice) 
 
 

Stating null and alternative hypotheses 
p.340, 6.41,42 


Calculating p-value (one or two-sided), using z test statistic, relating to Sig. level 
p. 340 6.43 watered milk?


Sievers home  Math151-Sp02/Day31.htm  1pm 4/15/02
This page belongs to Sally Sievers who is solely responsible for its content. Please see our statement of responsibility.