Box-Cox Transformation + R Demo

Поділитися
Вставка
  • Опубліковано 29 січ 2025

КОМЕНТАРІ • 80

  • @khalilmomo718
    @khalilmomo718 5 років тому +69

    Great, your voice is normally distributed

  • @tetricattack
    @tetricattack 5 років тому +16

    Woah, this was great. Keep them coming!

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

    I cannot begin to explain how much this helped!

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

    This is just great. Well paced stats videos with high resolution, good audio and implementations in code. Can't thank you enough.

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

    We thank so much for saving our assignment with this video

  • @petemurphy7164
    @petemurphy7164 5 років тому +4

    That's a very well done video on Box-Cox transformations, I particularly liked the r demonstration and the diagnostic plots. It really bought the message home. Well done!

  • @skiffwhiffed6597
    @skiffwhiffed6597 3 місяці тому +1

    Your the goat, thank you for this great content

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

    This was really great! Thanks for explaining it at a high concept level. Cleared up alot of confusion for me from the text. Also, the little trivia fact was very interesting! I don't think any of my professors even knew that. Kudos!

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

    Thank you for this amazing tutorial! You explain something complicated in a way that it's understandable. I hope for more tutorials from you!

  • @FelipeSantos-sw4kk
    @FelipeSantos-sw4kk 2 роки тому +1

    I've seen this video already twice and will many times more.

  • @thomasbates9189
    @thomasbates9189 13 днів тому +1

    Thank you for making this video.

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

    Really clear and easy to understand, helped me a lot. And the funny story at the beginning is really interesting :)

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

    Thank you. Your walk through on this topic is excellent.

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

    Thank you for your great explanation. Looking forward to more videos!

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

    Nicely done. Thanks for the practical demo!

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

    Great video. Really helped as trying to understand Box-Cox transformation right now

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

    Just seeing the y^l = X b + e formula written down calmed down a lot of anxieties for me. I still don't understand why using this transformation would be a good idea.
    Thank you very much for this video!

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

    Thank you so much for this great tutorial. I have a few questions, could you show us the regression results (coefficients, s.e., t- & p-values) before Box-Cox transformation and what changes happened after the transformation as well as how to interpret the results due to Box-Cox transformation?

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

    This is great. Main takeaway I learned is that if the best lambda is equal to zero then you want to log the dependent variable y. Otherwise, you don't need to log y. In this example, best lambda equals -1.42 so you would use a linear model specification (as opposed to log-linear or log-log). Hope this sounds correct.

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

    To the point and very clear explanation

  • @chris-qm2tq
    @chris-qm2tq 2 роки тому +1

    This is excellent--thank you!

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

    Thanks, this is awesome help for R newcomers! :)

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

    thank you! the textbook i'm reading is very confusing and didn't explain well

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

    Thanks for the explanation...this is great!

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

    Very good video! Greetings from Colombia!

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

    Simply phoenomenal

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

    Fantastic. Thank you.

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

    very nice and clear explanation, can you do robust standard error to fix heteroscedasticity in R?

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

    Hi, why is the value range for Residuals vs Fitted without the transformation from 3.5 to 5.5 and with the transformation from 0.18 to 0.28?

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

    thanks for this amazing video with explanation!

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

    Thank you so much! I understand everything now! You're amazing at explaining things.

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

      glad it helped 😊

  • @DrayceAdams
    @DrayceAdams 10 місяців тому

    Hello, can someone explain why Butterfat^-1 a.k.a. y^-1 is performed, rather than (y^-1 - 1)/-1 so y^lambda-1/lambda as in the formula from the beginning. Thank you

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

    Thank YOU!!!

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

    Just Amazing! Thanks.

  • @1234567890sunshine
    @1234567890sunshine 2 роки тому

    I'm probably just really confused, but once I get my lambda value, how do I actually transform my data set. I understand visualizing those plots and what not, but does it spit out a new table of transformed values somewhere?

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

    great explanation! thank you!

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

    Thanks!! It helps a lot!

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

    That's a great video. Thank you. Would you run the model at -1, -1.4242 and -2 and review the R^2 and adj-R^2?

  • @DeepakKushwaha-te4pq
    @DeepakKushwaha-te4pq 4 роки тому

    Thank you so much .. You have a got a lovely voice ;)

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

    The notations are a bit confusing: how may y to the power lambda on the left hand side could be equal to log(y)? This is because the y on the left hand side should write y^{(lambda)} instead of y^lambda.

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

    Hello, thanks for the great video. I am still new to R and I got an error message while doing this test "response variable must be positive". May I ask help how to go about this error? Thanks and keep safe.

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

    i have a question. If I have a negative response what kind of transformation should I applied for non normally distributes residuals in my linear regression? I already applied scale function in my data.

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

    Legend

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

    Thank you so much! :)

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

    Thanks for your great job!

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

    I can't find an inverse-Box-Cox function that v3.6.2 of R will load for me. Can somebody help?

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

    Thank you for a superb video. Could you please share your main code in the comments and possibly make a video for bcnPower where the values are negative or zero as Box-Cox yields an error code. Or anyone share a script which transforms a single variable as noted above?

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

    Nice explanation

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

    Can it be used as for arc sine transformation???

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

    Loved the explanation. Can you share the link to the data set used? Thanks!

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

    Wow! Recommended

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

    is there a way to change both dependent and independent variables?

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

    Hi ! :) maybe i missed something but how do you get your normal data after that ? Like the list of all the data ?

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

    I haven't tried yet and probably Stack Exchange would be a better place for doing such question but, hope I'm not asking too much... I've read boxcox doc and says it only works with lm and aov entries and raised me couple questions, but simply...
    So , there is this dataset with x, and y1, y2, y3, yn... is there a procedure to calculate an optimum or, at least, a rounded lambda?
    Thanks in advance,

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

    Didn't realize that the transformation is applied to the dependent response variable (in this case, Butterfat).

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

    I need to transform independent variable as well

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

    thank you!

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

    clear-cut very good

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

    Thanks for sharing. Thumbs up.

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

    First off great video. The problem I have encountered is some of my response variables are negative. This approach wont work with those pesky negatives. Any suggestions?

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

      Hi, I see you commented this 9 months ago, any chance you figured it out? I'm currently having the same problem :(

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

    with the transformed data can i diagnostic through Shapiro's and Lavene's tests or only through the plots?

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

      yes you can still check through statistical tests like Shapiro's and Levene's

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

    I noticed that when changing the lambda range in boxcox, (for example from seq(-2,2) to seq(-3,3)), it actually changes the optimal lambda value. Anyone know why?

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

    Hi, I really enjoyed the video and just had a small question. Is there any particular reason why we should round our value obtained for the optimal lambda? If the optimal value is already available, shouldn't we use the optimal value?

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

      Usually it wont make much difference either way, but there's no real reason besides simplifying the result

  • @KJ-zu7ft
    @KJ-zu7ft 5 років тому

    Thank you!a question: what does the 95% line mean?

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

    Thanks for making this so clear! Great video!
    I have one question: could you have interchangeably chosen to do a transformation with (Butterfat)^-2 ? What kind of transformation would that be (assuming it's not still inverse transf.)?- sorry if it's a silly question, my stats skills are quite basic

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

      Box cox transformation is on the outcome variable only and is the more common technique. If you want to transform predictor variables that is also possible and is known as a box tidwell transformation

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

      @@mathetal I have one question ...in a data when we are doing scatter plot between predictor and response and that's showing non linearity ...then what to do ?? Do we transform response variable or predictor variable ?? I mean how to understand wheather we have to transform predictor and response ??

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

    Thanks Math. It would be more better if you spend few more minutes on summary part(modelling on train and test the model on unseen data and compare the metrics before box cox and after box cox). But still the concept you explained is good

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

    box and cox sound like characters

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

    Add a prediction part and you would have my 10/10

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

    please can you exaplain me in the histogram in box cox trans

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

    i love you

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

    Homoscedasti.... vwey... what??? I never know there are assumptions to Linear regression..

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

    Jesus. It’s like reading a Wikipedia stats page.
    No idea what’s going on here

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

    Voice is too hot, got completely distracted by it lol