Q3.docx - Q3 Rashmi

This preview shows page 1 - 3 out of 9 pages.

The preview shows page 1 - 3 out of 9 pages.
Q3Rashmi Singh2020-04-17DATA=irisNONPROBABILITIC=iris[1:50,]summary(NONPROBABILITIC)##Sepal.LengthSepal.WidthPetal.LengthPetal.Width##Min.:4.300Min.:2.300Min.:1.000Min.:0.100##1st Qu.:4.8001st Qu.:3.2001st Qu.:1.4001st Qu.:0.200##Median :5.000Median :3.400Median :1.500Median :0.200##Mean:5.006Mean:3.428Mean:1.462Mean:0.246##3rd Qu.:5.2003rd Qu.:3.6753rd Qu.:1.5753rd Qu.:0.300##Max.:5.800Max.:4.400Max.:1.900Max.:0.600##Species##setosa:50##versicolor: 0##virginica : 0######iris11<-irisset.seed(123)TRAINING=NONPROBABILITIC[1:35,-5]TESTING=NONPROBABILITIC[36:50,-5]model_a =lm(Sepal.Length~Sepal.Width, iris )model_b =lm(Sepal.Length~Sepal.Width+Petal.Length, iris )model_c =lm(Sepal.Length~Sepal.Width+Petal.Length+Petal.Width,iris)summary(model_a)#### Call:## lm(formula = Sepal.Length ~ Sepal.Width, data = iris)#### Residuals:##Min1QMedian3QMax## -1.5561 -0.6333 -0.11200.55792.2226#### Coefficients:##Estimate Std. Error t value Pr(>|t|)## (Intercept)6.52620.478913.63<2e-16 ***## Sepal.Width-0.22340.1551-1.440.152## ---## Signif. codes:0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
#### Residual standard error: 0.8251 on 148 degrees of freedom## Multiple R-squared:0.01382,Adjusted R-squared:0.007159## F-statistic: 2.074 on 1 and 148 DF,p-value: 0.1519summary(model_b)#### Call:

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 9 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
Negron martin
Tags
Degrees Of Freedom, Normal Distribution, Standard Deviation, Errors and residuals in statistics, Absolute deviation

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture