短视频引流占比与销售额的相关性
TOP3直播的引流人次占比
高引流占比直播的带货类目分布
粉丝数与引流能力的关系
import pandas as pd
from scipy.stats import pearsonr
# 假设数据存储在DataFrame df中
data = {
'直播间名称': ...,
'引流人数': ...,
'销售额': ...,
'短视频引流占比': ...,
'粉丝数量': ...
}
df = pd.DataFrame(data)
# 计算相关系数
correlation, _ = pearsonr(df['短视频引流占比'], df['销售额'])
print(f"相关系数: {correlation}")
# 头部效应分析
top3 = df.nlargest(3, '引流人数')
total = df['引流人数'].sum()
top3_ratio = (top3['引流人数'].sum() / total) * 100
print(f"TOP3直播的引流占比: {top3_ratio:.2f}%")
# 类目特征分析(示例)
categories = {
'服装': ...,
'食品': ...,
...
}
category_data = pd.DataFrame({'类目': list(categories.keys()), '平均引流比例': [categories[k] for k in categories]})
print(category_data)
# 粉丝体量分析
fan_correlation, _ = pearsonr(df['粉丝数量'], df['短视频引流占比'])
print(f"粉丝数量与引流能力相关系数: {fan_correlation}")
以上分析数据来源:互联岛