加勒比久久综合,国产精品伦一区二区,66精品视频在线观看,一区二区电影

合肥生活安徽新聞合肥交通合肥房產(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



 

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

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務(wù)-企業(yè)/產(chǎn)品研發(fā)/客戶要求/設(shè)計優(yōu)化
    有限元分析 CAE仿真分析服務(wù)-企業(yè)/產(chǎn)品研發(fā)
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計優(yōu)化
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計優(yōu)化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發(fā)動機性能
    挖掘機濾芯提升發(fā)動機性能
    海信羅馬假日洗衣機亮相AWE  復(fù)古美學與現(xiàn)代科技完美結(jié)合
    海信羅馬假日洗衣機亮相AWE 復(fù)古美學與現(xiàn)代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網(wǎng) 排行網(wǎng)

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

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

    日韩高清欧美激情| 免费一级片91| 亚洲电影一级片| 成人日韩在线观看| 香蕉久久夜色精品国产| 欧美黄色影院| 精品一区二区三区在线观看视频| 亚洲优女在线| 免费精品视频| 极品日韩av| 黄色免费大全亚洲| 欧美激情三级| 福利一区视频| 黄色在线观看www| 在线亚洲免费| 香蕉久久99| 国产精品调教视频| 久久97视频| 亚洲欧美在线专区| 亚洲精品aa| 爱搞国产精品| 久久最新视频| 黄色日韩在线| 久久人人99| 精品理论电影在线| 日韩福利电影在线| 国产一区二区三区免费在线| 日韩一区中文| 青娱乐极品盛宴一区二区| 免费观看在线综合色| 伊人影院久久| 欧美日韩高清| 久久高清免费| 青青视频一区二区| 大陆精大陆国产国语精品| 日韩成人午夜电影| 国产真实有声精品录音| 一区二区三区在线| 日韩精品成人一区二区三区 | 久久福利精品| 欧美日韩少妇| 欧美网站在线| 亚洲免费播放| av不卡在线看| 麻豆精品网站| 男人的j进女人的j一区| 亚洲欧美视频一区二区三区| 亚洲精品1区2区| 国产亚洲成人一区| 香蕉成人久久| 国产一二三在线| 日韩欧美国产精品综合嫩v| 九色porny视频在线观看| 色呦哟—国产精品| 在线天堂新版最新版在线8| 日韩精品一级中文字幕精品视频免费观看 | 一本久久知道综合久久| 99香蕉国产精品偷在线观看 | 免费看的黄色欧美网站| 蜜桃av综合| 国产精品精品| 日本另类视频| 三级不卡在线观看| 欧美日韩 国产精品| 中文视频一区| 精品国产一区二区三区2021| 日韩1区2区3区| 欧美日韩一本| 午夜精品婷婷| 欧美丰满老妇| 亚洲成人高清| 久久久久观看| 日本在线一区二区三区| 成人在线免费视频观看| 欧美 日韩 国产 一区| 一区福利视频| 国产精品粉嫩| 一本综合精品| 国产一区二区三区电影在线观看| 精品伊人久久| 日韩精品免费一区二区在线观看 | 国产精品探花在线观看| av日韩在线播放| 欧美1区2区3区| 日韩av片子| 久久亚洲国产精品尤物| 国产精品一区二区三区四区在线观看 | 日本午夜精品一区二区三区电影 | 日韩在线短视频| 日本一区中文字幕| 亚洲理论电影| 在线一级成人| 97在线精品| 日本在线不卡一区| 日韩av中文在线观看| 国产在线成人| 免费观看日韩电影| 免费永久网站黄欧美| 啪啪亚洲精品| 激情偷拍久久| 女海盗2成人h版中文字幕| 亚洲精品护士| 黄色免费大全亚洲| 天堂va蜜桃一区二区三区 | 91亚洲无吗| 在线观看日韩| 亚洲精品伦理| 日韩电影在线免费看| 美女久久久久| 性欧美videohd高精| 国产欧美高清| 午夜久久一区| 天天综合在线观看| 免费观看性欧美大片无片| 精品1区2区3区4区| 欧美在线国产| 国产一区调教| 九色porny丨入口在线| 国产成人视屏| 伊人情人综合网| 国产精品久久久一区二区| av男人一区| 欧美激情国产在线| 欧美另类中文字幕| 午夜精品亚洲| 日本vs亚洲vs韩国一区三区| 欧美一区自拍| 欧美羞羞视频| 亚洲日本va午夜在线电影| 免费看欧美女人艹b| 综合日韩在线| 红桃视频国产精品| 欧美一区国产在线| 99久久精品费精品国产| 91九色综合| 日韩av在线发布| 四虎成人精品永久免费av九九| 精品一区二区三区视频在线播放| 天天天综合网| 亚洲国产网站| 欧美日韩国产色综合一二三四| 麻豆精品国产91久久久久久| 99久久亚洲精品| 国产精品一卡| 91久久电影| 亚洲精品孕妇| 欧美另类综合| 国产精品欧美日韩一区| 亚洲尤物影院| 日韩精品a在线观看91| 丝袜亚洲另类丝袜在线| 偷拍精品福利视频导航| 97精品一区| 国产精品色在线网站| 成人看片网站| 欧美日韩一二三四| 亚洲三级视频| 另类国产ts人妖高潮视频| 天海翼精品一区二区三区| 另类图片综合电影| 国产精品99久久免费观看| yw.尤物在线精品视频| 久久久久国产精品午夜一区| 亚洲高清资源| 欧美日韩日本国产亚洲在线| 国产精品一区免费在线| 97久久夜色精品国产| 欧美调教在线| 亚洲精品裸体| 免费人成精品欧美精品| 99ri日韩精品视频| 美女视频网站黄色亚洲| 好吊视频一区二区三区四区| 日韩精品丝袜美腿| 日韩av首页| 99国产一区| 日韩在线成人| 日本在线不卡视频| 免费国产自线拍一欧美视频| 91成人福利| 麻豆精品一区二区综合av| 丝袜亚洲另类丝袜在线| 黄色欧美在线| 91精品国产色综合久久不卡粉嫩| 蜜臀久久99精品久久久画质超高清| 一区二区三区免费在线看| 美女看a上一区| 日韩av片子| 激情五月色综合国产精品| 亚洲精品动态| 99精品视频免费观看| 免费欧美在线视频| 99精品在线观看| 五月激激激综合网色播| 国产黄色一区| 日韩a一区二区| japanese国产精品| 日韩第一区第二区| 三级不卡在线观看| 国产精品粉嫩|