Z Tests for One Mean: The p-value

An introduction to the concept of the p-value in a Z test. This video discusses the p-value in the context of a Z test for one mean, but the same logic holds for other tests.

Пікірлер: 97

  • @kushagrak4903
    @kushagrak49034 жыл бұрын

    It is so nicely explained that my dying words to my grandchildren is to learn stats from your channel.

  • @isaiascarriazo2375
    @isaiascarriazo2375 Жыл бұрын

    I hope that, wherever you are, your life is going great. You have no idea how helpful your videos are. Thank you so much for making them!

  • @jbstatistics
    @jbstatistics11 жыл бұрын

    You are very welcome! I'm glad to help out. I made these videos primarily with my own students in mind, but I very much like the fact that others around the world find them helpful as well. All the best on your exam.

  • @dhoomketu731

    @dhoomketu731

    5 жыл бұрын

    Thank you so much my friend. Your lectures have been of a great help to me. Love and Regards from India :)

  • @Nana19912
    @Nana1991210 жыл бұрын

    you are the best! I love the format, I love how clear you explain everything, I also love your voice!

  • @LSUfan4life97
    @LSUfan4life978 жыл бұрын

    Your videos are so well structured, they help me learn so much more than the videos my textbook supplies. Thank you for the great videos, I'll definitely recommend my friends who are taking stats next semester to your page!

  • @jbstatistics

    @jbstatistics

    8 жыл бұрын

    +LSUfan4life97 You're very welcome, and thanks for the compliments! Go Tigers!

  • @jaredmcc88
    @jaredmcc8811 жыл бұрын

    I was looking over my notes and through my textbook trying to figure out this stuff for hours. I watched this video and your video on the Rejection Region and I understand everything. Thank you so much!

  • @codingtheworld6747
    @codingtheworld67474 жыл бұрын

    You explained all what I didn't understand. Thank you!! It was the best video I've ever found in youtube about that subject.

  • @jbstatistics
    @jbstatistics11 жыл бұрын

    You're welcome! I'm glad you found it useful.

  • @GabrielSavageMusic
    @GabrielSavageMusic10 жыл бұрын

    I love the way you structure your video sequences. Very well thought out. Cheers, man.

  • @jbstatistics

    @jbstatistics

    10 жыл бұрын

    Thanks Gabriel, I very much appreciate the compliment and feedback. Cheers.

  • @jbstatistics
    @jbstatistics10 жыл бұрын

    Thanks oumawi, I'm glad you found this helpful.

  • @JasonZhang611
    @JasonZhang61110 жыл бұрын

    Thanks for all your help :) I've been struggling a little with my AP Statistics class but now thanks to your videos I'm getting better at it! If I were to have a suggestion to you, I would suggest that you also include a calculator portion for your videos, it will be very helpful! Thanks, and have a Merry Christmas :D

  • @katherinekroeger3505
    @katherinekroeger350510 жыл бұрын

    very very helpful...was so stressed about my online summer stats course and this video helped me so much... thank you!!

  • @AbdulwahabAlharbi-jk7fc
    @AbdulwahabAlharbi-jk7fc6 жыл бұрын

    The way you explain these concepts is astonishing . You speak clearly with thoughtful words and simple yet informative demonstration I'm so very glad that I found you and will definitely recommend you to my friends who are struggling with statistics as well Thank you kindly good sir

  • @jbstatistics

    @jbstatistics

    6 жыл бұрын

    Thank you so much for the very kind words!

  • @mbejvb
    @mbejvb11 жыл бұрын

    Great job!! One remark: in the last hypothesis z>= | 1.53 | must be | z | >=1.53 and it would be more clear if P-value= Pl (left P-value) + Pr (right P-value).

  • @yashpatil2536
    @yashpatil25366 жыл бұрын

    thank you JB statistics professionally I am pursuing engineering and we were introduced to statistics we were not familiar with but because of you cleared my concept and all went good. thank you 😊

  • @jbstatistics

    @jbstatistics

    6 жыл бұрын

    You are very welcome. I'm glad to be of help!

  • @uchithanileshanadharmarath7457
    @uchithanileshanadharmarath74576 жыл бұрын

    i had doubt in this lessons and now i'm ok with your very good explanation.

  • @jbstatistics

    @jbstatistics

    5 жыл бұрын

    I'm glad to be of help!

  • @joshthesarge
    @joshthesarge9 жыл бұрын

    Dude, I love your videos. You're a life saver!

  • @jbstatistics
    @jbstatistics11 жыл бұрын

    Thanks for the feedback. In that two-sided hypothesis I write that the p-value is 2 x P(Z >= |1.53|). This works in general for two-sided Z tests -- the p-value is double the area to the right of the absolute value of the test statistic. I don't feel that "P-value= Pl (left P-value) + Pr (right P-value)" would be clear at all. A p-value has a very specific meaning in statistics (not all areas are p-values). "P-value= Pl (left P-value) + Pr (right P-value)" doesn't really make sense. Cheers.

  • @realdvgarg

    @realdvgarg

    4 жыл бұрын

    fair enough.

  • @bajan13ken
    @bajan13ken11 жыл бұрын

    Thanks, it was a very helpful explanation of what a p-value actually is!

  • @ambertaranto526
    @ambertaranto5268 жыл бұрын

    You mention getting the P-value from a standard z table, or from software. Do you know the excel formula to obtain that number?

  • @jbstatistics
    @jbstatistics11 жыл бұрын

    You're welcome! I'm glad to be of help.

  • @siddharthadas86
    @siddharthadas867 жыл бұрын

    Hi Can you tell me what is the interpretation of a two sided test as you did in this video? Does it mean that if we reject H0 of mu=10 it means we will not expect 10 to be within the CI for alpha=0.05 in a 2 sided test?

  • @tekaaable
    @tekaaable6 жыл бұрын

    Your videos are the best!

  • @jbstatistics

    @jbstatistics

    6 жыл бұрын

    Thanks!

  • @Am00973
    @Am009737 жыл бұрын

    JB YOU'RE A BEAST!! SO GOOD

  • @jbstatistics

    @jbstatistics

    7 жыл бұрын

    Thanks again!

  • @clairerozier121
    @clairerozier1213 жыл бұрын

    Hi there, thank you for the great video. What do I do if my z= 8.94??

  • @meursault5861
    @meursault58613 жыл бұрын

    Can you use any standard deviation? Population or sample? In certain other lecture videos, they use sample standard deviation the same way.

  • @marxman1010
    @marxman10108 жыл бұрын

    When z = 1.53, Ha: u < u0, and the p-value = 0.937 in the video. But z = 1.53 means sample u is bigger than u0. If the Ha establishes, the u is smaller than u0. It looks impossible. With Ha: u < u0, something wrong?

  • @HerdingDogRescuer
    @HerdingDogRescuer8 жыл бұрын

    JB You lost me when you said 0.063 is on a table. I looked on my z table for 1.53 and got 0.4370. What table are you speaking of?

  • @jbstatistics

    @jbstatistics

    8 жыл бұрын

    +HerdingDogRescuer There are different table formats. Your version of the table (apparently) gives you the area between 0 and the z value that you look up. So if you look up 1.53, your table tells you that the area between 0 and 1.53 is 0.4370. Since the area to the right of 0 is 0.5, the area to the right of 1.53 must be 0.5 - 0.4370 = 0.063.

  • @HerdingDogRescuer

    @HerdingDogRescuer

    8 жыл бұрын

    jbstatistics Thank you!

  • @kabuljan2719
    @kabuljan27195 жыл бұрын

    Your videos are great. Thank you so much for explaining so well. Would it be possible to add more examples and applications ?

  • @jbstatistics

    @jbstatistics

    5 жыл бұрын

    I do have many videos in which I work through examples, including for this topic (kzread.info/dash/bejne/ip1nlcaAk72pcZM.html). I'll get back to video production soon, and many of the videos will have examples included.

  • @71Law
    @71Law10 күн бұрын

    Hi! I loved this video and it was very concise! I was just wondering for the last example at around 9:05 , why didnt we divide the significance level by 2? Isn't alpha basically the same thing as the confidence level, so if we do a two tailed test, wouldn't alpha be split amongst the two tails so it would be 0.025? Im just a bit confused, thanks!

  • @jbstatistics
    @jbstatistics11 жыл бұрын

    You're welcome!

  • @Dnjkgan
    @Dnjkgan7 жыл бұрын

    I watched three minutes and it suddenly clicked, thank you! Also If you're thinking about doing another revised version for any reason, get rid of the Comic Sans xox

  • @alandubackupchannel5201
    @alandubackupchannel52018 жыл бұрын

    Great video, nicely explained but just one question. Why did you prefer p-value over the rejection region approach? Isn't it the same (but doing it differently)? Because the p-value could still be really close to the critical values?

  • @narinpratap8790

    @narinpratap8790

    5 жыл бұрын

    Yes, the p-value can be just a little over the cut-off or a little less than the cut-off. This means that two completely different results can be obtained with a slight variation in the p-value. I'm sure he has his reasons to prefer this approach, I wish he'd explained it to us :(

  • @likithaliki7377
    @likithaliki73775 жыл бұрын

    I didn't understand how to find the p-value?

  • @shrayr.goswami1963
    @shrayr.goswami19633 жыл бұрын

    4:04 , will wen not find probability of z being less than -1.53 in this case?, so like shade the far left of the graph instead of what we have done here?

  • @lumiere2598

    @lumiere2598

    2 жыл бұрын

    I have the same question too

  • @crispentatendachisina6156
    @crispentatendachisina61564 жыл бұрын

    thank you so much this is very helpfull

  • @hibaturrehman6935
    @hibaturrehman69354 жыл бұрын

    shouldn't we divide alpha by 2 in last example because it is two sided?

  • @saparagus
    @saparagus Жыл бұрын

    A good video, but please do correct the typo about the absolute value mentioned by several people earlier: writing |1.53| is nonsensical, since that's just 1.53. The point is that in a two-tailed situation we want to consider |z| -- the absolute value of **Z**, of the statistic, and want that absolute value to be large enough to reject Ho.

  • @jbstatistics

    @jbstatistics

    Жыл бұрын

    It's not a typo, it's not a mistake, and there is nothing to correct. For a z test, the p-value is, in general, double the area to the right of the absolute value of the test statistic under the standard normal curve. Sure, we can write that in different ways if we want but this way is reasonable and compact. What was the value of the test statistic in that example? 1.53. What is the p-value? Double the area to the right of |1.53|. |1.53| is of course 1.53, as we obviously both know, but it's hardly "nonsensical" to write the absolute value of a quantity that happens to be positive. We're interested in that quantity's absolute value. That quantity happens to be positive in this particular instance. "we want to consider |z| -- the absolute value of **Z**, of the statistic," And what, pray tell, was the value of z in that example?

  • @JaikerzJake
    @JaikerzJake7 жыл бұрын

    now exactly how did you get that value for Z of 1.53? would it be something that is a given in a test question or problem? or is it something that needs to be calculated.....

  • @jbstatistics

    @jbstatistics

    7 жыл бұрын

    I just pulled that number out of thin air for the example. The value of Z might be given in a problem, or you might have to calculate it with the formula.

  • @al-anoud-123
    @al-anoud-1237 жыл бұрын

    I could not find a video about 2 tail hypothesis testing so I will post my question here :) what standard deviation should I use when doing a hypothesis test ? the standard deviation of my population or my sample ?! I am really confused Thanks a lot

  • @jbstatistics

    @jbstatistics

    7 жыл бұрын

    If you wish to carry out a hypothesis test on the population mean, and you (somehow) had access to the population standard deviation, you would use that in the test statistic. But the population standard deviation is almost never known, so we almost always use the sample standard deviation.

  • @LindaLinda-ls2fd
    @LindaLinda-ls2fd7 жыл бұрын

    This didnt answer my question. When questions asking us to construct one-sided hypo testing, we are never given z, we are given the level of significance. I wanted to know how to find z given the the level of significance e.g 5 percent for a one-sided hypo testing.

  • @bosedengoziadeleye4577
    @bosedengoziadeleye457710 жыл бұрын

    JB, how can say I thank you for this video!!!. You are indeed a TEACHER I've always struggled with how to compute this you made this so simple and explicit I could do this with E-A-S-E! I have simply made your video my webpage.....it's so explicit.....thank you! But do you happen to have videos on interpreting regression data using Stata?

  • @jbstatistics

    @jbstatistics

    10 жыл бұрын

    Hi Ngozi. You are very welcome, and thank you for the compliments! I'm glad to be of help. I don't currently have any videos using Stata. I do have some videos on simple linear regression, but none on multiple regression (yet). All the best!

  • @martinpalazov8400
    @martinpalazov84005 жыл бұрын

    Could you please tell me what function do you type in R in order to calculate the p-value in the examples? Thank you!

  • @jbstatistics

    @jbstatistics

    5 жыл бұрын

    pnorm(x) yields the area to the left of x under the standard normal curve. So, in the example in this video, where the test statistic is z = 1.53: For a left tailed test (H_a: mu For a right tailed test (H_a: mu > mu_0): 1-pnorm(1.53) yields the p-value. For a two-tailed test (H_a: mu != mu_0): (1-pnorm(1.53))*2 yields the p-value.

  • @martinpalazov8400

    @martinpalazov8400

    5 жыл бұрын

    @@jbstatistics Thanks!

  • @EvilSapphireR
    @EvilSapphireR2 жыл бұрын

    How is this different from the rejection region approach exactly? In rejection region, we basically calculate cutoff value of Z from the significance probability alpha, and then check if our obtained Xbar is outside that cutoff or not. P value is just calculating probability of the obtained Xbar, and checking if that is less than the significant probability. So the exact same process, just the other way around.

  • @jbstatistics

    @jbstatistics

    2 жыл бұрын

    If you’re carrying out a test at a fixed level of significance, and completing ignoring the p-value other than the binary less than or equal to / not less than or equal to, then the methods are exactly the same. Many argue, as I do, that that’s a silly way to carry out a test in the vast majority of practical situations. In most situations it’s far better to report the p-value and let the reader make up their own mind.

  • @EvilSapphireR

    @EvilSapphireR

    2 жыл бұрын

    @@jbstatistics Yup got it. The P value gives more information to the reader of the research instead of taking the researcher's decision as gospel. Your preferred approach makes a lot of sense.

  • @wronski11
    @wronski1110 жыл бұрын

    You mentioned something about a text, perhaps textbook in your videos, where can I find it? In case you have no lecture notes accompanying the videos, can you recommend some textbook? And now concerning the video, this p-value stuff was quite a hot topic due to the Higgs experiments at CERN. Back then 5 sigma was reported, so it should be something like, measuring the mass many times and comparing it to the theoretical value, thereby computing the z score and the p value. In general how would you get your mean \mu in a real experiment. Perhaps you always assume some value, after all we are testing the null hypothesis.

  • @jbstatistics

    @jbstatistics

    10 жыл бұрын

    The text that I refer to is the free pdf text that I supply to my students. I may very well make it available at some point. I have no interest in trying to sell yet another $100+ stats text. When I get a few more details completed, I may make it more widely available. (Possibly having the relevant sections posted with the videos, or something to that effect.) I have only a passing familiarity with CERN and the Higgs boson, etc., so I may possibly be a bit off on this next bit. But I imagine that they have some theoretical value based on the assumption that it did not exist, then the resulting data was 5 sigmas out (5+ standard deviations away from the theoretical mean, assuming the Higgs boson did not exist). This would be a highly unlikely event if the Higgs boson did not exist, thereby giving strong evidence of its existence. As to how they figure out the theoretical value assuming it does not exist, that's far beyond my physics competence level. Cheers.

  • @wronski11

    @wronski11

    10 жыл бұрын

    jbstatistics Well the propbability for producing Higgs boson is calculated from a QM amplitude. QM is a superset of probability theory, where the probability for a certain event to happen is given by the mod-square of a complex quantity. But how this is exactly done requires knowledge in QFT. Setting up the experiment itself is a multi billion euro initiative. Unfortunately (actually thank god) I am not an experimentalist so I can't comment on this topic.

  • @dma6481
    @dma64815 жыл бұрын

    I spent like 5 hours trying to understand this chapter from the prof notes and it was useless. Finally I found those videos that made everything clear.. thank you for saving our asses

  • @MrJurreeej
    @MrJurreeej8 жыл бұрын

    I'm too dumb for this

  • @firasismail69

    @firasismail69

    4 жыл бұрын

    lmaooo

  • @ahmedmushtaque5439
    @ahmedmushtaque54397 жыл бұрын

    Thank u JB

  • @TreBlass
    @TreBlass7 жыл бұрын

    around from 3:30, the z value is 1.53, and you said we will REJECT the NULL HYPOTHESIS if the p-value is behind 1.53, i.e., the bigger area, you shaded..how is it possible, as you already said that if we are precisely at 0, we will not reject the Null Hypothesis as it will be a standard Normal Distribution, and 0 is the subset of Z

  • @jbstatistics

    @jbstatistics

    7 жыл бұрын

    I'm having trouble following your comment. I definitely didn't say anything like "you said we will REJECT the NULL HYPOTHESIS if the p-value is behind 1.53". I explain the reason we double the tail area in two-sided Z tests, to the best of my abilities, starting at 5:10 or so.

  • @TreBlass

    @TreBlass

    7 жыл бұрын

    jbstatistics my second doubt was just a question on the mathematical notation you used, I got what you did there. I'm still feeling problem for the first doubt I had.. I'm not able to explain it properly, but till where I understood your videos, if we accept the area behind 1.53, we don't reject the null hypothesis, because it's in the region of the standard normal distribution, (0

  • @ontreprenor
    @ontreprenor2 жыл бұрын

    Isn't it same as rejection region approach?

  • @jbstatistics

    @jbstatistics

    2 жыл бұрын

    It's the same conclusion if we are carrying out a test at a fixed alpha level, yes. But we're not always carrying out a test at a fixed alpha level, for reasons I discuss elsewhere (e.g. reaching the exact same conclusions for a p-value of 0.04999 and 0.000000000000000000000000000000002 is silly). Reporting the p-value is informative.

  • @chandinipurohit3296
    @chandinipurohit32966 жыл бұрын

    Thanx Sir, awesome and so clear and easy to grab explanation, I just wanted to ask from where the value of Z=-2.12 came at 8.36 timing???

  • @jbstatistics

    @jbstatistics

    6 жыл бұрын

    That was just an example of a possible value of the Z test statistic.

  • @chandinipurohit3296

    @chandinipurohit3296

    6 жыл бұрын

    jbstatistics : oo thanx sir 👍

  • @awfan221

    @awfan221

    4 жыл бұрын

    Just imagine he used sample mean (X bar) - hypothesized mean value (Pop mean naught) / (true Standard deviation/square root of the sample number n) to arrive at the Z stat.

  • @kmishy
    @kmishy3 жыл бұрын

    3:27 This is a case of left tailed test. So critical value should be negative,shouldn't?

  • @jbstatistics

    @jbstatistics

    3 жыл бұрын

    There is no critical value given there. The value of the test statistic is 1.53. The value of the z test statistic can be anything.

  • @kmishy

    @kmishy

    3 жыл бұрын

    @@jbstatistics Thanks sir. From this lecture, I wrote the definition of P-value as: The area under the standard normal PDF curve (probability) corresponding to calculated z-value. Is this right?

  • @abhinavsrivastava1498
    @abhinavsrivastava14986 жыл бұрын

    EXCELLENT SIR

  • @jbstatistics

    @jbstatistics

    6 жыл бұрын

    Thanks!

  • @tommymerelte4399
    @tommymerelte43994 жыл бұрын

    I'm a bit stuck at the a-level of significance part. I don't understand why p-value must be smaller than a.

  • @Aim4sixmeals

    @Aim4sixmeals

    3 жыл бұрын

    Its in the rejection area

  • @padraiggluck5633
    @padraiggluck56334 жыл бұрын

    P(|z| >= 1.53) seems more natural since z= -z >= 1.53.

  • @jbstatistics

    @jbstatistics

    4 жыл бұрын

    That won't work if the value of the test statistic is negative.

  • @SNPaul-bi2wu
    @SNPaul-bi2wu7 жыл бұрын

    Can I have those slides of your video,It would be very helpful :)

  • @jbstatistics

    @jbstatistics

    7 жыл бұрын

    Thanks for the suggestion. I'll make them available at some point, but it may take me some time to get to it.

  • @SNPaul-bi2wu

    @SNPaul-bi2wu

    7 жыл бұрын

    Ok ,Thanks man :)

  • @RichardGreco
    @RichardGreco10 жыл бұрын

    The alpha value is the error rate of making the wrong decision. If we changed the alpha value in the video to be 0.01, p would not be less than alpha and we would accept the null hypothesis, but we still have strong evidence against it and a more stringent error rate (i.e. 0.01).

  • @ElizaberthUndEugen
    @ElizaberthUndEugen4 жыл бұрын

    |1.53| is always 1.53. This makes no sense. Did you mean P(|z| >= 1.53)?

  • @saparagus

    @saparagus

    Жыл бұрын

    you are right. i don't get JB's responses to this same question asked by several people above. |1.53| is just 1.53, which is nonsensical. the whole point is that we want to look at the absolute value of Z, and want **THAT** to be large enough before we can reject Ho.