Question 1076818:  Stuck on p value.  Thanks for help! 
Is there a relationship between confidence intervals and two-tailed hypothesis tests? Let c be the level of confidence used to construct a confidence interval from sample data. Let α be the level of significance for a two-tailed hypothesis test. The following statement applies to hypothesis tests of the mean. 
For a two-tailed hypothesis test with level of significance α and null hypothesis H0: μ = k, we reject H0 whenever k falls outside the c = 1 − α confidence interval for μ based on the sample data. When k falls within the c = 1 − α confidence interval, we do not reject H0. 
(A corresponding relationship between confidence intervals and two-tailed hypothesis tests also is valid for other parameters, such as p, μ1 − μ2, or p1 − p2, which we will study later.) Whenever the value of k given in the null hypothesis falls outside the c = 1 − α confidence interval for the parameter, we reject H0. For example, consider a two-tailed hypothesis test with α = 0.01 and 
H0: μ = 20        H1: μ ≠ 20 
A random sample of size 39 has a sample mean x = 23 from a population with standard deviation σ = 6. 
(a) What is the value of c = 1 − α?  
  
.99 
  
Correct: Your answer is correct. 
 
 
Construct a 1 − α confidence interval for μ from the sample data. (Round your answers to two decimal places.)  
lower limit    	  
20.53 
  
Correct: Your answer is correct. 
upper limit    	  
25.47 
  
Correct: Your answer is correct.
 
What is the value of μ given in the null hypothesis (i.e., what is k)?  
k =   
20 
  
Correct: Your answer is correct. 
 
 
Is this value in the confidence interval?  
Yes 
No     
Correct: Your answer is correct.
 
Do we reject or fail to reject H0 based on this information? 
We fail to reject the null hypothesis since μ = 20 is not contained in this interval. 
We fail to reject the null hypothesis since μ = 20 is contained in this interval.     
We reject the null hypothesis since μ = 20 is not contained in this interval. 
We reject the null hypothesis since μ = 20 is contained in this interval. 
Correct: Your answer is correct.
 
(b) Using methods of this chapter, find the P-value for the hypothesis test. (Round your answer to four decimal places.)  
  
.0034 
  
Incorrect: Your answer is incorrect. 
  
 
 Answer by Boreal(15235)      (Show Source): 
You can  put this solution on YOUR website! First find the z-value for mean of 23 
z=(23-20)/6/sqrt (39)=3*sqrt(39)/6=3.1224 
p-value is 0.0018 
I found the upper interval probability, which is .0009.  I need to double that to get the lower interval probability as well, which is 0.0018 
  | 
 
  
 
 |   
 
 |