Paired t Test | Statistics Tutorial #21| MarinStatsLectures

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

КОМЕНТАРІ • 118

  • @marinstatlectures
    @marinstatlectures  5 років тому +9

    In this #statistics tutorial, we learn how to use paired t-test (dependent sample t-test) to compare means of 2 matched, paired, or dependent groups. We also cover building a confidence interval for the mean difference, as well as how this can be used to test a hypothesis. To learn how to conduct paired t-test with R watch this video: (ua-cam.com/video/yD6aU0fY2lo/v-deo.html) 👍🏼Find Best Statistics & R Programming Tutorials here: ( goo.gl/4vDQzT ) ►► Like to support us? You can Donate (bit.ly/2CWxnP2), Share our Videos, Leave us a Comment, Give us a Like or Write us a Review! Either way, We Thank You!

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

      I've just subscribed to you cuz you can write in mirror 👐👐

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

      Thank you for such a good video, do you have stats courses using python or whom can you recommend?

  • @Rachel_PureBold
    @Rachel_PureBold 4 роки тому +30

    Love the technique of showing a reversed 'blackboard' with the lecturer speaking to us. Have not seen this before but it is very engaging and helpful.

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

    I love the way you teach. There are concepts that you've already taught us so many many times in previous lectures but you kept bringing them up to do a "memory refresh". This way, we won't forget about them anymore.

  • @sandipansaha943
    @sandipansaha943 5 років тому +23

    Sir your quality of teaching is significantly good. After adopting for Data Science I had trouble with statistics,but this set of vedios cleared my doubts and gave me confidence in stats. Thank you sir...!Hope u will make more such high quality vedios in future.

    • @marinstatlectures
      @marinstatlectures  5 років тому +3

      thanks! we plan to keep making videos for the foreseeable future.

  • @himanshupoddar1395
    @himanshupoddar1395 6 років тому +9

    Sir Your quality of teaching is so good. I mean even after paying on MOOC's we don't get such quality and you are providing it for free. Thank you sir we are very grateful to you. This world need teachers like you, salman sir, 3B1B and many more. You are a hope for students like us.

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

      thanks, we put a lot of time and effort into creating these, and appreciate hearing that!

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

    Was able to follow along with you as I worked with my own data! You are amazing, thank you so much!!!

  • @seanw.4136
    @seanw.4136 5 років тому +2

    Thanks for your tutoring video. Your one video explains clearly everything that my professor tried to teach for 2 classes.

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

    This is really good!! You're great at boiling down these confusing topics and ordering them in a sensical way

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

    This is clearly explains the p-value. Thank you very much.

  • @YourDad-dh6fj
    @YourDad-dh6fj 5 років тому +3

    This was really informative in a way i can understand! My biostatistics exam is coming up and i appreciate this immensely, thankyou so much!

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

      you're welcome :) hope the exam went well!

    • @YourDad-dh6fj
      @YourDad-dh6fj 5 років тому

      @@marinstatlectures it went better than i thought, there is still, as always, alot more to learn. Thankyou again!

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

      @@YourDad-dh6fj no matter how much you know there is always more to learn ;) glad to hear it went better than expected! best of luck with your studies.

  • @jeanchrl22
    @jeanchrl22 5 років тому +2

    Since the research question (alternative) is to see if it lowered, The null hypothesis should be greater or equal than 0. Hypothesis 101 says both alternative and null have to account for all possibilities. What happens if mean difference is greater than 0?

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

      you can write Ho that way as well. here, Ha: mean=0. here is the thing. first, you are never trying to "prove a null" and so if Ho is mean=0, or mean>=0 you never prove/provide evidence for the null (you are interested in providing evidence that Ha is true), and so it doesn't matter too much how you express Ho it in terms of the notation.
      also, in terms of how the test is carried out, you begin by assuming Ho to be true, and then working out how likely you would be to observe the sample estimate/statistic you did, or one even more extreme if Ho were true (called the p-value). regardless of if you express it as Ho: mean=0, or Ho: mean>=0, when calculating a p-value you will work with a null value for the estimate/statistic (its expected value) of mean=0. what i mean by that is, with Ho:mean=0, assuming Ho to be true means you assume the true/population mean difference is 0. and if you assume that Ho: mean>=0, then assuming Ho to be true means you are assuming that the true/population mean difference is 0 or larger...and the smallest value you will assume if mean>=0 is to assume the mean equals 0.
      the point of that whole last paragraph is to say that regardless of whether you write Ho:mean=0, or Ho: mean>=0, all of the test is carried out in the exact same way, and the conclusions you can draw are the exact same, and it makes no difference. i tend to prefer to always write Ho as = some hypothesized value, because in order to carry out a hypothesis test, you have to assume some value (not a range of values) under the null hypothesis, and expressing Ho this way is a bit clear i believe.

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

    Hi, thank you for your video! I would like to know how do you obtain the t= 2.22 use in the minute 11:09. I am looking at the table of T-distribution One tail df=8 and alpha=0.05 and the number that comes up is 1.86. Could you explain it? Thank you!

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

      Shouldn't you be using a df of 10 instead of 8. But yeah I also got different number, 1.812.

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

      make sure you use the t table for two-tailed tests. i've checked it and it was 2.22

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

    sir you are a great teacher

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

    Hi - why do you do (after-before) instead of (before-after)? Can you do both and still get a valid answer? Thanks.

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

      Same question I had before. I had tried both using SPSS and get a valid answer.

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

    For hypothesis testing, can we use p-value cut-off as 0.05 as you have done but choose Confidence at 99%. Or does it always follow like (0.05 p value for 95% CI) and (0.01 for 99% CI) and so on.

  • @mariusa.6579
    @mariusa.6579 Рік тому

    Is the reason why we are assuming normal differences that we cannot apply the central limit theorem? Otherwise the CLT would guarantee us the normality of the mean no?
    In case my first question/assumption is true, why would we need a t-distribution? We know then that the mean is normal right?

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

    Thank you for the very clear lecture. At 13:57 where you discuss what to do if the large-n assumption is not met, isn't this assumption not met for the example you presented with 11 samples? This data isn't normally distributed but rather T-distributed, but your analysis is still valid, since you are using the T-test (rather than the Z-test) to estimate p

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

      hmm i guess that is for the sake of simplicity. He could have use 100-200 observation but he didn't have enough inverted board to write :))))

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

    Started this playlist over a year ago and quit, now I'm back to finish it. Statistics defeated me twice in college (got a D then a C when forced to retake it for my major) but I'm going to win in the end.

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

    Thank you so much to create this videos. All of them are great! Congratulations!
    I'm not sure if understand right but the t-value (at 10:28) don't should be 1.812 (95% C.I., df=10)?

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

      Thanks, we appreciate that! a t value of 1.812 with df=10 would have 5% above it (and 5% below -1.812)..and so using a t=1.812 would have 90% in between -1.812 and +1.812, and would result in a 90% confidence interval. i hope that helps clear it up

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

      I get it now! Thank you so much for clear it up!

    • @abhishek-shrm
      @abhishek-shrm 3 роки тому

      @@marinstatlectures Thank you sir for explanation.

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

    While calculating the confidence interval either the lower bound or the upper bound is needed right? as it is a one-sided test

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

    at 9:40 I don't see at all how the 95% changes the result of the calculation you did for the confidence interval. 0.95 appears no where in the calculations

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

    Can you please tell why you subtract X1from X2?is it because it says the value before and after? And to determine Di When we will subtract from X1-X2?

    • @marinstatlectures
      @marinstatlectures  5 років тому +2

      Hi, I'm a bit unclear if you asking about the order in which they are subtracted, or just why the two are subtracted, so i will try and address both. We take the difference between the two paired observations (Y1 - Y2) so that we can see the change/difference (di) for each pair of individuals. they can be subtracted in any order, it doesn't matter, as long as yo interpret it correctly. here, we subtract them as (after-before) so that we can see the how the after measurement compares to the before, and subtracting in this order means that if the measurement after is lower (if it decreased) then the difference will come out to be a negative number (e.g. it before=10 and after=7, then there has been a decrease of 3, and di=after-before=7-10=-3). yip could of course subtract them in the opposite order (and just make sure the interpretation is correct), e.g. before-after=10-7=+3, the measurement was 3 higher before the treatment.
      hope that clarifies things.

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

    Thanks so much. It helps a lot. Cheers!!

  • @abhishek-shrm
    @abhishek-shrm 3 роки тому

    "p-value is a guide not a magic number"- By Marin
    Great words😂😂

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

    Great quality tutorial sir. Hoping for more statistics lectures.

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

      thanks! we're hoping to begin working on more stats lectures over the coming months

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

    This is well done, how do you create the light pen on-screen effect?!

  • @12tmcbride
    @12tmcbride 2 роки тому

    Why is it after minus before? I believe you explained it, but I'm not sure I understand 100%. In my assignment, I am doing it keeps changing back and forth.

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

    Thank you brother; Lord Jesus will Bless you.

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

    Excellent video!!

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

    Thank you, it is really helpful

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

    Dear sir, please tell me which statistical test is appropriate for me , if there are two groups and two different emotions are there and i need to compare between two emotions for both the groups.

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

      If they’re both categorical variables then you can do chi square test, fishers exact, RR, OR, ...

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

    Why are you substracting (after - before) what if we do otherwise could you explain

    • @marinstatlectures
      @marinstatlectures  2 роки тому +1

      It is more interpretable that way. If before is 125 and after is 120, then (aft - bef) is -5, or a decrease of 5. But if you reverse the order only the sign changes, so that is fine too. If you did (bef - aft) you’d get +5, or that it was 5 higher before. Only the sign changes so it doesn’t really matter, but it’s a bit simpler to interpret in the order I’ve subtracted them

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

      @@marinstatlectures thank you

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

    Great explanation, thanks!

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

    Would the Independent variable be: the individual being tested. And there be one dependant variable & two levels: the blood pressure before and after treatment?

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

      The independent variable is time (before/after), and the dependent variable is blood pressure. But since the before-after measurements are paired, we can take their difference and then work with the difference in blood pressure

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

      Thank you, this very helpful

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

    How did he find the p value using the t-stat?

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

    Why I am not getting your feeds.. I thought you went away.. so relieved !!!

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

    i am so sorry... but im quite confused where you get the Standard deviation? i am so sorry...

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

    So my mean of the difference between the two sets of values ended up being 0. Does that mean something special about the data I'm given or I should take the absolute values of difference?

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

      this seems pretty unlikely for it to come out to exactly 0....but what that is telling you is that the average difference/change is 0....on average, there is no change/difference in the two paired measurements

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

    very nice !great explanation :)

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

    Thank you so much for your generosity! 🙏 If I may ask, when can we consider our sample large pr small?

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

      a rough guideline is that n>20 to n>30 is "large enough". this is just a guide. the more symmetric the distribution of the individual values is, the smaller the sample size can be, and the more skewed the individual values/population is the larger the sample size needs to be....but 20-30 is a general rough guideline for "large enough"

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

    "Satisthics is hard to say"... I subscribed while watching because this was such a great tutorial, but if I haden't already, I definitely would have subscribed for the cute kid at the end :D

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

    Hi could you please explain how we obtain 2.22 as the 't' value. I would really appreciate it.

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

      Hi, that is the value of t )for the degrees of freedom in the problem) that contains 95% within +/- t. The value would be found manually either using a t table, or if could be found using statistical software

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

      @@marinstatlectures if we use the T table... How do we figure out which one is it?

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

    Great video!

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

    When do we subtract before from after and after from before? or it doesn't matter?

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

      it doesn't really matter, as long as you interpret it correctly. probably more intuitive to subtract as (After-Before), so that a negative number would mean that the after is smaller...or that there has been a decrease after treatment....but really it doesn't matter as long as you interpret the change correctly.

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

      @@marinstatlectures Thank you!

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

    roses are red, violets are blue, there's always a youtube video better than school :)

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

      Did you fail literature?

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

    Thank you!!

  • @CloroxBleach-xt4hu
    @CloroxBleach-xt4hu 5 років тому

    Why not before - after? Does it matter? The sign of the value would change..can explain?

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

      We take the difference between the two paired observations (Y1 - Y2) so that we can see the change/difference (di) for each pair of individuals. they can be subtracted in any order, it doesn't matter, as long as you interpret it correctly. here, we subtract them as (after-before) so that we can see the how the after measurement compares to the before, and subtracting in this order means that if the measurement after is lower (if it decreased) then the difference will come out to be a negative number (e.g. it before=10 and after=7, then there has been a decrease of 3, and di=after-before=7-10=-3). you could of course subtract them in the opposite order (and just make sure the interpretation is correct), e.g. before-after=10-7=+3, the measurement was 3 higher before the treatment.
      hope that clarifies things.

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

    how to get formula for sd?? i dont get itttt 😭

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

    Only if I had a teacher like him...

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

    Shouldn't we use sqrt(10) instead of sqrt(11) since that's the degree of the freedom?

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

      Nope when you calculate Standard error you should be dividing by square root of total observations

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

      many of my students get caught up here.... these 2 videos should help explain why we divide by (n-1) when calculating the SD, and why we divide by (n) for the SE...
      Standard deviation: ua-cam.com/video/nlm9gfso4mw/v-deo.html
      Standard Error of The Mean: ua-cam.com/video/-Xz89dB_Hco/v-deo.html

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

    you go you

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

    how did you do the video, you writing but facing audiance?

    • @marinstatlectures
      @marinstatlectures  5 років тому +9

      it's a cool, yet simple concept. the piece of glass im writing on is between me and the camera,...after recording the image is then flipped/mirrored, so the writing appears the correct way. im actually right handed, but i appear left handed because of the mirroring of the image.

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

      @@marinstatlectures
      Thx man
      People like you, giving knowledge to everyone should be rewarded. I hope you are.

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

    Good video but I think being a one tailed test critical t should be 1.8124.

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

    when i calculate the mean, i end up with -6.8 instyead of -6.18 and i have no clue how you calculated the standard deviation :(

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

      hi, you are simply making a calculation error i believe. have you tried calculating the mean again?
      regarding the SD, it is calculated in the usual way, working through the formula for SD...for each observation you take the difference between the value and the mean (-6.18), then you square these, sum them all up, and divide by n-1.
      we have a separate video showing the formula for calculating the SD.
      we also dont focus on this formula, as you would rarely ever calculate the SD by hand...all of this is done using software, and so we choose to focus on the concepts, and not the formulas to calculate this by hand.
      hope that clears things us

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

    Couldn't i set Ho as '(Ua-Ub) >= 0' ?
    I think it more makes sense.

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

      it is fine to think of it that way....essentially we want to test if the means are different...BUT, we express it as first taking the difference (x1-y1), (x2-y2),... and then calculating the mean of these, as this expression notes that we are incorporating the fact that observations are paired/dependent...and working with the difference between the paired observations....which will result in a different standard error for the estimate

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

    How to calculate Sd???

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

      In this video I show the formula for SD. ua-cam.com/video/nlm9gfso4mw/v-deo.html
      But, in the real world you will almost never calculate a SD by hand...and so I focus more on the concepts in these videos

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

    omg how are you writing backwards???!

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

    I wish I found your channel earlier.

  • @basiliszag
    @basiliszag 6 років тому +1

    👍🏻

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

    Hi Sir how can you get the P value? what’s the exact formula? thanks

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

      Hi, there is not a "formula" for calculating the p-value. you either have to look it up in a "t-table" (a sort of old fashioned way of doing it), or have software calculate it for you...we have a video showing how to do that using R here: (ua-cam.com/video/ETd-jPhI_tE/v-deo.html). you can also find things online where you can enter a t-value and its degrees of freedom, and have the p-value returned to you.

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

    I honestly thought Mike Glennon was teaching stats

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

      Really, Mike Glennon? At least give me someone like Nick Foles...an overachieving backup (or underachieving starter) ;)

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

      @@marinstatlectures haha I can see the Nick Foles a little too. Super Bowl Champ Nick Foles it is :)

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

      MVP! ;)

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

    are you writing backwards wtf

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

    ok

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

    i am dumb

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

    “...statistical significance is different from clinical significance...”
    Literally don’t care. Just wanna pass my stats test tmr 🙏🙏🙏