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

Поділитися
Вставка
  • Опубліковано 2 гру 2024

КОМЕНТАРІ • 122

  • @125dudeman
    @125dudeman 5 років тому +60

    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 8 місяців тому

      surely man! 👏

  • @3607458
    @3607458 4 роки тому +13

    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

  • @blessingobiora3983
    @blessingobiora3983 6 років тому +16

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

  • @Levelworm
    @Levelworm 4 роки тому +9

    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 роки тому +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.

  • @johnnyroc
    @johnnyroc 4 роки тому +153

    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

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

  • @TilmanVogel
    @TilmanVogel 11 місяців тому

    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.

  • @alivegaming438
    @alivegaming438 3 роки тому +4

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

  • @steverensen2551
    @steverensen2551 3 роки тому +6

    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 Рік тому

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

  • @WirTrivedi
    @WirTrivedi 5 місяців тому

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

  • @qaisarkhan1326
    @qaisarkhan1326 4 роки тому +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.

  • @zoezhang7661
    @zoezhang7661 4 роки тому +7

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

  • @karannchew2534
    @karannchew2534 3 роки тому +1

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

  • @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 2 роки тому

      True, watching the video left me with more questions than before I watched it.

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

  • @aroobashafique1921
    @aroobashafique1921 11 місяців тому

    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

  • @felixmugire6583
    @felixmugire6583 3 роки тому +1

    Degree of freedom = n1+n2 -2

    • @dol2han
      @dol2han 2 роки тому

      I think so too

  • @mastermax7777
    @mastermax7777 4 роки тому +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 8 місяців тому

      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.

  • @mihai.ciorobita
    @mihai.ciorobita 3 роки тому +2

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

  • @roger2bro
    @roger2bro 4 роки тому +3

    Thank you

  • @veerakanneboina8086
    @veerakanneboina8086 8 місяців тому

    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 8 місяців тому

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

  • @__evanhart5320
    @__evanhart5320 3 роки тому +1

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

  • @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🤦🏽‍♀️

  • @juliusceasarhortelano7020
    @juliusceasarhortelano7020 5 років тому

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

  • @micahsnow346
    @micahsnow346 3 роки тому +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

  • @shanggao9970
    @shanggao9970 3 роки тому +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 2 роки тому

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

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

  • @xiebustillo3521
    @xiebustillo3521 4 роки тому +2

    What type of calculation app was used?

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

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

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

  • @mccnlightx4495
    @mccnlightx4495 3 роки тому

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

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

  • @veerakanneboina8086
    @veerakanneboina8086 Рік тому

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

  • @sarahahmed2847
    @sarahahmed2847 20 днів тому

    how is ur calculator is doing the the p-value calculation and mine is giving me syntax error?

  • @Patwardhan622
    @Patwardhan622 6 років тому +3

    As sample size are large so I should use z test????

    • @lanasaleh6569
      @lanasaleh6569 5 років тому

      Yes And must n1=n2

    • @Princess-zu9eo
      @Princess-zu9eo 5 років тому

      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

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

  • @muhaha21
    @muhaha21 5 років тому +1

    so basically you are assuming that the groups variances are not equal right ?

    • @OreoTHOR
      @OreoTHOR 5 років тому

      There is no assumption. It is stated that the two have different standard deviations.

    • @Cardboard0G
      @Cardboard0G 5 років тому

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

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

  • @FrankRomerophoto
    @FrankRomerophoto Рік тому

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

  • @d2xr
    @d2xr 2 роки тому

    So this is like a shortcut?

  • @mariselcantiga1860
    @mariselcantiga1860 3 роки тому +1

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

  • @nadiansnazar1248
    @nadiansnazar1248 4 роки тому +1

    what if the sample is equal?

    • @RJG989
      @RJG989 4 роки тому

      You use a pooled t-test I am pretty sure

  • @MrSajjad1989
    @MrSajjad1989 6 років тому

    Thank brother you made it easy

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

  • @portmax95
    @portmax95 Рік тому +1

    I think you forgot polled variance

  • @satyamgupta4808
    @satyamgupta4808 Рік тому

    very nice video

  • @adasun1777
    @adasun1777 7 місяців тому

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

  • @ritamsarkar7753
    @ritamsarkar7753 3 роки тому

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

  • @xiaowenxu5720
    @xiaowenxu5720 5 років тому

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

  • @anisabhita
    @anisabhita 4 роки тому

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

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

  • @carolinesnell6026
    @carolinesnell6026 4 роки тому +1

    god bless you sal

  • @lemyul
    @lemyul 5 років тому

    thanks vulcano

  • @lookaway8496
    @lookaway8496 5 років тому

    What if the two samples are the same?

  • @hadijutt2960
    @hadijutt2960 2 роки тому

    Mistake
    0.3^2=0.9

    • @mikegardetto5536
      @mikegardetto5536 7 місяців тому

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

  • @abelbiju7269
    @abelbiju7269 3 роки тому

    why am i getting -1.7875 for 't'

  • @oooooo-kr4ep
    @oooooo-kr4ep 3 роки тому

    One way Anova test

  • @mariselcantiga1860
    @mariselcantiga1860 3 роки тому

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

  • @sq9779
    @sq9779 5 років тому

    Is the two sample t test the same as the student t test?

    • @Mersch20
      @Mersch20 5 років тому

      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.

  • @JamTik734
    @JamTik734 6 років тому

    nice

  • @lanasaleh6569
    @lanasaleh6569 5 років тому

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

  • @jannahtesl
    @jannahtesl 6 років тому

    Why did you calculate 0.9 and not 0.09?

    • @karthikeyans1646
      @karthikeyans1646 6 років тому

      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 5 років тому

    is this a two sample paired t test?

    • @Mersch20
      @Mersch20 5 років тому

      Yes, it says it in the title of the video

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

  • @AntonioDTorres
    @AntonioDTorres 5 років тому

    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.

  • @cynthiasimpson6469
    @cynthiasimpson6469 6 років тому +2

    First!

  • @forevershampoo
    @forevershampoo 3 роки тому

    I really have never liked this guys voice