Hypothesis tests on one mean: t test or z test?

  Рет қаралды 160,231

jbstatistics

jbstatistics

11 жыл бұрын

A look at at what influences the choice of the t test or z test in one-sample hypothesis tests on the population mean mu. I work through an example of a t test, and compare the p-value of the t test to would have been found had we (incorrectly) used a z test.

Пікірлер: 63
@friedricetrash8044
@friedricetrash8044 3 жыл бұрын
this man is the only reason I am not gonna pass/fail my stats class
@greyveil5343
@greyveil5343 10 жыл бұрын
ur a life saver, i was trying so hard to find out the true rules of using t and z values
@jbstatistics
@jbstatistics 10 жыл бұрын
I'm glad to be of help.
@Riasat202
@Riasat202 10 жыл бұрын
You are an awesome teacher. Gifted I would say! :)
@RECKANOWHERE
@RECKANOWHERE 8 жыл бұрын
Excellent explanation. Thanks for posting.
@jbstatistics
@jbstatistics 11 жыл бұрын
Thanks for the compliment!
@jbstatistics
@jbstatistics 11 жыл бұрын
Thanks! I do everything on a Mac. The underlying presentation is done in Latex/Beamer, and I record and edit in Screenflow. It doesn't take too much to get up and running at first. But I've definitely learned a lot as I've gone along, and refined things quite a bit. Best of luck!
@thatoyaonekedumetse118
@thatoyaonekedumetse118 9 жыл бұрын
thank you very much, it was a bit confusing when i thought about the sample size, but thanks for clearing it up
@superturbomegasonic
@superturbomegasonic 10 жыл бұрын
wow, i understand it now. thank you very much!
@TaliYD
@TaliYD 10 жыл бұрын
Thank you so much for making this video!
@jbstatistics
@jbstatistics 10 жыл бұрын
You are very welcome.
@PrinCcesSBee
@PrinCcesSBee 9 жыл бұрын
How did you get the p-value?
@linneajohansson3796
@linneajohansson3796 3 жыл бұрын
Thank you so much for this!
@xuelei5710
@xuelei5710 8 жыл бұрын
thx a lot for the explaination, but i got a question. can i substitue μ0 for xbar when calculating s? (since i have made the hypothesis that μ0 is the mean)
@statsteacher
@statsteacher 11 жыл бұрын
Very good video! How do you make your videos? It is not PowerPoint is it? I teach at a college and will be teaching an online course and would like to make videos like this one.
@alifza1
@alifza1 10 жыл бұрын
thank you so much, you have helped me for the final exam .. haha
@Princeroyc
@Princeroyc 5 жыл бұрын
HELP?
@nusibajaffar7921
@nusibajaffar7921 7 жыл бұрын
i need more about null hypothsis
@yanyanng7591
@yanyanng7591 6 жыл бұрын
Thank you so much for making this video. Dun think I am ever gonna figure out my biostatistics notes without your help
@jbstatistics
@jbstatistics 5 жыл бұрын
I'm glad to be of help!
@Commando303X
@Commando303X 5 жыл бұрын
5.7% versus 4.9% - not insignificant, though, conceptually, a small difference. Thank you for sharing this video - I found it to be very helpful.
@jbstatistics
@jbstatistics 5 жыл бұрын
I'm glad to be of help. The difference is often small, but I don't think that's a valid reason to have that error in there :)
@bethanianoriega2676
@bethanianoriega2676 4 жыл бұрын
Great explanation but how do I calculate the P-value on TI-84?
@coolgreensnake
@coolgreensnake 10 жыл бұрын
thx for ur effort man we really appreciate it, but i have a question about the sample size required for the hypothesis test and if there is a formula for every case to determine it?
@jbstatistics
@jbstatistics 10 жыл бұрын
I'm not sure what you mean by "the sample size required for the hypothesis test". Conceivably we could carry out a hypothesis test on a mean with a sample size of 1 (if we knew the population variance sigma^2.) If you're asking about calculating the sample size to achieve a given power of the test, then I don't have a video that looks at that directly. (I have videos that look at the relationship between sample size and power, and I have a video outlining how to calculate the sample size for a given margin of error for a confidence interval.)
@coolgreensnake
@coolgreensnake 10 жыл бұрын
jbstatistics i got the whole picture now , thank u for ur reply
@rahmaalghafri8057
@rahmaalghafri8057 5 жыл бұрын
Thank you so much .
@jbstatistics
@jbstatistics 5 жыл бұрын
You are very welcome!
@BNT05
@BNT05 2 ай бұрын
First of all, thank you so much for sharing knowledge, for free in your videos! I should say, I always enjoy and learn from your videos! However, I have a few questions: 1. I couldn't see the significant level to set up your rejection area in the question. Which one did you use here? 2. Assuming you have chosen the 'usual/traditional' one of 5% (0.05), how did you come to reject Ho based on P-value (0.568) you obtained in your calculations? (When P-value is larger than significant level, your t-statistics tend to fall in "fail to reject area of Ho" that is: Ho= hypothesized mean). I would appreciate for any insights from anyone here. Thank you!
@jbstatistics
@jbstatistics 2 ай бұрын
As a general rule I don't use the rejection region approach, even when carrying out a test at a fixed significance level. I think that since the p-value approach leads to the exact same conclusion at a fixed significance level, but gives you the p-value, and the p-value is typically reported by software, that's the better path. Here I was illustrating the difference between t and z tests, in inference for the mean of a normally distributed population. I wasn't getting into the details of hypothesis testing beyond that. It was a fabricated example to show there can be meaningful differences between the t and z, even when the sample size is not all that small. But to address the big picture idea of what you're asking here, in the vast majority of hypothesis testing scenarios no actual decision is being made. Sometimes there is, and if a decision is being made solely on the results of the test (e.g. tossing an explanatory variable out of a multiple regression model in a backwards elimination procedure, say), and so then we need a rule. In the vast majority of cases, no actual decision is being made, and I think it simply doesn't make sense to impose an arbitrary decision rule in spots where no decision is being made. Imposing a binary decision on what is in reality a continuum , where no binary decision is necessary or needed, is not the way to go. Under the assumptions of the test in this video, if H_0 is true then the p-value has a uniform distribution on (0,1). We'd see a p-value of 0.568 or smaller more than half the time if the null is true, so there's no evidence whatsoever against H_0. There doesn't need to be an arbitrary decision rule to come to that conclusion. Much of this is opinion, and we could debate the nuances of hypothesis testing for the next century, as has been done for 1+ centuries. But I'm pretty sure that on my deathbed I'll still think that's a crime against science that everybody got fixated on acting like we're making a reject/don't reject H_0 decision at 0.05 as the default way to go about things.
@BNT05
@BNT05 2 ай бұрын
@jbstatistics I appreciate you taking the time to explain that to me. What a selfless character you have! Respect! I believe that, just like your other videos, this explanation will help many people, not just myself. Thank you again, and keep up the wonderful work! 👏
@jbstatistics
@jbstatistics 2 ай бұрын
@@BNT05 Thanks for the kind words! I may not be selfless, but I do truly want to help people learn :)
@BNT05
@BNT05 2 ай бұрын
@@jbstatistics And you manage to do magnificently, imo: 😊
@ICOD73
@ICOD73 11 жыл бұрын
U should get more views and more popularity
@Jack_Omush
@Jack_Omush 2 жыл бұрын
Does one need a level of significance (alpha) to get a p-value from the table? How are you getting the 0.0568 from the tables?
@Riasat202
@Riasat202 10 жыл бұрын
Wow that is a very strong statement. But when n > 30, there isn't THAT much harm that could be done by using the normal distribution. The t table is a pain in the ass to use as the areas are limited. Probably why people try not to use it unless they absolutely have to.
@ignacio-urbina
@ignacio-urbina 2 күн бұрын
I agree. If your sample is large (~1000) just go with z
@worship850
@worship850 8 жыл бұрын
we were taught that if sample size exceeds 30, we should use the z-score... can you pls expatiate on this pls...tanx
@jbstatistics
@jbstatistics 8 жыл бұрын
I feel that I do address this in detail in this video. Starting at around 2:20, I explain that some sources use the n > 30 rule, I say that I don't agree with this approach, and then I illustrate why I feel it's not a great approach. Was there some specific part of that discussion that you weren't following or found confusing?
@worship850
@worship850 8 жыл бұрын
nope, got you right, does that mean if i use a z test id still arrive at the same answer....im asking cos i have exams tomorrow, hoping you re not offended by my request
@jbstatistics
@jbstatistics 8 жыл бұрын
If you're trying to get the highest mark on a test, do whatever your professor tells you to do. I don't know how your prof designs tests, or what he or she considers right or wrong. The reality of the situation is that if you use a z test when you should be using t, even for a larger sample size, then the p-value you find will be a little off. Cheers.
@edmundoa79
@edmundoa79 9 жыл бұрын
Thank you for this explanation. What is the best way to contact you? Thank you once again.
@richardl.4374
@richardl.4374 3 жыл бұрын
Pls send link for the t table that you use
@sirl1364
@sirl1364 3 жыл бұрын
Can you send the t table you used to find the p value
@scottsmith4006
@scottsmith4006 3 жыл бұрын
> Be a Stats professor > Students asking for suggested online videos for clearer explanations about which distribution to use in word problems > Not sure what's unclear but okay > Tons of videos where they say to use z-test any time n >30 > UGGGGGGHHHHH > Find this video, go to 2:21 > THANK YOU!!!
@jbstatistics
@jbstatistics 3 жыл бұрын
You are very welcome Scott! As you can probably tell from how I phrase it in this video, the "n > 30" thing that many focus on makes me angry/sad. Cheers.
@richardl.4374
@richardl.4374 3 жыл бұрын
Where do you get the p value ?
@jamesxu4972
@jamesxu4972 5 жыл бұрын
So fucking damn helpful!
@irafundafunda2898
@irafundafunda2898 8 ай бұрын
So if we can't use the sample size to determine whether to use a t Statistic or Z statistic then what should we use? Can't find this in your follow up video
@jbstatistics
@jbstatistics 8 ай бұрын
The entire purpose of this video was to discuss that. That's what this video is about. I have a detailed discussion about it here. Then I say the decision shouldn't be based on sample size. It should be based on the notion that I discuss in the video (whether the population standard deviation is known (almost never), or whether it is estimated from sample data (almost always)).
@irafundafunda2898
@irafundafunda2898 8 ай бұрын
I apologize I guess I didn't catch that in the video. How can we determine whether to use z-statistic or t-statistic if it isnʼt clearly stated in a question what the population standard deviation is?
@jbstatistics
@jbstatistics 8 ай бұрын
@@irafundafunda2898 In my videos I discuss the reality of the situation, and not various ways of answering questions depending on the wording. How best to answer a question depends on its precise wording, and also the beliefs of the questioner and grader. All that said, your question doesn't make sense and is not answerable as stated. If you mean instead "how would we tell if the standard deviation given in a question is from the population or from the sample?" then that depends on the wording of the question and on the beliefs of the person who wrote it.
@irafundafunda2898
@irafundafunda2898 8 ай бұрын
@@jbstatisticsOkay I see.
@davepennock2235
@davepennock2235 8 жыл бұрын
What if the Sample standard deviation is not known?
@jbstatistics
@jbstatistics 8 жыл бұрын
+Dave Pennock The sample standard deviation can be calculated from sample data. If there is no sample data, then you wouldn't have any information and you couldn't carry out a test.
@paycation3966
@paycation3966 2 жыл бұрын
So basically z-test is useless? Because normally we don't know the std of the population?
@ianopande8099
@ianopande8099 4 жыл бұрын
4:38
@skateata1
@skateata1 7 жыл бұрын
anyone else having trouble with the audio?
@arniethebuilder8422
@arniethebuilder8422 7 жыл бұрын
Kelsea T no
@Princeroyc
@Princeroyc 5 жыл бұрын
HELP
@solar4947
@solar4947 4 жыл бұрын
i hate stats
@jab376
@jab376 4 жыл бұрын
Too many jargons but i got it with repetition and other similar videos.
t Tests for One Mean: Introduction
13:46
jbstatistics
Рет қаралды 159 М.
Z Tests for One Mean:  The p-value
10:01
jbstatistics
Рет қаралды 173 М.
Эффект Карбонаро и нестандартная коробка
01:00
История одного вокалиста
Рет қаралды 10 МЛН
КАК ДУМАЕТЕ КТО ВЫЙГРАЕТ😂
00:29
МЯТНАЯ ФАНТА
Рет қаралды 10 МЛН
HOW TO SET CUSTOMER NAME ON PRINT IN CASH SALES IN TALLY PRIME
7:19
Commerce Hub Udaipur
Рет қаралды 177
T-test, ANOVA and Chi Squared test made easy.
15:07
Global Health with Greg Martin
Рет қаралды 283 М.
Statistics 101: Single Sample Hypothesis t-test Concepts
25:41
Brandon Foltz
Рет қаралды 377 М.
Confidence Intervals for One Mean:  Sigma Not Known (t Method)
9:46
jbstatistics
Рет қаралды 164 М.
Z Tests for One Mean:  The Rejection Region Approach
10:23
jbstatistics
Рет қаралды 166 М.
t-Test - Full Course - Everything you need to know
16:14
DATAtab
Рет қаралды 251 М.
Intro to Confidence Intervals for One Mean (Sigma Known)
10:36
jbstatistics
Рет қаралды 363 М.
Hypothesis Testing - Z test & T test
14:14
Pax Academy
Рет қаралды 91 М.
P-values and significance tests | AP Statistics | Khan Academy
7:58