Two-sample t test for difference of means | AP Statistics | Khan Academy

  Рет қаралды 514,438

Khan Academy

Khan Academy

Күн бұрын

Courses on Khan Academy are always 100% free. Start practicing-and saving your progress-now: www.khanacadem...
Hypothesis test for the difference between means of two populations.
View more lessons or practice this subject at www.khanacademy...
AP Statistics on Khan Academy: Meet one of our writers for AP¨_ Statistics, Jeff. A former high school teacher for 10 years in Kalamazoo, Michigan, Jeff taught Algebra 1, Geometry, Algebra 2, Introductory Statistics, and AP¨_ Statistics. Today he's hard at work creating new exercises and articles for AP¨_ Statistics.
Khan Academy is a nonprofit organization with the mission of providing a free, world-class education for anyone, anywhere. We offer quizzes, questions, instructional videos, and articles on a range of academic subjects, including math, biology, chemistry, physics, history, economics, finance, grammar, preschool learning, and more. We provide teachers with tools and data so they can help their students develop the skills, habits, and mindsets for success in school and beyond. Khan Academy has been translated into dozens of languages, and 15 million people around the globe learn on Khan Academy every month. As a 501(c)(3) nonprofit organization, we would love your help! Donate or volunteer today!
Donate here: www.khanacadem...
Volunteer here: www.khanacadem...

