CODING(必须使用R进行回答,python/SQL作答加分)
文件:银行.csv
1. 读入该csv,保留标题行,并命名为data. ----
2. 选择data的前两行
3. 选择data的“city”列
4. 选择data的第二行,第三列的单元格,并更改为“1995/09/04“
5. 将姓氏提取出并作为新的列,“last name”
6. 查询“birthdate”的类型,并更改为日期格式
7. 查询“age”的类型,更改为数字格式,并计算出年龄的最小值,最大值,均值,中位数. ----
8. 统计不同城市的人数
9. 随机生成性别列“gender”
10. 将姓名为“李东风”的年龄更改为35(2种方式回答,一种需用到if/else)
11. 遍历工作表的每一行,将性别为女的年龄相加 (使用for循环和if/else)
13.检查单元格是否有空值,使得结果有且仅有一个False
MODELLING(请注意时间,不必纠结,以自己的理解作答,写出大意即可)
1.使用arima构建时间序列的步骤:(若不了解arima,写出了解的时间序列模型名称,并给出简易构建模型过程)
2.建立逻辑回归模型:
a.简述逻辑回归原理
b.在逻辑回归中,使用什么方法来挑选变量?. 1point 3 acres
c.如何判断逻辑回归模型的优劣?
3.描述Kmeans算法的大致原理. 1point3acres.com
4.写出关联规则的support, confidence, lift的公式
计算题
1. There are 1000 respondents to a poll, each favoring their preference for candidates A, B, and C. 54% favored A, 48% favored B, and 42% favored C, and there is 30% favored both A and B. What’s the largest possible number of respondents favoring C, but not C & B, nor C &A.. 1point 3acres
. From 1point 3acres bbs
-baidu 1point3acres
. 1point 3 acres
. From 1point 3acres bbs
|