• R语言电信公司churn数据客户流失 k近邻(knn)模型预测分析


    Data background

    A telephone company is interested in determining which customer characteristics are useful for predicting churn, customers who will leave their service. 

    The data set  is Churn . The fields are as follows:

    State

     discrete.

    account length

     continuous.

    area code

     continuous.

    phone number

     discrete.

    international plan

     discrete.

    voice mail plan

     discrete.

    number vmail messages

     continuous.

    total day minutes

     continuous.

    total day calls

     continuous.

    total day charge

     continuous.

    total eve minutes

     continuous.

    total eve calls

     continuous.

    total eve charge

     continuous.

    total night minutes

     continuous.

    total night calls

     continuous.

    total night charge

     continuous.

    total intl minutes

     continuous.

    total intl calls

     continuous.

    total intl charge

     continuous.

    number customer service calls

     continuous.

    churn

     Discrete


    Data Preparation and Exploration 

    1. 查看数据概览
    2. ## state account.length area.code phone.number
    3. ## WV : 158 Min. : 1.0 Min. :408.0 327-1058: 1
    4. ## MN : 125 1st Qu.: 73.0 1st Qu.:408.0 327-1319: 1
    5. ## AL : 124 Median :100.0 Median :415.0 327-2040: 1
    6. ## ID : 119 Mean :100.3 Mean :436.9 327-2475: 1
    7. ## VA : 118 3rd Qu.:127.0 3rd Qu.:415.0 327-3053: 1
    8. ## OH : 116 Max. :243.0 Max. :510.0 327-3587: 1
    9. ## (Other):4240 (Other) :4994
    10. ## international.plan voice.mail.plan number.vmail.messages
    11. ## no :4527 no :3677 Min. : 0.000
    12. ## yes: 473 yes:1323 1st Qu.: 0.000
    13. ## Median : 0.000
    14. ## Mean : 7.755
    15. ## 3rd Qu.:17.000
    16. ## Max. :52.000
    17. ##
    18. ## total.day.minutes total.day.calls total.day.charge total.eve.minutes
    19. ## Min. : 0.0 Min. : 0 Min. : 0.00 Min. : 0.0
    20. ## 1st Qu.:143.7 1st Qu.: 87 1st Qu.:24.43 1st Qu.:166.4
    21. ## Median :180.1 Median :100 Median :30.62 Median :201.0
    22. ## Mean :180.3 Mean :100 Mean :30.65 Mean :200.6
    23. ## 3rd Qu.:216.2 3rd Qu.:113 3rd Qu.:36.75 3rd Qu.:234.1
    24. ## Max. :351.5 Max. :165 Max. :59.76 Max. :363.7
    25. ##
    26. ## total.eve.calls total.eve.charge total.night.minutes total.night.calls
    27. ## Min. : 0.0 Min. : 0.00 Min. : 0.0 Min. : 0.00
    28. ## 1st Qu.: 87.0 1st Qu.:14.14 1st Qu.:166.9 1st Qu.: 87.00
    29. ## Median :100.0 Median :17.09 Median :200.4 Median :100.00
    30. ## Mean :100.2 Mean :17.05 Mean :200.4 Mean : 99.92
    31. ## 3rd Qu.:114.0 3rd Qu.:19.90 3rd Qu.:234.7 3rd Qu.:113.00
    32. ## Max. :170.0 Max. :30.91 Max. :395.0 Max. :175.00
    33. ##
    34. ## total.night.charge total.intl.minutes total.intl.calls total.intl.charge
    35. ## Min. : 0.000 Min. : 0.00 Min. : 0.000 Min. :0.000
    36. ## 1st
  • 相关阅读:
    FoFa 查询工具(fofax)
    Linux进程控制
    Qt源码调试
    水晶球,构造回文(关键词-字符串)
    vue2+three.js+blender(实现3d 模型引入并可点击效果)
    算法通关村第十二关白银挑战——仅仅反转英文字母问题解析
    设备接入高版本JDK与SSL协议问题解决方案
    SpringMVC与JavaConfig笔记整理
    广州蓝景分享—「JavaScript」this关键字的五个重要事项
    【python入门专项练习】-N02.字符串
  • 原文地址:https://blog.csdn.net/tecdat/article/details/127652987