国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

代寫MS6711、代做Python語言程序
代寫MS6711、代做Python語言程序

時間:2025-03-07  來源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯



MS6711 Data Mining
Homework 2
Instruction
This homework contains both coding and non-coding questions. Please submit two files,
1. One word or pdf document of answers and plots of ALL questions without coding details.
2. One jupyter notebook of your codes.
3. Questions 1 and 2 are about concepts, 3 - 6 are about coding.
1
Problem 1 [20 points]
We perform best subset, forward stepwise and backward stepwise selection on the same dataset with p
predictors. For each approach, we obtain p + 1 models containing 0, 1, 2, · · · , p predictors. Explain your
answer.
1. Which of the three models with same number of k predictors has smallest training RSS?
2. Which of the three models with same number of k predictors has smallest testing RSS? (best
subset, forward, backward, or cannot determine?)
3. True or False: The predictors in the k-variable model identified by forward stepwise are a subset of
the predictors in the (k + 1)-variable model identified by forward stepwise selection.
4. True or False: The predictors in the k-variable model identified by best subset are a subset of the
predictors in the (k + 1)-variable model identified by best subset selection.
5. True or False: The lasso, relative to OLS, is less flexible and hence will give improved prediction
accuracy when its increase in bias is less than its decrease in variance.
2
Problem 2 [20 points]
Suppose we estimate Lasso by minimizing
||Y − Xβ||2
2 + λ||β||1
for a particular value of λ. For part 1 to 5, indicate which of (a) to (e) is correct and explain your answer.
1. As we increase λ from 0, the training RSS will
(a) Increase initially, and then eventually start decreasing in an inverted U shape.
(b) Decrease initially, and then eventually start increasing in a U shape.
(c) Steadily increase.
(d) Steadily decrease.
(e) Remain constant.
2. Repeat 1. for test RSS.
3. Repeat 1. for variance.
4. Repeat 1. for (squared) bias.
3
Problem 3 [20 points]
These data record the level of atmospheric ozone concentration from eight daily meteorological mea surements made in the Los Angeles basin in 1976. We have the 330 complete cases1. We want to find
climate/weather factors that impact ozone readings. Ozone is a hazardous byproduct of burning fossil
fuels and can harm lung function. The data set for this problem is:
Variable name Definition
ozone Long Maximum Ozone
vh Vandenberg 500 mb Height
wind Wind speed (mph)
humidity Humidity (%)
temp Sandburg AFB Temperature
ibh Inversion Base Height
dpg Daggot Pressure Gradint
ibt Inversion Base Temperature
vis Visibility (miles)
doy Day of the Year
[Note: I would recommend you use R for this question, since python does not have package for
forward / backward selection. See the code example on Canvas. Or you may use the sample python code
I provided.]
1. Report result of linear regression using all variables. Note that ozone is the response variable to
predict. What variables are significant?
2. Report the selected variables using the following model selection approaches.
(a) All subset selection.
(b) Forward stepwise
(c) Backward stepwise
3. Compare the outcome of these methods with the significant variables found in the full linear regres sion in question 1.
4. Potentially, other transformation of covariates might be important. What happens if you do all
subset selection using both the original variables and their square? That is, for all variables, include
4
both
X, X2
in the linear regression model for all subset selection.
5
Problem 4 [20 points]
In this exercise, we will predict the number of applications received using the other variables in the College
data set.
Private Public/private school indicator
Apps Number of applications received
Accept Number of applicants accepted
Enroll Number of new students enrolled
Top10perc New students from top 10% of high school class
Top25perc 1 = New students from top 25 % of high school class
F.Undergrad Number of full-time undergraduates
P.Undergrad Number of part-time undergraduates
Outstate Out-of-state tuition
Room.Board Room and board costs
Books Estimated book costs
Personal Estimated personal spending
PhD Percent of faculty with Ph.D.
Terminal Percent of faculty with terminal degree
S.F.Ratio Student faculty ratio
perc.alumni Percent of alumni who donate
Expend Instructional expenditure per student
Grad.Rate Graduation rate
1. Split the data set into a training set and a test set.
2. Fit a linear regression model using OLS on the training set, and report the test error obtained.
3. Fit a ridge regression model on the training set, with λ chosen by cross-validation. Report the test
error obtained.
4. 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.
5. Fit a PCR model on the training set, with number of components chosen by cross-validation. Report
the test error obtained, along with the value of M selected by cross-validation.
6. Fit a PLS model on the training set, with number of components chosen by cross-validation. Report
the test error obtained, along with the value of number of components selected by cross-validation.
6
Problem 5 [20 points]
We will now try to predict per capita crime rate in the Boston data set.
crim per capita crime rate by town.
zn proportion of residential land zoned for lots over 25,000 sq.ft.
indus proportion of non-retail business acres per town.
chas Charles River dummy variable (= 1 if tract bounds river; 0 otherwise).
nox nitrogen oxides concentration (parts per 10 million).
rm 1 = average number of rooms per dwelling.
age proportion of owner-occupied units built prior to 1940.
dis weighted mean of distances to five Boston employment centres.
rad index of accessibility to radial highways.
tax full-value property-tax rate per $10,000.
ptratio pupil-teacher ratio by town.
black 1000(Bk − 0.63)2 where Bk is the proportion of blacks by town.
lstat lower status of the population (percent).
medv median value of owner-occupied homes in $1000s.
1. Try out some of the regression methods explored in this chapter, such as best subset selection, the
lasso, ridge regression, PCR and partial least squares. Present and discuss results for the approaches
that you consider.
2. Propose a model (or set of models) that seem to perform well on this data set, and justify your
answer. Make sure that you are evaluating model performance using validation set error, cross validation, or some other reasonable alternative, as opposed to using training error.
3. Does your chosen model involve all of the features in the data set? Why or why not?
7
Problem 6 [20 points]
In a bike sharing system the process of obtaining membership, rental, and bike return is automated
via a network of kiosk locations throughout a city. In this problem, you will try to combine historical
usage patterns with weather data to forecast bike rental demand in the Capital Bikeshare program in
Washington, D.C.
You are provided hourly rental data collected from the Capital Bikeshare system spanning two years.
The file Bike train.csv, as the training set, contains data for the first 19 days of each month, while
Bike test.csv, as the test set, contains data from the 20th to the end of the month. The dataset includes
the following information:
daylabel day number ranging from 1 to 731
year, month, day, hour hourly date
season 1=spring,2=summer,3=fall,4=winter
holiday whether the day is considered a holiday
workingday whether the day is neither a weekend nor a holiday
weather 1 = clear, few clouds, partly cloudy
2 = mist + cloudy, mist + broken clouds, mist + few clouds, mist
3 = light snow, light rain + thunderstorm + scattered clouds, light rain
4 = 4 = heavy rain + ice pallets + thunderstorm + mist, snow + fog
temp temperature in Celsius
atemp ’feels like’ temperature in Celsius
humidity relative humidity
wind speed wind speed
count number of total rentals, outcome variable to predict
Predictions will be evaluated using the root mean squared error (RMSE), calculated as
RMSE =
v
u
u t
n
1
nX
i=1
(yi − ybi)
2
where yi
is the true count, ybi
is the prediction, and n is the number of entries to be evaluated.
Build a model on train dataset to predict the bikeshare counts for the hours recorded in the test
dataset. Report your prediction RMSE on testing set.
Some tips
• This is a relatively open question, you may use any model you learnt from this class.
8
• It will be helpful to examine the data graphically to spot any seasonal pattern or temporal trend.
• There is one day in the training data with weird atemp record and another day with abnormal
humidity. Find those rows and think about what you want to do with them. Is there anything
unusual in the test data?
• It might be helpful to transform the count to log(count + 1). If you did that, do not forget to
transform your predicted values back to count.
• Think about how you would include each predictor into the model, as continuous or as categorical?
• Is there any transformation of the predictors or interactions between them that you think might be
helpful?
Try to summarize your exploration of the data, and modeling process. You may fit a few models and
chose one from them. You will receive points based on your write-up and test RMSE. This is not a
competition among the class to achieve the minimal RMSE, but your result should be in a reasonable
range.


