快乐8你应该了解的几个数据
# 大小比一般为0.45/0.5,也就是说小于等于40的数,和大于40 的数在20个号码基本各占一半,有时候小数多1-2个,有时候大数多那么1-2个,有时候一样多,大数和小数在选择时可选择差不多。
# 奇偶比:奇偶比也和大小比差不多,偶数和奇数相差也就1到2之间为主。从来没出现全奇数,或者全偶数的情况;
# 重复号码个数:一般每期都有5个左右的下移号码;
# 遗漏值为1的号码个数:平均每期有4个左右的隔了一期的号码出现;
# 遗漏值为2的号码个数:每期大约有4个左右的号码为隔了一期的。
统计代码如下,仅供娱乐。
def analyze_data(data):
# 江东旭侯快乐8统计代码1初始化统计变量
size_ratios = [] # 大小比
odd_even_ratios = [] # 奇偶比
repeat_counts = [] # 重复号码个数
遗漏1_counts = [] # 遗漏值为1的号码个数
遗漏2_counts = [] # 遗漏值为2的号码个数
遗漏3_counts = [] # 遗漏值为3的号码个数
# 遍历每一期数据
for i in range(len(data)):
# 计算大小比
size_ratio = sum(1 for num in data[i] if num > 40) / len(data[i])
size_ratios.append(size_ratio)
# 计算奇偶比
odd_even_ratio = sum(1 for num in data[i] if num % 2 == 1) / len(data[i])
odd_even_ratios.append(odd_even_ratio)
# 计算重复号码个数
if i > 0:
repeat_count = sum(1 for num in data[i] if num in data[i-1])
repeat_counts.append(repeat_count)
else:
repeat_counts.append(0)
# 计算遗漏值
if i > 0:
遗漏1_count = sum(1 for num in data[i] if num not in data[i-1] and (i == 1 or num in data[i-2]))
遗漏2_count = sum(1 for num in data[i] if num not in data[i-1] and num not in data[i-2] and (i == 2 or num in data[i-3]))
遗漏3_count = sum(1 for num in data[i] if num not in data[i-1] and num not in data[i-2] and num not in data[i-3])
else:
遗漏1_count = 0
遗漏2_count = 0
遗漏3_count = 0
遗漏1_counts.append(遗漏1_count)
遗漏2_counts.append(遗漏2_count)
遗漏3_counts.append(遗漏3_count)
return size_ratios, odd_even_ratios, repeat_counts, 遗漏1_counts, 遗漏2_counts, 遗漏3_counts
# 示例数据最近十一期数据从第一行开始第一行为对比最后统计为0
data = [
[1,2,11,15,16,19,23,32,43,45,46,48,53,55,57,62,68,77,79,80],
[1,3,7,13,18,27,31,32,37,43,47,48,51,52,53,61,64,65,73,80],
[5,9,13,22,23,24,28,31,33,34,37,45,46,48,50,52,55,63,72,76],
[2,3,12,16,18,21,24,33,45,46,50,53,55,62,68,70,71,72,79,80],
[1,2,5,6,11,14,21,26,37,40,41,43,45,50,57,60,61,67,73,78],
[6,8,10,11,13,14,27,30,32,33,35,38,47,50,52,56,62,65,71,76],
[3,6,8,11,14,15,20,25,26,28,39,49,54,56,57,61,63,66,76,77],
[5,6,7,8,13,17,21,25,32,33,36,41,46,55,59,62,68,70,74,76],
[1,7,10,12,16,21,25,26,29,30,33,34,36,37,41,53,71,72,73,75],
[2,3,5,7,12,13,23,26,29,39,43,44,48,60,62,63,64,74,77,79],
[4,11,12,13,17,20,23,33,40,43,44,50,53,60,63,65,67,68,72,80]
]
# 调用函数并获取统计结果
size_ratios, odd_even_ratios, repeat_counts, 遗漏1_counts, 遗漏2_counts, 遗漏3_counts = analyze_data(data)
# 打印统计结果
print("统计结果:")
print(f"大小比(大于40为大数): {size_ratios}")
print(f"奇偶比(奇数比例): {odd_even_ratios}")
print(f"重复号码个数: {repeat_counts}")
print(f"遗漏值为1的号码个数: {遗漏1_counts}")
print(f"遗漏值为2的号码个数: {遗漏2_counts}")
print(f"遗漏值为3的号码个数: {遗漏3_counts}")
运行统计结果:
大小比(大于40为大数): [0.6, 0.55, 0.45, 0.6, 0.5, 0.4, 0.45, 0.45, 0.3, 0.5, 0.55]
奇偶比(奇偶比例): [0.6, 0.7, 0.5, 0.4, 0.6, 0.4, 0.5, 0.5, 0.6, 0.55, 0.5]
快乐8重复号码个数: [0, 6, 5, 7, 4, 4, 6, 4, 6, 4, 7]
遗漏值为1的号码个数: [0, 14, 4, 4, 2, 3, 3, 4, 1, 4, 3]
遗漏值为2的号码个数: [0, 3, 11, 5, 4, 3, 1, 3, 3, 4, 2]
.....
第一行作为对比用,最后统计为0