• 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
  • 相关阅读:
    C语言共用体详解
    使用位运算技巧比较两个数中较大的数
    Python:实现fibonacci斐波那契算法(附完整源码)
    chrome 外网很多网站提示验证错误进不去问题
    Go 语言中的 Cond 机制详解
    【NetCore】依赖注入的一些理解与分享
    MySQL总结
    postgres in (?,?) 和 =any(?) 用法/性能对比
    Spring如何通过三级缓存来解决循环依赖
    MuziDB数据库-0.项目描述
  • 原文地址:https://blog.csdn.net/tecdat/article/details/127652987