|
|
本帖最后由 Menuett 于 2013-12-22 15:59 编辑
0 B: {6 B$ A$ V# F. B5 ?4 ?煮酒正熟 发表于 2013-12-20 12:05 % f: N4 U8 @8 Q9 M- }# _
基本可以说是显著的。总的来说,在商界做统计学分析,95%信心水平是用得最多的,当95%上不显著时,都会去 ... 9 l( [/ K" f9 R' J! ?
5 H( B& h9 p: p, Z" _
这个其实是一种binomial response,应该用Contigency Table或者Logisitic Regression(In case there are cofactors)来做。只记比率丢弃了Number of trial的信息(6841和1217个客户)。 $ W5 S& L- `+ @: I; l
" q" n3 y, y" t, y/ k
结果p=0.5731。 远远不显著。要在alpha level 0.05的水平上检验出76.42%和75.62%的区别,即使实验组和对照组各自样本大小相同,各自尚需44735个样本(At power level 80%)。see: Statistical Methods for Rates and Proportions by Joseph L. Fleiss (1981)) M1 u1 ^& \9 y L1 C+ k
n4 V- p7 x- t) o& VR example:% Z b9 B0 [7 f. j2 B
$ U6 B3 ~% E3 o
> M<-as.table(rbind(c(1668,5173),c(287,930)))
/ F) P8 ]0 G; R+ n" ^> chisq.test(M)3 D! C4 q2 B2 B7 c6 w" s
~: U8 _3 P3 e0 s6 X
Pearson's Chi-squared test with Yates' continuity correction' x. ^+ v* ~6 @' W) [
! V9 u; {0 [- N8 \( S1 K2 y
data: M6 _2 Z& a: ~: G6 S. Y
X-squared = 0.3175, df = 1, p-value = 0.57316 p" [" F# }' h" f+ ]" J
: h5 F. l; o) x5 j$ TPython example:
' }8 S- y: r$ s+ \7 x- d6 q! d) R; K( B! N" _
>>> from scipy import stats
5 ~3 J) G# q3 i! j! s N>>> stats.chi2_contingency([[6841-5173,5173],[1217-930,930]])2 K3 P; h7 [$ v& Z
(0.31748297614660292, 0.57312422493552839, 1, array([[ 1659.73628692, 5181.26371308],7 K( D# D/ ]: K5 E$ M! |4 g/ n
[ 295.26371308, 921.73628692]])) |
|