SAS Tutorial | Simple Linear Regression in SAS

Sdílet
Vložit
  • čas přidán 15. 07. 2024
  • In this SAS How To Tutorial, Andy Ravenna discusses how to perform simple linear regression in SAS. Linear regression is used across a wide range of fields to help predict a continuous target variable, something like “sales,” for example. Input variables are used to help predict the target variable. In simple linear regression, only one input variable is used to predict the target variable. Andy begins by exploring the formula for linear regression. Then he discussed ordinary least squares regression, which is how the parameter estimates are calculated. He’ll then demonstrate simple linear regression two ways: using SAS Studio and in SAS Visual Statistics, using SAS Viya.
    Download Data Files
    Bank data can be found in the SAS Visual Data Mining and Machine Learning Free Trial - www.sas.com/en_us/trails.html
    Chapters
    00:00 - Simple linear regression explained
    07:36 - Demo: How to perform simple linear regression in SAS Studio
    24:44 - Demo: How to perform simple linear regression in SAS Visual Statistics, using SAS Viya
    Learn more about SAS Software
    ◉ Try SAS Visual Statistics for Free - www.sas.com/en_us/trials/soft...
    ◉ Free e-Learning: Statistics 1 - support.sas.com/edu/schedules...
    SAS Video Tutorial: Simple Linear Regression Using SAS® Studio - video.sas.com/detail/video/33...
    ◉ SAS Video Tutorial: The Generalized Linear Models Task in SAS® Studio - video.sas.com/detail/video/55...
    SUBSCRIBE TO THE SAS USERS CZcams CHANNEL #SASUsers #LearnSAS
    czcams.com/users/SASUsers?sub_...
    ABOUT SAS
    SAS is a trusted analytics powerhouse for organizations seeking immediate value from their data. A deep bench of analytics solutions and broad industry knowledge keep our customers coming back and feeling confident. With SAS®, you can discover insights from your data and make sense of it all. Identify what’s working and fix what isn’t. Make more intelligent decisions. And drive relevant change.
    CONNECT WITH SAS
    SAS ► www.sas.com
    SAS Customer Support ► support.sas.com
    SAS Communities ► communities.sas.com
    SAS Analytics Explorers ► explorers.sas.com
    Facebook ► / sassoftware
    Twitter ► / sassoftware
    LinkedIn ► / sas
    Blogs ► blogs.sas.com
    RSS ► www.sas.com/rss
  • Věda a technologie

