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

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024
  • 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

  • @johnnyroc
    @johnnyroc 4 года назад +137

    why are you reading the comments. back to studying.

    • @aaryanjain312
      @aaryanjain312 3 года назад +1

      @@kriti5276 can u do both tho

    • @vainca3192
      @vainca3192 3 года назад

      Why did you click on answers?!

    • @aaryanjain312
      @aaryanjain312 3 года назад +1

      @@kriti5276 what a flex!!! 😎

    • @aaryanjain312
      @aaryanjain312 3 года назад +1

      @@vainca3192 what? Clicking on answers is what you are supposed to do as a highschool student 😎

    • @aaryanjain312
      @aaryanjain312 3 года назад

      @@vainca3192 then like what

  • @125dudeman
    @125dudeman 4 года назад +56

    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 5 месяцев назад

      surely man! 👏

  • @blessingobiora3983
    @blessingobiora3983 6 лет назад +16

    Yours is more comprehensive than the ones I av watched. Thank you

  • @3607458
    @3607458 4 года назад +12

    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

  • @Levelworm
    @Levelworm 4 года назад +7

    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.

    • @MakeItMultiplayer
      @MakeItMultiplayer 4 года назад +1

      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.

  • @oudviola
    @oudviola 2 года назад +8

    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 Год назад +1

      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 лет назад +6

    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?

  • @alivegaming438
    @alivegaming438 2 года назад +3

    When your University professor just links this video for online class instead of actually teaching it himself

  • @steverensen2551
    @steverensen2551 2 года назад +5

    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 года назад +1

      bruh if you know that much then why does it matter?

    • @jenjp7853
      @jenjp7853 9 месяцев назад

      because I was confused and @steverensen2551 explained why I was confused, the comment was helpful@@DmanGaming

  • @zoezhang7661
    @zoezhang7661 4 года назад +7

    Hi, please may I ask what app are you using as for the calculator?

  • @lumpi806
    @lumpi806 4 года назад +7

    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.

  • @WirTrivedi
    @WirTrivedi Месяц назад

    I can say he is a very good artist please reply ☺️

  • @qaisarkhan1326
    @qaisarkhan1326 3 года назад +2

    Where we use pooled Estimate of standard deviance (Sp)

    • @VK-sp4gv
      @VK-sp4gv 3 года назад +1

      No, he doesn't use a pooled estimate, but he doesn't explain why.

  • @mastermax7777
    @mastermax7777 3 года назад +2

    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 5 месяцев назад

      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.

  • @ilirose6456
    @ilirose6456 Год назад +1

    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 года назад +1

    so will i arrive at the same answer if i use the welch t test?

  • @felixmugire6583
    @felixmugire6583 2 года назад +1

    Degree of freedom = n1+n2 -2

    • @dol2han
      @dol2han 2 года назад

      I think so too

  • @roger2bro
    @roger2bro 4 года назад +3

    Thank you

  • @vanessajaime7538
    @vanessajaime7538 4 года назад +3

    i’m just trying to look for one that isn’t the conservative approach for the df because my teacher doesn’t use that🤦🏽‍♀️

  • @TilmanVogel
    @TilmanVogel 7 месяцев назад

    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.

  • @karannchew2534
    @karannchew2534 3 года назад +1

    2:04 std dev of the sampling distribution of the differences of the sample means

  • @mihai.ciorobita
    @mihai.ciorobita 3 года назад +2

    Sir, what do I do if I want to test mean(A) > mean(B) ?

  • @xiebustillo3521
    @xiebustillo3521 3 года назад +2

    What type of calculation app was used?

  • @__evanhart5320
    @__evanhart5320 3 года назад +1

    based on the laws, why are you not pooling the variances

  • @veerakanneboina8086
    @veerakanneboina8086 4 месяца назад

    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

  • @micahsnow346
    @micahsnow346 2 года назад +1

    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

  • @mccnlightx4495
    @mccnlightx4495 2 года назад

    KAITO MOMOTA LUMINARY OF THE STARS 🌟 ‼️ is growing tomato plants atm

  • @bjlenny3889
    @bjlenny3889 5 месяцев назад

    How do you calculate the minimum sample size you need to compare 2 sets of data?

  • @aroobashafique1921
    @aroobashafique1921 8 месяцев назад

    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

  • @shanggao9970
    @shanggao9970 2 года назад +1

    Thank you! Super helpful! A quick question: why is the df = min(sample size)-1 ?

    • @michaellovin3522
      @michaellovin3522 2 года назад +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 Год назад

      I checked wiki, it should be N1 -1+ N2 -1 for the independent two sample test

  • @fangmin2890
    @fangmin2890 4 года назад +3

    what is the equation for p-value calculation? (can this be done in excel?), thanks

    • @prasadkedar30
      @prasadkedar30 4 года назад +3

      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.

  • @mariselcantiga1860
    @mariselcantiga1860 3 года назад +1

    What app did u use in solving the p-value?

  • @Patwardhan622
    @Patwardhan622 5 лет назад +3

    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

  • @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

  • @3607458
    @3607458 4 года назад +2

    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

  • @brandonwarren5644
    @brandonwarren5644 3 года назад +1

    Is there an online calculator like the one he is using?

    • @missjunanne87
      @missjunanne87 3 года назад +1

      best statistic calculator online

    • @missjunanne87
      @missjunanne87 3 года назад

      You will just encode the values then it will give you answers

  • @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

  • @veerakanneboina8086
    @veerakanneboina8086 8 месяцев назад

    What if I calculate the t value as XB-XA. Will that make difference in conclusion

  • @juliusceasarhortelano7020
    @juliusceasarhortelano7020 4 года назад

    Hi, are you not going to take the absolute value of the differences of the two means (numerator)?

  • @ritamsarkar7753
    @ritamsarkar7753 3 года назад

    degree of freedom = n1+n2 -2 = 22+24 -2 = 44 , Please reply why it is 21 ?

  • @adasun1777
    @adasun1777 4 месяца назад

    I think the df should be 44, am I wrong?

  • @FrankRomerophoto
    @FrankRomerophoto Год назад

    Where can I get the TI-84 Plus CE in software? Thanks

  • @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?

  • @muhaha21
    @muhaha21 5 лет назад +1

    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 4 года назад

      @@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

  • @satyamgupta4808
    @satyamgupta4808 10 месяцев назад

    very nice video

  • @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

  • @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?

  • @carolinesnell6026
    @carolinesnell6026 3 года назад +1

    god bless you sal

  • @MrSajjad1989
    @MrSajjad1989 5 лет назад

    Thank brother you made it easy

  • @d2xr
    @d2xr 2 года назад

    So this is like a shortcut?

  • @nadiansnazar1248
    @nadiansnazar1248 4 года назад +1

    what if the sample is equal?

    • @RJG989
      @RJG989 4 года назад

      You use a pooled t-test I am pretty sure

  • @anisabhita
    @anisabhita 4 года назад

    what if the number of sample is bigger than 30 (large sample)? should i still using this formula?

  • @xiaowenxu5720
    @xiaowenxu5720 5 лет назад

    lack the assumption that the height follows normal distribution to apply CLT?

  • @portmax95
    @portmax95 Год назад

    I think you forgot polled variance

  • @abelbiju7269
    @abelbiju7269 3 года назад

    why am i getting -1.7875 for 't'

  • @lemyul
    @lemyul 4 года назад

    thanks vulcano

  • @oooooo-kr4ep
    @oooooo-kr4ep 3 года назад

    One way Anova test

  • @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?

  • @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

  • @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

  • @JamTik734
    @JamTik734 5 лет назад

    nice

  • @hadijutt2960
    @hadijutt2960 2 года назад

    Mistake
    0.3^2=0.9

    • @mikegardetto5536
      @mikegardetto5536 3 месяца назад

      .3 *.3 is 0.09 I believe its your mistake.

  • @mariselcantiga1860
    @mariselcantiga1860 3 года назад

    My two sample t statistic is -7.14
    Can someone tell me what is the p-value?

  • @lookaway8496
    @lookaway8496 4 года назад

    What if the two samples are the same?

  • @lanasaleh6569
    @lanasaleh6569 5 лет назад

    In t dist we use Sp and we cant use the standard division S ?🤔🤔

  • @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.

  • @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.

  • @benjaminjordan2330
    @benjaminjordan2330 5 лет назад

    Okay... what's your point?

    • @Dissandou
      @Dissandou 5 лет назад +2

      To teach statistics learners how to apply a t-distribution to a difference of means problem

  • @sajeewakalhara5623
    @sajeewakalhara5623 4 года назад

    Sweety

  • @dami9475
    @dami9475 4 года назад

    is this a two sample paired t test?

    • @Mersch20
      @Mersch20 4 года назад

      Yes, it says it in the title of the video

  • @cynthiasimpson6469
    @cynthiasimpson6469 6 лет назад +2

    First!

  • @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