請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp



 

掃一掃在手機打開當(dāng)前頁
  • 上一篇:INT5051代做、代寫Python編程設(shè)計
  • 下一篇:代寫COMP3334、代做C/C++,Python編程
  • 無相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業(yè)CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業(yè)CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真技術(shù)服務(wù)
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強度疲勞振動
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)40個行業(yè)
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務(wù)平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內(nèi)
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 寵物飼養(yǎng) 十大衛(wèi)浴品牌排行 suno 豆包網(wǎng)頁版入口 wps 目錄網(wǎng) 排行網(wǎng)

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    九九久久久久久久久激情| 精品午夜一区二区| 国产精品入口免费| 色妞欧美日韩在线| 91高清免费在线观看| 丰满爆乳一区二区三区| 国产乱码精品一区二区三区日韩精品| 国产一区免费在线| 国产区欧美区日韩区| 国产色综合天天综合网| 国产欧美韩国高清| 91精品视频专区| 国产成人综合一区| 久久精品亚洲一区| 欧美成人一区在线| 欧美激情久久久久久| 一区二区视频在线免费| 欧美日韩一区二区三区在线视频| 久久久精品国产亚洲| 国模精品系列视频| 欧美精品一区二区性色a+v| 极品校花啪啪激情久久| 国产日韩欧美精品在线观看| 99久久免费观看| 国产成人a亚洲精品| 日韩一区二区久久久| 国产精品久久综合av爱欲tv| 久久99精品久久久久久青青91| 亚洲人久久久| 青青在线免费视频| 国产一区二区高清视频| 91免费精品视频| 久久久久北条麻妃免费看| 欧美精品videos| 五月天综合婷婷| 青草成人免费视频| 国产日本欧美视频| 久久99国产精品99久久| 精品久久久久久一区二区里番| 午夜精品一区二区在线观看的| 欧美在线视频网站| av无码精品一区二区三区| 视频直播国产精品| 欧美极品在线视频| 人妻夜夜添夜夜无码av| 国产免费高清一区| 日韩在线观看成人| 亚洲精品日韩激情在线电影| 黄色网zhan| 久久精品五月婷婷| 欧美激情xxxxx| 欧美日韩一区二区三区在线视频| 成人免费视频91| 国产精品日韩精品| 日韩中文一区| 国产精品一区二区a| 久久久www成人免费精品张筱雨| 亚洲人成网站在线播放2019| 国产一级做a爰片久久毛片男| 国产成人综合精品在线| 亚洲综合精品伊人久久| 国产又黄又爽免费视频| 国产成人精品无码播放| 日本久久亚洲电影| 91精品视频一区| 欧美猛交ⅹxxx乱大交视频| 任我爽在线视频精品一| 久久久视频在线| 亚洲人成77777| 国产精选在线观看91| 欧美美最猛性xxxxxx| 欧美极品欧美精品欧美| 久久久久久亚洲| 日韩不卡视频一区二区| 91久久国产综合久久91精品网站| 国产精品国产精品国产专区蜜臀ah| 日韩av免费一区| 97久久伊人激情网| 欧美极品在线视频| 蜜桃视频在线观看91| 久久久久久久免费视频| 日本中文字幕久久看| 7777精品伊久久久大香线蕉语言| 亚洲综合自拍一区| av 日韩 人妻 黑人 综合 无码| 欧美精品一区二区三区国产精品| 激情五月五月婷婷| 国产精品视频免费一区二区三区| 欧美牲交a欧美牲交aⅴ免费下载 | 国产片侵犯亲女视频播放| 久久久精品免费视频| 热99这里只有精品| 日韩在线视频导航| 欧美在线视频观看免费网站| 久久久久久久久久婷婷| 日韩女优人人人人射在线视频| 国产高清在线精品一区二区三区| 日韩av电影国产| 久久国产一区二区| 欧美无砖专区免费| 国产精品对白刺激久久久| 国产拍精品一二三| 亚洲一区中文字幕在线观看| 91精品国产综合久久男男| 亚洲一区三区电影在线观看| 91九色视频在线| 日韩欧美视频网站| 国产精品日韩在线| 国产欧美日韩专区发布| 亚洲三级一区| 久久国产精品一区二区三区四区| 热re99久久精品国产66热| 国产精品欧美亚洲777777| 蜜桃在线一区二区三区精品| 色综合久久天天综线观看| 91久久精品一区| 欧美综合第一页| 欧美猛交ⅹxxx乱大交视频| www亚洲国产| 五码日韩精品一区二区三区视频| 国产高清免费在线| 欧美日韩亚洲国产成人| 欧美精品videos性欧美| 国产成人亚洲精品| 国产在线一区二区三区欧美| 一卡二卡三卡视频| 久久久久久久久国产| 国产中文字幕日韩| 无码av天堂一区二区三区| 久久久精品国产亚洲| 成人免费视频久久| 欧美综合在线第二页| 久久av资源网站| 国产成人永久免费视频| 女同一区二区| 岛国视频一区| 国产精品福利视频| 国产高清av在线播放| 欧美性受xxx| 亚洲一区免费看| 国产精品视频资源| 114国产精品久久免费观看| 国内精品久久久久久中文字幕| 亚洲一区二区三区在线免费观看 | 欧美激情一级精品国产| 久在线观看视频| 欧美日韩精品免费观看| 欧美激情一区二区三区久久久| 久久久久免费视频| 丰满少妇久久久| 欧美日韩亚洲在线| 日韩av免费在线播放| 欧美激情免费在线| 国产精品美女久久| 久久99国产精品99久久| 91九色国产视频| 国产一区二区三区高清| 欧美性受xxx| 日韩一二区视频| 亚洲在线免费视频| 久久国产精品网站| 精品国产一区av| 国产高清精品一区二区三区| 成人免费网视频| 精品视频免费观看| 欧美精品中文字幕一区二区| 偷拍盗摄高潮叫床对白清晰| 欧美激情亚洲国产| 欧美猛少妇色xxxxx| 国产精品久久久久久久一区探花| 久久久久久这里只有精品| 国产精品a久久久久久| 日韩欧美亚洲在线| 午夜久久资源| 欧美精品久久久久a| 国产精品久久久av久久久| 国产成人亚洲综合91| 69精品小视频| 91福利视频导航| 91精品久久久久久久久久| 97精品国产91久久久久久| 91久久综合亚洲鲁鲁五月天| 国产情人节一区| 国产一区二区丝袜| 国产区日韩欧美| 国产乱码精品一区二区三区日韩精品| 精品视频在线观看一区| 黄色一级在线视频| 韩国欧美亚洲国产| 免费一级特黄毛片| 国产色婷婷国产综合在线理论片a| 麻豆av福利av久久av| 国产一区二区三区四区五区在线| 蜜桃传媒视频第一区入口在线看| 国内精品模特av私拍在线观看| 麻豆av一区二区三区| 国产免费一区视频观看免费| 国产精品一区二区不卡视频| 97碰在线观看| 久久久性生活视频|