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

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

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

時間:2025-03-07  來源:合肥網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



 

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

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 豆包網頁版入口 破天一劍 目錄網 排行網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    久久人人爽人人爽人人av| 日韩综合中文字幕| 久久久人成影片一区二区三区 | 今天免费高清在线观看国语| 久久天堂国产精品| 亚洲资源视频| www.中文字幕在线| 中文字幕中文字幕在线中一区高清| 精品一区二区三区无码视频| 久久精品国产2020观看福利| 日韩国产一级片| 久久久福利视频| 天堂√在线观看一区二区| 国产精品影片在线观看| 色综合久久悠悠| 国产精品最新在线观看| 宅男av一区二区三区| 国产乱淫av片杨贵妃| 一区二区三区四区久久| 成人精品在线视频| 亚洲图片在线观看| 91九色国产在线| 日韩一级特黄毛片| 国产成人av在线播放| 日韩欧美黄色大片| 国产精品无码专区在线观看| 男人的天堂99| 精品毛片久久久久久| 国产又粗又长又爽视频| 精品国产一区二区三区无码| 国产精品亚洲a| 午夜精品一区二区三区视频免费看| 88国产精品欧美一区二区三区| 天堂av一区二区| 深夜福利一区二区| 欧美a在线视频| 欧美久久精品午夜青青大伊人| 国产日韩欧美夫妻视频在线观看| 久久久久久av| 97久久伊人激情网| 人妻内射一区二区在线视频| y97精品国产97久久久久久| 欧美福利一区二区三区| 国产精品视频免费观看www| 欧美精品久久96人妻无码| 操91在线视频| 97免费在线视频| 欧美综合在线观看视频| 欧美成人精品一区二区| 97色在线观看免费视频| 琪琪亚洲精品午夜在线| 精品国产日本| 国产a级片免费看| 国产亚洲情侣一区二区无| 亚洲xxxx做受欧美| 国产成人精品优优av| 国产九区一区在线| 日韩精品在线中文字幕| zzijzzij亚洲日本成熟少妇| 国产欧美日韩伦理| 色女人综合av| 久久伊人精品视频| 99视频精品免费| 欧美理论一区二区| 亚洲一区不卡在线| 久久九九全国免费精品观看| 成人国产一区二区| 欧美精品久久久久久久自慰| 亚洲一区二三| 国产精品久久久久免费a∨大胸| 99久热re在线精品996热视频| 欧美性视频在线| 亚洲影院污污.| 国产精品视频专区| 久久久久久99| 国产嫩草一区二区三区在线观看| 热久久免费视频精品| 亚洲午夜精品久久| 国产精品国内视频| 久久久久久久久久国产精品| 国产青草视频在线观看| 欧美亚洲第一区| 视频在线99| 在线不卡视频一区二区| 国产精品久久久久久亚洲调教| 久久人人九九| 99热亚洲精品| 国产日韩第一页| 日韩国产在线一区| 五码日韩精品一区二区三区视频| 精品国产电影| 国产精品久久在线观看| 久久久久人妻精品一区三寸| 成人www视频在线观看| 毛片一区二区三区四区| 欧美综合在线观看| 日韩成人av电影在线| 欧美精品video| 久久亚洲一区二区三区四区五区高| 精品国产美女在线| 国产成人福利网站| 国产精品96久久久久久 | 欧美成人蜜桃| 欧美一性一乱一交一视频| 午夜精品免费视频| 一级日韩一区在线观看| 色综合五月天导航| 久久久久国产精品免费网站| 久久99视频免费| 精品国产一区二区三区久久久久久 | 久久伊人色综合| 久久精品免费播放| 久久精品91久久久久久再现| 久久久久久久色| 久久久久久久久综合| 日韩中文娱乐网| 深夜精品寂寞黄网站在线观看| 国产激情综合五月久久| 久久伊人一区二区| 国产极品精品在线观看| 久久人人看视频| 久久久久久中文| 久久66热这里只有精品| 久久国产日韩欧美| 久久久久久国产免费| 日韩视频在线免费| 国产精品视频中文字幕91| 国产精品女人久久久久久| 国产精品视频色| 国产精品电影在线观看| 久久综合电影一区| 欧美激情国产高清| 亚洲在线免费看| 日韩在线电影一区| 欧美一级片免费观看| 日韩女优在线播放| 精品1区2区| 国产一二三区在线播放| 成人精品视频久久久久| 国产精品97在线| 日韩在线播放av| 久久艳片www.17c.com| 国产999在线| 亚洲va码欧洲m码| 日本高清久久天堂| 国内精品一区二区三区| 国产美女精彩久久| 国产精品7m视频| 视频直播国产精品| 国产精品成人观看视频国产奇米| 欧美激情精品久久久久久大尺度| 亚洲免费av网| 日本亚洲导航| 加勒比海盗1在线观看免费国语版| 国产日韩欧美在线视频观看| 91成人免费视频| 久久天天躁狠狠躁夜夜av| 色综合视频网站| 日本精品视频在线| 国产中文字幕在线免费观看| www插插插无码免费视频网站| 久久久久久99| 久久综合久久八八| 亚洲www在线观看| 欧美日韩一区二区视频在线观看 | 亚洲一区二区三区乱码aⅴ蜜桃女| 日韩在线电影一区| 韩国精品一区二区三区六区色诱| 成人一区二区av| 日韩中文字幕第一页| 欧美日韩福利电影| 日韩欧美视频一区二区三区四区| 国产一区二区视频在线观看| 国产精品8888| 欧美巨大黑人极品精男| 日韩欧美视频一区二区三区四区| 国产肉体ⅹxxx137大胆| 久久露脸国产精品| 久久国产精品电影| 日韩精品一区二区三区四| 国产欧美一区二区三区视频| 国产成人一区二| 伊人精品久久久久7777| 欧美国产二区| 国产极品粉嫩福利姬萌白酱| 欧美精品在线视频观看| 日韩欧美一区二区视频在线播放| 国产日韩一区二区三区| 日韩亚洲第一页| 天堂√在线观看一区二区| 国产区日韩欧美| 久草在在线视频| 宅男一区二区三区| 国内精品久久久久久久久| 久久手机在线视频| 欧美精品久久久久a| 麻豆精品蜜桃一区二区三区| 日韩中文字幕av| 亚洲乱码日产精品bd在线观看| 国产日韩欧美二区|