Komentáře • 64

  • @Nipun_Chauhan
    @Nipun_Chauhan Před 2 měsíci +1

    You are an incredible instructor, thanks.

    • @SASUsers
      @SASUsers  Před 2 měsíci

      We appreciate your feedback and thanks for tuning in!

  • @andyravenna4222
    @andyravenna4222 Před 4 lety +6

    Hi!
    Thanks for checking out my video on simple linear regression in SAS. Let me know what you thought and if you found it helpful. Also, let me know if you have any questions. Have an awesome day!
    Andy

  • @rayjeromemontanez8888

    Thank you for the tutorial.

  • @dnyaneshwarjadhavstat
    @dnyaneshwarjadhavstat Před rokem +1

    Excellent presentation sir

    • @SASUsers
      @SASUsers  Před rokem +1

      Thank you for your feedback!

  • @mohho3488
    @mohho3488 Před rokem +1

    excellent sharing...I like it alot...Gonna explore more videos after this!!!!

    • @SASUsers
      @SASUsers  Před rokem

      Thank you for sharing your feedback!

  • @sathishsrinivasan3496
    @sathishsrinivasan3496 Před 4 lety +2

    Great Video Andy!

  • @sarahkandil1188
    @sarahkandil1188 Před 2 lety +2

    best SAS explanation for linear regression

    • @SASUsers
      @SASUsers  Před 2 lety

      Great! Thank you for your feedback!

    • @andyravenna4222
      @andyravenna4222 Před 2 lety

      Thank you, Sarah!

    • @glitcharcing
      @glitcharcing Před 5 měsíci

      Yeah he’s a talented educator and friendly. Rare for statisticians ;)

    • @glitcharcing
      @glitcharcing Před 5 měsíci

      Just kidding. Those are mathematicians lol

  • @alakhns
    @alakhns Před 3 lety +2

    You are great in making thingd understandable. You spkoe very clearly and at the perfect pace.

  • @YuriBrGo
    @YuriBrGo Před 3 lety +3

    Excellent Explanation. Just what I was looking for. Thanks Andy!

  • @satishsutar5102
    @satishsutar5102 Před 3 lety +2

    Greate Explanations on how to do reg. in SAS also you explained the concept of reg. in vary simple mannar.
    thanks.

  • @djrisks
    @djrisks Před 3 lety +2

    Excellent presentation Andy! I wish I learned about SLR like this, you break it down so well! Thanks!

  • @Rachelannerox
    @Rachelannerox Před 3 lety +4

    This is the best SAS viya tutorial I've seen! please do more!!

    • @SASUsers
      @SASUsers  Před 3 lety

      Excellent! Glad to hear this tutorial was helpful to you! You can also find other helpful support resources on SAS Viya on our support pages 2.sas.com/6054H8pnM

    • @andyravenna4222
      @andyravenna4222 Před 2 lety

      Thank you, Rachel!

  • @exceloverdrive284
    @exceloverdrive284 Před 3 lety +1

    This video exceeded expectations! thanks a ton!!

    • @SASUsers
      @SASUsers  Před 3 lety

      Thanks for sharing! We're so glad you enjoyed the content.

    • @andyravenna4222
      @andyravenna4222 Před 2 lety

      Thank you, Excel!

  • @dazzlingspark
    @dazzlingspark Před rokem

    Best part about your videos, you don’t bore while making these informative videos.

    • @SASUsers
      @SASUsers  Před rokem

      Glad you think so! We hope you'll come back for more!

  • @skandarmabrouk7036
    @skandarmabrouk7036 Před 3 lety +1

    thank you M. Andy I appreciate your videos

  • @paigemiller6522
    @paigemiller6522 Před 4 lety +8

    I like the idea (I did not watch the entire video because I feel I already know linear regression) and I especially like that it was posted over at SAS Communities (but I'm not allowed to comment on the post there, so I comment here). SAS Communities needs more basic statistics and basic programming tutorials; there are plenty of tutorials that appear at SAS Communities on advanced topics like Hierarchical Models and Quadratic Discriminant Analysis and so on; this is the first I have seen at SAS Communities on basic statistics. Furthermore, there needs to be some mechanism to search for tutorials at SAS Communities (if there is such a mechanism, I am not aware of it) and there also needs to be some mechanism to search for VIDEO Tutorials at SAS Communities. And maybe even post a comprehensive list of all such video tutorials at SAS Communities (and keep re-posting the list every week, because there are always new people joining, or searching for something).

    • @chrishemedinger1382
      @chrishemedinger1382 Před 4 lety +1

      Thanks for the feedback Paige! We have a big list of topics to cover in this format. If you have ideas for the top statistics topics to tackle first, let us know!

    • @annabrown6412
      @annabrown6412 Před 4 lety +1

      Hi there Paige, we hear you on adding a mechanism to find video tutorials on the SAS Communities and are exploring ways to do that. Thanks for your input!

    • @nnette21
      @nnette21 Před 4 lety

      @@chrishemedinger1382 can you please do a multiple linear regression including interaction/ effect modification, then latent class analysis, trajectory analysis. Thanks!

    • @chrishemedinger1382
      @chrishemedinger1382 Před 4 lety

      @@nnette21 Good suggestions -- we have a steady stream of new topics coming, so stay tuned! I'll pass your ideas on to the team.

    • @navk1000
      @navk1000 Před 4 lety

      Thank You for the clarification.

  • @shekharkoul5
    @shekharkoul5 Před 3 lety +2

    Excellent

  • @dolapoadepoju6866
    @dolapoadepoju6866 Před 8 měsíci

    I don't have access to SAS yet but this is really helpful. Thank you for putting this out!

  • @navk1000
    @navk1000 Před 4 lety +3

    Thank You for a great explanation sir...

    • @SASUsers
      @SASUsers  Před 4 lety

      We appreciate your feedback! Glad you found the explanation helpful! 👍

    • @andyravenna4222
      @andyravenna4222 Před 2 lety

      Thank you, Nav!

  • @aniruddhadeshmukh3571
    @aniruddhadeshmukh3571 Před 4 lety +2

    Thanks

  • @paigemiller6522
    @paigemiller6522 Před 4 lety +3

    I think there is a mis-statement at about 13:20 of the video:
    "P-value very small tells me that this model is doing a very good job at explaining a lot of the variability of the target."
    But that's not what the p-value tells you. It tells you that the fitted line is statistically significant, or in layman's terms that the fitted line did not happen by random chance. The r-squared tells you when the model is fitting a lot of the variability. You could have a p-value of 0.001 and a low r-squared, indicating that the fitted line is statistically significant but it does not explain a lot of the variability of the target. These concepts should be intertwined as the speaker said.

    • @andyravenna4222
      @andyravenna4222 Před 4 lety +4

      Hi Paige, I wouldn’t disagree with you. I made quite a few leaps for that general statement, but I was trying to avoid a deep down discussion for this video. The p-value for that ANOVA table in a linear regression is a test of the null hypothesis (that all the regression coefficients are 0; in this case we only have one.) A very small p indicates that we found evidence that at least one of our coefficients was non-zero. You can then look at the table of the parameter estimates to see that the p-values for both the y-intercept and our one term were also very small (also indicating evidence of being non-zero.) Thus, we found some inputs that appear to be statistically significant. I probably meant to throw in a small discussion about the r-square value, which is a much better statistic and indicating that the model is explaining the variability in the target. Thanks for catching that!

  • @heahkl
    @heahkl Před 2 lety

    andy, in your last model, the r square is 0.0914, how do you explain that small R square?

    • @SASUsers
      @SASUsers  Před 2 lety

      John, thank you for your inquiry! We are checking on this for you!

    • @andyravenna4222
      @andyravenna4222 Před 2 lety

      Hi John, thanks for your question. At time stamp 28:51, take a look to the right of the R-Square. You'll notice that out of approximately 1 million observations, only about 20% (211,509) are used in this linear regression. In this VS_Bank table, non-purchases are coded as missing for the target tgt Interval New Sales. So basically, this linear regression is only using 20% of the original data. I think this is the best explanation for why that R-Square is so low. I hope this helps! Thanks, Andy

    • @heahkl
      @heahkl Před 2 lety +1

      @@andyravenna4222 thanks for replying. I am a new student to linear regression and SAS. So based on your explanation, if the data is cleaned by removing empty sales, the RSquare will increased?

    • @andyravenna4222
      @andyravenna4222 Před 2 lety +1

      @@heahkl Hi John, it is great that you are so interested in Linear Regression. Since you are new, I'd like to encourage you to take our Statistics 1 course: support.sas.com/edu/schedules.html?crs=STAT1&ctry=US . It is an Introduction to ANOVA, Regression, and Logistic Regress. To get back to your new question, it turns out that this particular data table has already been cleaned. Because those sales values are missing, they are ALREADY being removed from the Linear Regression. If you are looking for ways to increase the R-Square, we would have to consider other alternatives, such as adding interaction terms or considering an alternative model. The Statistics 1 covers a lot this. I hope this helps! Thanks, Andy

  • @glitcharcing
    @glitcharcing Před 5 měsíci

    They gotta stop making you guys wear those Walmart blue polos 😂💀

    • @SASUsers
      @SASUsers  Před 5 měsíci

      We might argue that they're "SAS Blue" polos 😉 Either way, thanks for tuning in!

  • @HerdingDogRescuer
    @HerdingDogRescuer Před 2 lety

    "Simple"....Typical with SAS. NOTHING is simple. Everything is super complicated. More info than you need and all sorts of exceptions and that you just have to "know".

    • @SASUsers
      @SASUsers  Před 2 lety

      If there is a specific question you have, please let us know. If you have specific product feedback to help us in future product development, please feel free to share it on the SAS Idea Exchange: 2.sas.com/6050JQIRE.
      Additional info on customer feedback, here: 2.sas.com/6051JQIR1