네트워크 중심성 지표

R로 소셜 미디어 데이터 분석하기

Sowmya Vivek

Data Science Coach

학습 개요

  • 네트워크 중심성 지표 개념
  • 차수 중심성과 매개 중심성
  • 네트워크의 핵심 사용자와 프로모션 캠페인에서의 역할 파악
R로 소셜 미디어 데이터 분석하기

네트워크 중심성 지표

  • 정점의 영향력은 간선 수와 위치로 결정됨
  • 네트워크 중심성은 네트워크에서 정점의 중요도 지표
  • 중심성 지표는 각 정점에 수치 값을 부여
  • 이 값은 다른 정점에 미치는 영향력의 정도를 나타냄
R로 소셜 미디어 데이터 분석하기

차수 중심성

  • 정점 영향력의 가장 단순한 지표
  • 정점의 간선(연결) 수를 나타냄
  • 방향성 네트워크에서는 out-degree와 in-degree가 존재
R로 소셜 미디어 데이터 분석하기

출차수(Out-degree)

출차수

R로 소셜 미디어 데이터 분석하기

입차수(In-degree)

입차수

R로 소셜 미디어 데이터 분석하기

사용자의 차수 중심성

library(igraph)
# Calculate out-degree
out_deg <- degree(nw_rtweet, 
                  "OutfitAww", 
                   mode = c("out"))
out_deg
OutfitAww 
    20
library(igraph)
# Calculate in degree
in_deg <- degree(nw_rtweet, 
                 "OutfitAww", 
                  mode = c("in"))
in_deg
OutfitAww 
   23
R로 소셜 미디어 데이터 분석하기

가장 많이 리트윗한 사용자

# Calculate the out-degree scores
out_degree <- degree(nw_rtweet, mode = c("out"))
# Sort the users in descending order of out-degree scores
out_degree_sort <- sort(out_degree, decreasing = TRUE)
R로 소셜 미디어 데이터 분석하기

가장 많이 리트윗한 사용자

# View the top 3 users
out_degree_sort[1:3]
VanesEtim   RedNileShop     w3daily 
  209           147            62
R로 소셜 미디어 데이터 분석하기

게시물이 가장 많이 리트윗된 사용자

# Calculate the in-degree scores
in_degree <- degree(nw_rtweet, mode = c("in"))
# Sort the users in descending order of in-degree scores
in_degree_sort <- sort(in_degree, decreasing = TRUE)
R로 소셜 미디어 데이터 분석하기

게시물이 가장 많이 리트윗된 사용자

# View the top 3 users
in_degree_sort[1:3]
XyC_129    SocialBflyMag      jisoupy 
  171           167             142
R로 소셜 미디어 데이터 분석하기

매개 중심성

  • 노드들이 서로 사이에 얼마나 위치하는지의 정도
  • 정보가 네트워크를 통과하도록 하는 사용자 역할을 포착
  • 매개 중심성이 높을수록 네트워크에 대한 통제력이 큼

매개 중심성

R로 소셜 미디어 데이터 분석하기

높은 매개 중심성 사용자 식별

# Calculate the betweenness scores of the network
betwn_nw <- betweenness(nw_rtweet, directed = TRUE)
# Sort the users in descending order of betweenness scores
betwn_nw_sort <- betwn_nw %>%
                   sort(decreasing = TRUE) %>%
                   round()
R로 소셜 미디어 데이터 분석하기

높은 매개 중심성 사용자 식별

# View the top 3 users
betwn_nw_sort[1:3]
GuruOfficial   Home_and_Loving    SimplyTasheena 
   65                54                40
R로 소셜 미디어 데이터 분석하기

Ayo berlatih!

R로 소셜 미디어 데이터 분석하기

Preparing Video For Download...