00:01
Okay, in this question, i'm going to use the software r to help us calculate the p values.
00:11
Okay, let's look at part a.
00:13
The alternative hypothesis is p1 greater than p2, and our z -star is equal to 2 .47.
00:29
So, our p -value is equal to the problem.
00:35
Of a random variable z greater than our value z star.
00:49
Note that this z is representing a random variable which is following standard normal distribution.
01:02
And this that star is just a value or a number we have.
01:09
And it is our test statistic.
01:19
Okay, let's start with r.
01:25
I'll use function copy norm and i will input our z star value because here this operator is greater than, so we're looking for the right tail.
01:44
So we need to indicate in the function that lower tell is equal to false.
01:57
And here we got our p value for part a, which is equal to 0 .0068.
02:09
Alright, and if we draw a graph, we'll have like this point to be our z star 2 .47, and our p value here is just the area for this right tail.
02:43
Okay, let's move to part b.
02:46
Part b, the h -a.
02:51
Is pa does not equal to pb and zsar is equal to negative 1 .33.
03:05
So because of this operators we're looking for the two -tailed part.
03:17
So we're interested in the area both right and left.
03:31
And the summation of this blue part is our p value...