<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>linear regression on Casual Inference</title>
    <link>https://www.casualinf.com/tags/linear-regression/</link>
    <description>Recent content in linear regression on Casual Inference</description>
    <generator>Hugo -- gohugo.io</generator>
    <lastBuildDate>Thu, 07 Jan 2021 00:00:00 +0000</lastBuildDate><atom:link href="https://www.casualinf.com/tags/linear-regression/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Linear Regression on Coffee Rating Data</title>
      <link>https://www.casualinf.com/post/2021-01-07-linear-regression-on-coffee-rating-data/</link>
      <pubDate>Thu, 07 Jan 2021 00:00:00 +0000</pubDate>
      
      <guid>https://www.casualinf.com/post/2021-01-07-linear-regression-on-coffee-rating-data/</guid>
      <description>While I am reading Elements of Statistical Learning, I figured it would be a good idea to try to use the machine learning methods introduced in the book. I just finished a chapter on linear regression, and learned more about linear regression and the penalized methods (Ridge and Lasso). Since there is an abundant resource available online, it would be redundant to get into the details. I’ll quickly go over Ordinary Least Squares, Ridge, and Lasso regression, and quickly show an application of those methods in R.</description>
    </item>
    
    <item>
      <title>My First Post</title>
      <link>https://www.casualinf.com/post/first-post/</link>
      <pubDate>Sun, 17 Jun 2018 00:00:00 +0000</pubDate>
      
      <guid>https://www.casualinf.com/post/first-post/</guid>
      <description>This is the first blog post of my life! I will be using this blog to post about anything that I want to share in statistics. For starter, I will run a linear regression with the iris dataset.
names(iris) ## [1] &amp;quot;Sepal.Length&amp;quot; &amp;quot;Sepal.Width&amp;quot; &amp;quot;Petal.Length&amp;quot; &amp;quot;Petal.Width&amp;quot; &amp;quot;Species&amp;quot; Let’s predict Sepal.Length with Petal.Length and Petal.Width.
#separate into training and testing sets set.seed(1234) train_ind &amp;lt;- sample(nrow(iris), floor(0.8 * nrow(iris))) iris_train &amp;lt;- iris[train_ind,] iris_test &amp;lt;- iris[-train_ind,] #run linear regression iris_lm &amp;lt;- lm(Sepal.</description>
    </item>
    
  </channel>
</rss>
