In [1]:
using StatsBase
s = [874, 1293, 1070] ./ 3237
p = [224, 242, 236] ./ 702
s = WeightVec(s)
p = WeightVec(p)
Out[1]:
In [2]:
rs_1 = [0.6224256292906178, 0.7063369397217929, 0.6878504672897197];
rp_1 = [0.22807017543859648,0.23387096774193547, 0.26548672566371684];
rs_2 = [0.6750572082379863, 0.7167182662538699, 0.7009345794392523];
rp_2 = [0.23423423423423423, 0.24369747899159663, 0.2682926829268293];
rs_3 = [0.6613272311212814, 0.6738794435857806, 0.6841121495327103];
rp_3 = [0.30701754385964913, 0.20161290322580644, 0.22123893805309736];
rs_4 = [0.6475972540045767, 0.7368421052631579, 0.6990654205607477];
rp_4 = [0.24324324324324326, 0.226890756302521, 0.2682926829268293];
rs_5 = [0.6544622425629291, 0.6939721792890263, 0.6841121495327103];
rp_5 = [0.32456140350877194, 0.21774193548387097, 0.30973451327433627];
rs_6 = [0.6773455377574371, 0.718266253869969, 0.6766355140186916];
rp_6 = [0.25225225225225223, 0.25210084033613445, 0.3008130081300813];
rs_ens_1 = [0.6864988558352403, 0.7125193199381762, 0.7102803738317757];
rp_ens_1 = [0.34210526315789475, 0.22580645161290322, 0.2920353982300885];
rs_ens_2 = [0.6933638443935927, 0.739938080495356, 0.7140186915887851];
rp_ens_2 = [0.2702702702702703, 0.25210084033613445, 0.3252032520325203];
rs_m = (rs_1 + rs_2 + rs_3 + rs_4 + rs_5 + rs_6) / 6
rp_m = (rp_1 + rp_2 + rp_3 + rp_4 + rp_5 + rp_6) / 6
rs_ens_m = (rs_ens_1 + rs_ens_2) / 2
rp_ens_m = (rp_ens_1 + rp_ens_2) / 2
println("Single: $(rs_m)")
println("Paragraph: $(rp_m)")
println("Weighted Single: $(mean_and_std(rs_m, s))")
println("Weighted Paragraph: $(mean_and_std(rp_m, p))")
println("Ensemble Weighted Single: $(mean_and_std(rs_ens_m, s))")
println("Ensemble Weighted Paragraph: $(mean_and_std(rp_ens_m, p))")
In [4]:
rs_ens_1 = [0.6956521739130435, 0.7217928902627512, 0.7158878504672898];
rp_ens_1 = [0.3333333333333333, 0.21774193548387097, 0.327433628318584];
rs_ens_2 = [0.6933638443935927, 0.7662538699690402, 0.7327102803738318];
rp_ens_2 = [0.24324324324324326, 0.2773109243697479, 0.34959349593495936];
rs_ens_m = (rs_ens_1 + rs_ens_2) / 2
rp_ens_m = (rp_ens_1 + rp_ens_2) / 2
println("Ensemble10 Weighted Single: $(mean_and_std(rs_ens_m, s))")
println("Ensemble10 Weighted Paragraph: $(mean_and_std(rp_ens_m, p))")
In [ ]: