99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

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

代寫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編程
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 豆包 幣安下載 AI生圖 目錄網

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

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

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          9000px;">

                日本精品视频一区二区三区| 婷婷综合久久一区二区三区| 欧美电影影音先锋| 欧美大片一区二区| 久久精品国产精品亚洲红杏| 欧美日韩激情一区二区三区| 久久97超碰色| 亚洲国产精品二十页| 日本高清无吗v一区| 亚洲精品乱码久久久久久日本蜜臀| 在线亚洲一区观看| 亚洲v日本v欧美v久久精品| 2023国产精华国产精品| 国产福利精品导航| 一区二区三区在线免费视频| 成人av影院在线| 日韩和欧美的一区| 精品国产一区二区国模嫣然| 日韩欧美国产麻豆| 成人精品国产福利| 亚洲成a人v欧美综合天堂下载| 国产网站一区二区| 色综合久久久久综合| 亚洲精品亚洲人成人网| 欧美精品xxxxbbbb| 91啪亚洲精品| 免费看精品久久片| 一区二区成人在线观看| 日韩你懂的在线观看| 成人一级黄色片| 免费不卡在线视频| 国产精品福利一区| 国产欧美在线观看一区| 欧美日韩精品是欧美日韩精品| 成人亚洲精品久久久久软件| 亚洲小说春色综合另类电影| 亚洲欧洲色图综合| 精品黑人一区二区三区久久| 午夜精品免费在线| 亚洲人成小说网站色在线| 欧美一二三四区在线| 欧美午夜电影一区| 国产.欧美.日韩| 狠狠色丁香久久婷婷综合丁香| 亚洲欧美视频在线观看| 精品国产免费人成电影在线观看四季| 色激情天天射综合网| 中文字幕久久午夜不卡| 日韩欧美久久久| 91在线你懂得| 色丁香久综合在线久综合在线观看| 日本大胆欧美人术艺术动态| 奇米在线7777在线精品 | 欧美性生交片4| av激情综合网| 国产凹凸在线观看一区二区| 国产**成人网毛片九色 | 国产精品三级视频| 精品黑人一区二区三区久久| 精品日韩在线观看| 日韩一二三区不卡| 国产亚洲午夜高清国产拍精品| 日韩欧美国产三级| 国产精品视频线看| 国产丝袜欧美中文另类| 国产精品福利影院| 国产精品久久久久影院色老大| 在线观看视频91| 欧美一级免费大片| 91精品国产乱码久久蜜臀| 久久久精品免费网站| 精品国精品自拍自在线| 国产精品久久久久久久久快鸭| 欧美国产视频在线| 亚洲一区二区三区免费视频| 一区二区三区精密机械公司| 久久不见久久见中文字幕免费| 天天色天天爱天天射综合| 国产精品99久| 91麻豆国产福利在线观看| 日韩片之四级片| 久久精品视频在线看| 欧美区视频在线观看| 日韩一本二本av| 91久久精品一区二区三区| 日韩一级免费观看| 国产校园另类小说区| 天天综合色天天| 精品一区二区免费在线观看| 色哟哟一区二区在线观看| 欧美日韩中文另类| 国产精品色呦呦| 一区二区三区在线视频观看| 国产成人精品影视| 在线一区二区观看| 日本一区二区电影| 亚洲午夜三级在线| 国产成人精品亚洲午夜麻豆| 94-欧美-setu| 日韩欧美电影一二三| 欧美在线一二三四区| 99精品视频一区| 国产亚洲一区二区三区四区| 精品奇米国产一区二区三区| 一级中文字幕一区二区| 麻豆精品一区二区三区| 欧美乱熟臀69xxxxxx| 国产精品视频观看| 粉嫩av一区二区三区在线播放| 91福利国产成人精品照片| 国产亚洲精品bt天堂精选| 亚洲成av人综合在线观看| 91视频免费观看| 26uuuu精品一区二区| 免费av成人在线| 欧美手机在线视频| 婷婷中文字幕综合| 91在线国产观看| 一区二区三区国产精华| 国产高清久久久久| 欧美激情中文字幕| 久久精品噜噜噜成人av农村| 日韩一区二区在线免费观看| 亚洲色图欧美在线| 91久久精品一区二区二区| 国产日韩精品久久久| 国产福利一区二区三区| 日韩欧美一级二级| 国内外成人在线| 日韩视频一区二区三区在线播放 | 久久久不卡网国产精品二区| 国产欧美日韩在线| 精品国精品国产尤物美女| 亚洲一级二级在线| 日本韩国一区二区三区视频| 久久影音资源网| 欧美日免费三级在线| 亚洲a一区二区| 欧美日韩日日摸| 麻豆freexxxx性91精品| 欧美久久高跟鞋激| 捆绑紧缚一区二区三区视频| 欧美一区二区视频在线观看2022| 麻豆一区二区三| 成人av午夜影院| 亚洲国产成人porn| 欧美久久久影院| 成人爽a毛片一区二区免费| 欧美日韩一区二区电影| 国内精品国产成人国产三级粉色 | 日韩一级大片在线| 欧美日免费三级在线| 一区二区不卡在线视频 午夜欧美不卡在| 精品一区免费av| 国产精品视频看| a美女胸又www黄视频久久| 亚洲黄色小视频| 91成人在线观看喷潮| 日韩精品一二三| 日韩三级免费观看| 成人免费高清在线| 亚洲天堂a在线| 日韩你懂的在线播放| 韩国三级电影一区二区| 中文字幕一区二区三区蜜月| 91在线无精精品入口| 免费在线看一区| 91污片在线观看| 中文天堂在线一区| 欧美性三三影院| 日韩av一区二区三区四区| 国产精品欧美精品| 欧美日韩免费观看一区二区三区 | 91麻豆精品国产| 99久久免费精品高清特色大片| 亚洲视频免费看| 久久久久久久久97黄色工厂| 成人深夜在线观看| 经典三级视频一区| 亚洲色图在线播放| 国产欧美综合在线观看第十页| 在线亚洲精品福利网址导航| 国产a区久久久| 亚洲成人自拍一区| 亚洲综合另类小说| 精品久久久久久亚洲综合网| 欧美猛男gaygay网站| 国产成a人亚洲| 国产精品影视在线| 午夜国产精品一区| 亚洲一区二区在线播放相泽| 久久亚洲综合色| 日韩欧美成人一区二区| 色婷婷香蕉在线一区二区| 99久久亚洲一区二区三区青草| 秋霞午夜鲁丝一区二区老狼| 视频精品一区二区| 69久久夜色精品国产69蝌蚪网| 欧美视频日韩视频| 亚洲aⅴ怡春院|