![subject](/tpl/images/cats/mat.png)
Mathematics, 21.03.2020 10:58 plumagirl
The file CommunityCrime. csv is a dataset containing 319 observations on 123 variables. The observations are communities within the United States. The data combines socio-economic data from the 1990 US Census, law enforcement data from the 1990 US LEMAS survey, and crime data from the 1995 FBI Uniform Crime Reporting program. A detailed description of all variables is available at http://archive. ics. uci. edu/ml/machine-learning-databases/c ommunities/communities. names. We seek to predict the variable ViolentCrimesPerPop, the total number of violent crimes per 100,000 people.
Note: when asked to perform cross validation to select a tuning parameter, be sure to conduct this cross validation on the training data only, then see how well your cross validated tuning parameter does on the test data.
(a). Set a seed of 1 and split the data into a 90% training set, and a 10% test set.
(b). Fit a linear model using least squares on the training set. Report the test error obtained.
(c). Fit a ridge regression model on the training set with λ chosen by cross-validation. Report
the test error obtained.
(d). Fit a lasso model on the training set with λ chosen by cross-validation. Report the test error obtained, along with the number of non-zero coefficient estimates.
(e). Fit a PCR model on the training set with M chosen by crossvalidation. Report the test error obtained along with the value of M selected by cross-validation.
(f). Fit a PLS model on the training set with M chosen by cross-validation. Report the test error obtained, along with the value of M selected by cross-validation.
(g). Comment on the above parts and how well you believe we can predict violent crime rate using these methods.
![ansver](/tpl/images/cats/User.png)
Answers: 2
Another question on Mathematics
![question](/tpl/images/cats/mat.png)
Mathematics, 21.06.2019 20:30
Arectangle has a width of 5 cm and a length of 10 cm. if the width is increased by 3, how does the perimeter change?
Answers: 1
![question](/tpl/images/cats/mat.png)
Mathematics, 21.06.2019 23:00
Match the vocabulary to the proper definition. in probability, two events in which 1. conditional probability the outcome of one event is independent of the outcome of a second event. 2. dependent events in probability, two events in which the outcome of one event is dependent on the outcome of a second event. the probability of an event in which the outcome of the event is conditional on the outcome of one or more different events. 3. independent events
Answers: 2
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 22.06.2019 00:30
Describe how to translate the graph of y=/x to obtain the graph of y=/x+5
Answers: 2
You know the right answer?
The file CommunityCrime. csv is a dataset containing 319 observations on 123 variables. The observat...
Questions
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 13.05.2021 22:10
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 13.05.2021 22:10
![question](/tpl/images/cats/mat.png)
Mathematics, 13.05.2021 22:10
![question](/tpl/images/cats/mat.png)
Mathematics, 13.05.2021 22:10
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/biologiya.png)
Biology, 13.05.2021 22:20
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/geografiya.png)
Geography, 13.05.2021 22:20
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/User.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 13.05.2021 22:20
![question](/tpl/images/cats/mat.png)
Mathematics, 13.05.2021 22:20