Пікірлер: 121
@125dudeman
@125dudeman 4 жыл бұрын
tough for the donations they want, I really wish I could but most people watching are broke college students :( one day ill get you guys back if you're still around.
@Tazerbob
@Tazerbob 7 ай бұрын
surely man! 👏
@blessingobiora3983
@blessingobiora3983 6 жыл бұрын
Yours is more comprehensive than the ones I av watched. Thank you
@3607458
@3607458 4 жыл бұрын
Two-Sample T-Test and CI Sample N Mean StDev SE Mean 1 22 1.300 0.500 0.11 2 24 1.600 0.300 0.061 Difference = μ (1) - μ (2) Estimate for difference: -0.300 95% CI for difference: (-0.550, -0.050) T-Test of difference = 0 (vs ≠): T-Value = -2.44 P-Value = 0.020 DF = 33
@johnnyroc
@johnnyroc 4 жыл бұрын
why are you reading the comments. back to studying.
@aaryanjain312
@aaryanjain312 3 жыл бұрын
@@kriti5276 can u do both tho
@vainca3192
@vainca3192 3 жыл бұрын
Why did you click on answers?!
@aaryanjain312
@aaryanjain312 3 жыл бұрын
@@kriti5276 what a flex!!! 😎
@aaryanjain312
@aaryanjain312 3 жыл бұрын
@@vainca3192 what? Clicking on answers is what you are supposed to do as a highschool student 😎
@aaryanjain312
@aaryanjain312 3 жыл бұрын
@@vainca3192 then like what
@Levelworm
@Levelworm 4 жыл бұрын
One caveat I found out about pretty much all STAT tutorials and textbooks is that there is few real-life examples, especially business ones. It's either something like this that you can immediately put numbers into the formula, or something that is related to medical experiments. What I think that is really needed is how to APPLY that knowledge to a usual business question.
@MakeMultiplayerGames
@MakeMultiplayerGames 4 жыл бұрын
This is needed in some user research experiments, which is used to validate business hypothesis, e.g. in MVT or A/B testing. Two versions of a landing page / feature/ logo are tested on samples of users, and you want to compare how those two versions score in X property to keep the better one.
@zoezhang7661
@zoezhang7661 4 жыл бұрын
Hi, please may I ask what app are you using as for the calculator?
@oudviola
@oudviola 2 жыл бұрын
A helpful tutorial. However, I ran two different online t-tests with these mean, std and Ns, and both gave the same result which however is slightly different than the calculation here. They both gave a two-tailed p-value of 0.0165. Graphpad also gives the degrees of freedom, which was 44. That's pretty different than the estimated 22 (or 24?) here, maybe that is the reason. But the t-statistic was also a bit different, 2.4919.
@sohamsantra7548
@sohamsantra7548 Жыл бұрын
I got the same value for the T statistic. I think he used exact values, that's why he's getting a different answer upon rounding.
@sixtysixx3933
@sixtysixx3933 5 жыл бұрын
I liked that you have used an uneven size for the two samples. Learned something new today xd
@minhquanduong7121
@minhquanduong7121 4 жыл бұрын
Felix Carpio is this the same thing as the welch’s t test?
@ilirose6456
@ilirose6456 Жыл бұрын
is there a way to calculate the p value by hand without the calculator function? We are only allowed to use a very basic calculator that does not have tcdf in our exam. Thanks for the help!
@grandpazhongli3657
@grandpazhongli3657 3 жыл бұрын
so will i arrive at the same answer if i use the welch t test?
@steverensen2551
@steverensen2551 2 жыл бұрын
I guess just looking at the mean versus the standard deviation you went with the unequal variance t-test. Otherwise we would have to conduct a F-test to determine if a pooled estimate could be used. I wish you mentioned something on this.
@DmanGaming
@DmanGaming 2 жыл бұрын
bruh if you know that much then why does it matter?
@jenjp7853
@jenjp7853 11 ай бұрын
because I was confused and @steverensen2551 explained why I was confused, the comment was helpful@@DmanGaming
@alivegaming438
@alivegaming438 3 жыл бұрын
When your University professor just links this video for online class instead of actually teaching it himself
@veerakanneboina8086
@veerakanneboina8086 6 ай бұрын
For a two samples t test if it is not given whether the population variances are not equal or not. Then which formula do I have to use to find degrees of freedom
@bjlenny3889
@bjlenny3889 7 ай бұрын
How do you calculate the minimum sample size you need to compare 2 sets of data?
@WirTrivedi
@WirTrivedi 3 ай бұрын
I can say he is a very good artist please reply ☺️
@aroobashafique1921
@aroobashafique1921 10 ай бұрын
I have data of two rivers. River a and river b. The data is of before and after the application of the chemical. One sample set is bigger than the other. I need to know in which sample the chemical was more successful in removing parasite than the other. Which test should i use. ? Please please please guide
@mastermax7777
@mastermax7777 3 жыл бұрын
Okay I understand the steps, But I don't understand some things like how do we determine the significance level? (Where did you get 0.05? out of thin air?)
@bjlenny3889
@bjlenny3889 7 ай бұрын
from my understanding 0.05 is the default p-value for this sort of test. This represents 2 standard deviations (95% probability). However you could theoretically use any p-value.
@veerakanneboina8086
@veerakanneboina8086 10 ай бұрын
What if I calculate the t value as XB-XA. Will that make difference in conclusion
@micahsnow346
@micahsnow346 3 жыл бұрын
There is a way to reject/accept the null hypothesis based only on confidence intervals instead of the p-value, right?
@d2xr
@d2xr 2 жыл бұрын
Yes
@mihai.ciorobita
@mihai.ciorobita 3 жыл бұрын
Sir, what do I do if I want to test mean(A) > mean(B) ?
@__evanhart5320
@__evanhart5320 3 жыл бұрын
based on the laws, why are you not pooling the variances
@qaisarkhan1326
@qaisarkhan1326 4 жыл бұрын
Where we use pooled Estimate of standard deviance (Sp)
@VK-sp4gv
@VK-sp4gv 3 жыл бұрын
No, he doesn't use a pooled estimate, but he doesn't explain why.
@roger2bro
@roger2bro 4 жыл бұрын
Thank you
@xiebustillo3521
@xiebustillo3521 4 жыл бұрын
What type of calculation app was used?
@FrankRomerophoto
@FrankRomerophoto Жыл бұрын
Where can I get the TI-84 Plus CE in software? Thanks
@vanessajaime7538
@vanessajaime7538 4 жыл бұрын
i’m just trying to look for one that isn’t the conservative approach for the df because my teacher doesn’t use that🤦🏽‍♀️
@lumpi806
@lumpi806 4 жыл бұрын
Interesting video, but you don't explain if you assume the variance are equal or NOT. You don't axplain if you use the welch method, or NOT. And your formula for the degree of freedom is curious.
@qwertytwerqy2440
@qwertytwerqy2440 Жыл бұрын
True, watching the video left me with more questions than before I watched it.
@shanggao9970
@shanggao9970 3 жыл бұрын
Thank you! Super helpful! A quick question: why is the df = min(sample size)-1 ?
@michaellovin3522
@michaellovin3522 2 жыл бұрын
Good question. Though you have two samples, you are comparing their means. Therefore, this is a single variable analysis and degrees of freedom is n - 1. Now recall that a chain is only as strong as its weakest link, a group of runners that must run as a group is only as fast as its slowest runner, and a statistical test is only as strong as its weakest test. In statistics, more data is better. Therefore, you must adopt the lower of the two values as your basis for degrees of freedom.
@vincenttsai5344
@vincenttsai5344 2 жыл бұрын
I got a question, what if the two sample number is very different? ex: N1 = 24 N2 = 2500 the DF still min(sample size)-1, in this case, DF = 24-1 = 23 ?
@robertmei8881
@robertmei8881 2 жыл бұрын
I checked wiki, it should be N1 -1+ N2 -1 for the independent two sample test
@juliusceasarhortelano7020
@juliusceasarhortelano7020 5 жыл бұрын
Hi, are you not going to take the absolute value of the differences of the two means (numerator)?
@mariselcantiga1860
@mariselcantiga1860 3 жыл бұрын
What app did u use in solving the p-value?
@TilmanVogel
@TilmanVogel 9 ай бұрын
1:26 Why are you talking about the alternative hypothesis after already having set the null-hypothesis? If that one is set, you don't have a choice anymore: It's just the complementary hypothesis that the null-hypothesis does not hold, so if you want to discuss the hypothesis, do so when you fix the first.
@adasun1777
@adasun1777 6 ай бұрын
I think the df should be 44, am I wrong?
@harrisontichenor2092
@harrisontichenor2092 2 жыл бұрын
Doesn't the test statistic and degrees of freedom depend on whether variance is known or unknown? And then there are two more approaches if unknown, assume variances equal, assume variances not equal
@fangmin2890
@fangmin2890 4 жыл бұрын
what is the equation for p-value calculation? (can this be done in excel?), thanks
@prasadkedar30
@prasadkedar30 4 жыл бұрын
for calculating p-value in excel with t-value known ...you can use the function T.DIST(tvalue, n-1, TRUE). this will give the p-value for left tailed test. for right tailled test, you can subtract this value from 1. similarly for two tailed test, use 2* the pvalue obtained by using the function.
@d2xr
@d2xr 2 жыл бұрын
So this is like a shortcut?
@mccnlightx4495
@mccnlightx4495 2 жыл бұрын
KAITO MOMOTA LUMINARY OF THE STARS 🌟 ‼️ is growing tomato plants atm
@brandonwarren5644
@brandonwarren5644 3 жыл бұрын
Is there an online calculator like the one he is using?
@missjunanne87
@missjunanne87 3 жыл бұрын
best statistic calculator online
@missjunanne87
@missjunanne87 3 жыл бұрын
You will just encode the values then it will give you answers
@temmygrace2786
@temmygrace2786 3 жыл бұрын
My question is how did you get the value for X1 and X2, S1 and S2. I'm using data from fresh sample
@karannchew2534
@karannchew2534 3 жыл бұрын
2:04 std dev of the sampling distribution of the differences of the sample means
@felixmugire6583
@felixmugire6583 3 жыл бұрын
Degree of freedom = n1+n2 -2
@dol2han
@dol2han 2 жыл бұрын
I think so too
@ayashabeg911
@ayashabeg911 4 жыл бұрын
If we find significant by applying t statistic between two groups ,then how do we decide that the significant difference is recorded in which group as compared other group?
@Patwardhan622
@Patwardhan622 5 жыл бұрын
As sample size are large so I should use z test????
@lanasaleh6569
@lanasaleh6569 5 жыл бұрын
Yes And must n1=n2
@Princess-zu9eo
@Princess-zu9eo 4 жыл бұрын
Yes if the sample size in above 30, you should use z test
@mariselcantiga1860
@mariselcantiga1860 3 жыл бұрын
So i should use z test? Since my sample size is 102
@anisabhita
@anisabhita 4 жыл бұрын
what if the number of sample is bigger than 30 (large sample)? should i still using this formula?
@oooooo-kr4ep
@oooooo-kr4ep 3 жыл бұрын
One way ANOVA test: between groups sum aquare = 66636.83; df= 2; mean square%=33318.41; f= 11.710 and sig=.000. Within groups = 189577.87; df=669; mean square= 283.37 what is the answer?
@satyamgupta4808
@satyamgupta4808 Жыл бұрын
very nice video
@randomplay4623
@randomplay4623 Жыл бұрын
Why you use t test? The summ of the sample wize is greater than 30/ n>30, you should use z-test instead 9f t test
@muhaha21
@muhaha21 5 жыл бұрын
so basically you are assuming that the groups variances are not equal right ?
@aurangzebrathore5001
@aurangzebrathore5001 5 жыл бұрын
There is no assumption. It is stated that the two have different standard deviations.
@Cardboard0G
@Cardboard0G 5 жыл бұрын
@@aurangzebrathore5001 that doesnt mean that the population standard deviations are different. There are two different tests that can be used to test if the population means are different. One test is for when the population variances are different and one when they are the same. In this instance Dr. Khan is using the method for when the population variances are different. thats like saying the population means are different because the sample means are stated as different
@ritamsarkar7753
@ritamsarkar7753 3 жыл бұрын
degree of freedom = n1+n2 -2 = 22+24 -2 = 44 , Please reply why it is 21 ?
@felixmugire6583
@felixmugire6583 3 жыл бұрын
i also doubted that.
@nadiansnazar1248
@nadiansnazar1248 4 жыл бұрын
what if the sample is equal?
@RJG989
@RJG989 4 жыл бұрын
You use a pooled t-test I am pretty sure
@mariselcantiga1860
@mariselcantiga1860 3 жыл бұрын
Can i used t-test when my sample is 100?
@mariselcantiga1860
@mariselcantiga1860 3 жыл бұрын
Please answer me😭
@RaviSingh-xx2wq
@RaviSingh-xx2wq 2 жыл бұрын
No. You'll use Z test as T-test is used when sample size is usually under 30
@3607458
@3607458 4 жыл бұрын
Please look at the below solution and confirm for difference in P-value: Difference = μ (1) - μ (2) Estimate for difference: -0.300 95% CI for difference: (-0.550, -0.050) T-Test of difference = 0 (vs ≠): T-Value = -2.44 P-Value = 0.020 DF = 33
@manushreemishra3998
@manushreemishra3998 4 жыл бұрын
Can you please ellaborate on DF?
@mariselcantiga1860
@mariselcantiga1860 3 жыл бұрын
My two sample t-statistic is -3.02 What is my p-value?
@mihai.ciorobita
@mihai.ciorobita 3 жыл бұрын
If you are still interested to find the value of p you need the degree of freedom too. As in the video was specified it is the lowest size of the two samples -1. And finally to calculate the value you can use matlab function tcdf(t, df). df - degree of freedom
@xiaowenxu5720
@xiaowenxu5720 5 жыл бұрын
lack the assumption that the height follows normal distribution to apply CLT?
@carolinesnell6026
@carolinesnell6026 4 жыл бұрын
god bless you sal
@abelbiju7269
@abelbiju7269 3 жыл бұрын
why am i getting -1.7875 for 't'
@portmax95
@portmax95 Жыл бұрын
I think you forgot polled variance
@yuhanglin1547
@yuhanglin1547 4 жыл бұрын
Well, these tomato plants taken are just samples instead of original populations. So should the variance s^2A and s^2B used be the unbiased estimators instead of variance of the samples?
@MrSajjad1989
@MrSajjad1989 6 жыл бұрын
Thank brother you made it easy
@mariselcantiga1860
@mariselcantiga1860 3 жыл бұрын
My two sample t statistic is -7.14 Can someone tell me what is the p-value?
@mihai.ciorobita
@mihai.ciorobita 3 жыл бұрын
I also need the degree of freedom
@lookaway8496
@lookaway8496 5 жыл бұрын
What if the two samples are the same?
@mihai.ciorobita
@mihai.ciorobita 3 жыл бұрын
nothing change, I guess...
@hadijutt2960
@hadijutt2960 2 жыл бұрын
Mistake 0.3^2=0.9
@mikegardetto5536
@mikegardetto5536 5 ай бұрын
.3 *.3 is 0.09 I believe its your mistake.
@lemyul
@lemyul 5 жыл бұрын
thanks vulcano
@sq9779
@sq9779 5 жыл бұрын
Is the two sample t test the same as the student t test?
@Mersch20
@Mersch20 4 жыл бұрын
According to my statistics book, t-Test has 1 sample. The 2 sample test is called Pooled-t or non-pooled, depending on the sample size or standard deviation.
@oooooo-kr4ep
@oooooo-kr4ep 3 жыл бұрын
One way Anova test
@lanasaleh6569
@lanasaleh6569 5 жыл бұрын
In t dist we use Sp and we cant use the standard division S ?🤔🤔
@mersancanonigo1018
@mersancanonigo1018 5 жыл бұрын
me too
@JamTik734
@JamTik734 6 жыл бұрын
nice
@jannahtesl
@jannahtesl 5 жыл бұрын
Why did you calculate 0.9 and not 0.09?
@karthikeyans1646
@karthikeyans1646 5 жыл бұрын
0.3 the whole square is 0.9 tata y he calculated mistakenly he wrote as 0.09 dude
@joyleemorrondoz8745
@joyleemorrondoz8745 5 жыл бұрын
0.3^2=0.09 this is not mistakenly calculated.
@dami9475
@dami9475 4 жыл бұрын
is this a two sample paired t test?
@Mersch20
@Mersch20 4 жыл бұрын
Yes, it says it in the title of the video
@benjaminjordan2330
@benjaminjordan2330 5 жыл бұрын
Okay... what's your point?
@Dissandou
@Dissandou 5 жыл бұрын
To teach statistics learners how to apply a t-distribution to a difference of means problem
@sajeewakalhara5623
@sajeewakalhara5623 4 жыл бұрын
Sweety
@cynthiasimpson6469
@cynthiasimpson6469 6 жыл бұрын
First!
@cynthiasimpson6469
@cynthiasimpson6469 6 жыл бұрын
.
@AntonioDTorres
@AntonioDTorres 4 жыл бұрын
2:58- When you square 0.3 equals 0.9 not 0.09.
@fguintu
@fguintu 4 жыл бұрын
.3^2 = .09 He’s not wrong
@VK-sp4gv
@VK-sp4gv Жыл бұрын
Squaring a number which is less than 1 makes that number smaller, not bigger.
@forevershampoo
@forevershampoo 3 жыл бұрын
I really have never liked this guys voice
t-Test - Full Course - Everything you need to know
16:14
DATAtab
Рет қаралды 310 М.
t-tests and p values
8:58
Daniel M
Рет қаралды 70 М.
Кәсіпқой бокс | Жәнібек Әлімханұлы - Андрей Михайлович
48:57
"كان عليّ أكل بقايا الطعام قبل هذا اليوم 🥹"
00:40
Holly Wolly Bow Arabic
Рет қаралды 4,7 МЛН
P-values and significance tests | AP Statistics | Khan Academy
7:58
Teach me STATISTICS in half an hour! Seriously.
42:09
zedstatistics
Рет қаралды 2,8 МЛН
How To Know Which Statistical Test To Use For Hypothesis Testing
19:54
Amour Learning
Рет қаралды 782 М.
T-Tests: A Matched Pair Made in Heaven: Crash Course Statistics #27
11:17
Matched or Paired Samples T-Test - Hypothesis Testing
12:56
The Organic Chemistry Tutor
Рет қаралды 466 М.
Statistics made easy ! ! !   Learn about the t-test, the chi square test, the p value and more
12:50
Global Health with Greg Martin
Рет қаралды 2,1 МЛН
What Is A P-Value? - Clearly Explained
7:41
Steven Bradburn
Рет қаралды 669 М.
T-test, ANOVA and Chi Squared test made easy.
15:07
Global Health with Greg Martin
Рет қаралды 303 М.
Кәсіпқой бокс | Жәнібек Әлімханұлы - Андрей Михайлович
48:57