开始使用免费开始使用

Dyadicity of churners

In this exercise, you will compute the dyadicity amongst the churners in the network to see if they share more or fewer edges than expected in a random configuration of the network.

The variables ChurnNodes, ChurnEdges, and connectance are available for you to use.

For expected dyadicity, use the formula \( \frac{n_ C\cdot (n_ C - 1)}{2} \cdot p\), where \(n_C\) is the number of churners, \(N\) is the number of nodes, and \(p\) is the connectance. Dyadicity of the churners is the ratio between the actual churners and the expected churn dyadicity.

本练习是课程的一部分

Predictive Analytics using Networked Data in R

查看课程

练习说明

  • Compute the expected dyadicity of churners and assign it to the variable ExpectedDyadChurn.
  • Compute the dyadicity of the churners by dividing ChurnEdges with ExpectedDyadChurn. Call this value DyadChurn.
  • Inspect DyadChurn.

交互式实操练习

通过完成这段示例代码来试试这个练习。

# Compute the expected churn dyadicity
ExpectedDyadChurn <- ___ * (___) * connectance / 2
 
# Compute the churn dyadicity
DyadChurn <- ___ / ___
 
# Inspect the value
___
编辑并运行代码