“Money won is twice as sweet as money earned.” A well-known proverb used in the gambling stands for the fact that the money earned in gambling or by the luck feels more exciting and exaggerating than the hard-earned money of business or service. In our last family trip to Hong Kong during the Chinese New Year, we have planned a stay in Macao for two nights. It was my first interaction with gambling when we visited the biggest casino in China – The Venetian Macao. I came across the power of gambling which may either take one to the height of lifestyle, or to the world of depression due to huge of debts. However, the game of roulette has significantly drawn my attention. It was my belief that there is a scientific approach, if followed, may lead to winning the game.
After my holiday, I went deeper into procedure of the game – Roulette. After studying about the game from various articles, research projects that were previously carried on prediction of correct calls, my interest took a shape of a project. It was in 2017, when I was introduced with concepts and applications of probability in mathematics. It has a significantly contribution behind the mathematical exploration of the analysis on determination of corrected calls in Roulette. My project went well but the Future Prospect of the project was analysis on Red Envelope of WeChat.
This was the moment when I came across the concept of Red Envelope. However, due to some circumstances further work was not carried on at that time. But recently my interest developed again on this field.
I have done a thorough research on the feature of Red Envelope on WeChat. I have gone through a number of research articles and journals where I learnt the algorithm which is followed by WeChat to offer the sum of money in each drawings of Red Envelope. Moreover, I have analyzed several data sets on disbursing cash in each drawing from several newspapers and news articles. However, the answer to the question which was partially answered in the last project on Roulette, was not answered this time, in case of Red Envelope – which term will disburse the maximum amount of money?
Heaped with worries, I decided to research and find the answer to my query. This IA is about the same.
The main motive of this exploration is to determine the variation in probability of determining the maximum share drawn at each drawing. This is to determine a correlation between the number of drawing from the Red Envelope and the amount drawn in each drawing so that any relationship can be derived which may lead to determination of term offering the maximum share.
What is the variation in probability of determining the maximum share of a Red Packet in WeChat at a particular drawing based on five different raw data sets (each of width 30)?
Red Envelope is a feature offered in Chinese multipurpose, social media, messaging and mobile payment app made by Tencent – WeChat. This feature acts as a metaphor to the famous tradition in China – gifting red envelope during any occasion, specially, Chinese New Year. Each envelope usually contains some amount of money which is gifted to the friends and family members as their love, affection, relationship and often as a vode of thanks. WeChat added a feature naming Red Envelope which offers the same, virtually.
Here, a person can send a red envelope with a fixed amount of money in Chinese Yuan (CNY) in a WeChat group. The app gives the user, the liberty to set his desired amount of money and the number of drawings that could be made. Once the settings are done and the envelope is sent, the other members of the group will be able to draw from the envelope. It should be noted that the money disbursed in each drawing is not pre-determined and works on an algorithm. Neither the user who sent the envelope, nor the other members of the group can pre-determine the amount of money disbursed in each drawing.
Once the number of drawings set by the user is reached, no more members can draw money from that red envelope and the envelope will be terminated. The money received by the members will be directly deposited in their bank accounts linked with WeChat. It should be noted that the total amount of money sent in the envelope will be disbursed only if the number of drawings is reached. The envelope remains valid only for a day. Thus, if the total number of drawings is not reached by the end of the day, the remaining amount of money is refunded to the user.
The maximum amount of money that could be added in a red envelope is 200 CNY and the maximum number of drawings could be set to 100.
The probability of occurrence of an event is:
Probability (P) = \(\frac{Number\ of\ Favourable\ Outcome}{Total\ Number\ of\ Sample\ Spaces}\)
Regression correlation coefficient is a tool to measure the strength of the correlation between the independent variable and the dependent variable. The set of values (x1,y1), (x2,y2), (xn,yn) are used to find the value of r as stated by the formula below:
r = \(\frac{n\big(\sum xy)-(\sum x)(\sum y)}{\sqrt{[n\sum x^2-\big(\sum x\big)^2][n\sum y^2-\big(\sum y\big)^2]}}\)
In the above-mentioned formula, x is the value of independent variable of each observation, y is the value of dependent variable of each observation, xy is the value of the product of the independent and the dependent variable of each observation, n is the number of observation and ∑ denotes the sum of all the observation of the mentioned variable.
By squaring the value of r, the value of the regression coefficient (r2) will be achieved. The value of r2 lies between 0 and 1 where 1 signifies maximum correlation whereas 0 signifies null correlation.
Chi squared test is a kind of analysis which predicts the existence of any correlation between an independent variable and a dependent variable. The Chi squared value of any given set of data is firstly calculated. Now, based on the type of data, for example, paired data or independent data, the Chi squared value is checked in the Chi squared table which further predicts the existence of any correlation.
The formula of Chi squared value is given below:
X2 value = Σ \(\frac{(O_i-E_i)^2}{E_i}\)
Here, Oi is the observed value, Ei is the expected value, ∑ denotes the sum of all the observation of the mentioned variable.
Now, the Chi squared value is checked in Chi squared table which predicts the existence of any correlation. The Chi squared table is shown below:
df | 0.995 | 0.99 | 0.975 | 0.95 | 0.90 | 0.10 | 0.05 | 0.025 | 0.01 | 0.005 |
---|---|---|---|---|---|---|---|---|---|---|
1 | --- | --- | 0.001 | 0.004 | 0.016 | 2.706 | 3.841 | 5.024 | 6.635 | 7.879 |
2 | 0.010 | 0.020 | 0.051 | 0.103 | 0.211 | 4.605 | 5.991 | 7.378 | 9.210 | 10.597 |
3 | 0.072 | 0.115 | 0.216 | 0.352 | 0.584 | 6.251 | 7.815 | 9.348 | 11.345 | 12.838 |
4 | 0.207 | 0.297 | 0.484 | 0.711 | 1.064 | 7.779 | 9.488 | 11.143 | 13.277 | 14.860 |
5 | 0.412 | 0.554 | 0.831 | 1.145 | 1.610 | 9.236 | 11.070 | 12.833 | 15.086 | 16.750 |
6 | 0.676 | 0.872 | 1.237 | 1.635 | 2.204 | 10.645 | 12.592 | 14.449 | 16.812 | 18.548 |
7 | 0.989 | 1.239 | 1.690 | 2.167 | 2.833 | 12.017 | 14.067 | 16.013 | 18.475 | 20.278 |
8 | 1.344 | 1.646 | 2.180 | 2.733 | 3.490 | 13.362 | 15.507 | 17.535 | 20.090 | 21.955 |
9 | 1.735 | 2.088 | 2.700 | 3.325 | 4.168 | 14.684 | 16.919 | 19.023 | 21.666 | 23.589 |
10 | 2.156 | 2.558 | 3.247 | 3.940 | 4.865 | 15.987 | 18.307 | 20.483 | 23.209 | 25.188 |
11 | 2.603 | 3.053 | 3.816 | 4.575 | 5.578 | 17.275 | 19.675 | 21.920 | 24.725 | 26.757 |
12 | 3.074 | 3.571 | 4.404 | 5.226 | 6.304 | 18.549 | 21.026 | 23.337 | 26.217 | 28.300 |
13 | 3.565 | 4.107 | 5.009 | 5.892 | 7.042 | 19.812 | 22.362 | 24.736 | 27.688 | 29.819 |
14 | 4.075 | 4.660 | 5.629 | 6.571 | 7.790 | 21.064 | 23.685 | 26.119 | 29.141 | 31.319 |
15 | 4.601 | 5.229 | 6.262 | 7.261 | 8.547 | 22.307 | 24.996 | 27.488 | 30.578 | 32.801 |
16 | 5.142 | 5.812 | 6.908 | 7.962 | 9.312 | 23.542 | 26.296 | 28.845 | 32.000 | 34.267 |
17 | 5.697 | 6.408 | 7.564 | 8.672 | 10.085 | 24.769 | 27.587 | 30.191 | 33.409 | 35.718 |
18 | 6.265 | 7.015 | 8.231 | 9.390 | 10.865 | 25.989 | 28.869 | 31.526 | 34.805 | 37.156 |
19 | 6.844 | 7.633 | 8.907 | 10.117 | 11.651 | 27.204 | 30.144 | 32.852 | 36.191 | 38.582 |
20 | 7.434 | 8.260 | 9.591 | 10.851 | 12.443 | 28.412 | 31.410 | 34.170 | 37.566 | 39.997 |
21 | 8.034 | 8.897 | 10.283 | 11.591 | 13.240 | 29.615 | 32.671 | 35.479 | 38.932 | 41.401 |
22 | 8.643 | 9.542 | 10.982 | 12.338 | 14.041 | 30.813 | 33.924 | 36.781 | 40.289 | 42.796 |
23 | 9.260 | 10.196 | 11.689 | 13.091 | 14.848 | 32.007 | 35.172 | 38.076 | 41.638 | 44.181 |
24 | 9.886 | 10.856 | 12.401 | 13.848 | 15.659 | 33.196 | 36.415 | 39.364 | 42.980 | 45.559 |
25 | 10.520 | 11.524 | 13.120 | 14.611 | 16.473 | 34.382 | 37.652 | 40.646 | 44.314 | 46.928 |
26 | 11.160 | 12.198 | 13.844 | 15.379 | 17.292 | 35.563 | 38.885 | 41.923 | 45.642 | 48.290 |
27 | 11.808 | 12.879 | 14.573 | 16.151 | 18.114 | 36.741 | 40.113 | 43.195 | 46.963 | 49.645 |
28 | 12.461 | 13.565 | 15.308 | 16.928 | 18.939 | 37.916 | 41.337 | 44.461 | 48.278 | 50.993 |
29 | 13.121 | 14.256 | 16.047 | 17.708 | 19.768 | 39.087 | 42.557 | 45.722 | 49.588 | 52.336 |
30 | 13.787 | 14.953 | 16.791 | 18.493 | 20.599 | 40.256 | 43.773 | 46.979 | 50.892 | 53.672 |
40 | 20.707 | 22.164 | 24.433 | 26.509 | 29.051 | 51.805 | 55.758 | 59.342 | 63.691 | 66.766 |
50 | 27.991 | 29.707 | 32.357 | 34.764 | 37.689 | 63.167 | 67.505 | 71.420 | 76.154 | 79.490 |
60 | 35.534 | 37.485 | 40.482 | 43.188 | 46.459 | 74.397 | 79.082 | 83.298 | 88.379 | 91.952 |
70 | 43.275 | 45.442 | 48.758 | 51.739 | 55.329 | 85.527 | 90.531 | 95.023 | 100.425 | 104.215 |
80 | 51.172 | 53.540 | 57.153 | 60.391 | 64.278 | 96.578 | 101.879 | 106.629 | 112.329 | 116.321 |
90 | 59.196 | 61.754 | 65.647 | 69.126 | 73.291 | 107.565 | 113.145 | 118.136 | 124.116 | 128.299 |
100 | 67.328 | 70.065 | 74.222 | 77.929 | 82.358 | 118.498 | 124.342 | 129.561 | 135.807 | 140.169 |
Python is a high-level programming language which is used to serve several purposes in the domain of information technology. In context with this exploration, python programming language can be used to develop a prototype of the feature of red envelope only with respect to the amount of money that should be disbursed.
It is assumed that there does not exist any correlation between the number of drawing and probability of getting the maximum share.
It is assumed that there exists a correlation between the number of drawing and probability of getting the maximum share.
A data sheet has been prepared based on several news articles, reports and surveys in money disbursed in each drawing in Red Envelope WeChat. It has been possible to record the data of number of drawing and amount as these amounts directly reflect in bank statement.
Justification of the Source and Interval of Raw Data
Data sheet has been prepared based on the amount of money added in the red envelope by the contributor. In all the data sets, the number of drawings is set to 30. This is treated as a controlled variable to keep a uniformity to study the correlation. The amount of money added in each trial is increased linearly at an interval of 30. This is done to ignore more complex calculations as the number of drawings is kept fixed to 30.
Term | Amount of Money disbursed (in CNY) |
---|---|
1 | 1.23 |
2 | 1.43 |
3 | 0.97 |
4 | 0.45 |
5 | 0.78 |
6 | 0.56 |
7 | 1.23 |
8 | 4.51 |
9 | 0.98 |
10 | 0.23 |
11 | 0.34 |
12 | 0.21 |
13 | 2.34 |
14 | 0.98 |
15 | 1.00 |
16 | 0.65 |
17 | 1.02 |
18 | 0.56 |
19 | 0.98 |
20 | 0.34 |
21 | 4.23 |
22 | 0.34 |
23 | 0.16 |
24 | 0.54 |
25 | 1.02 |
26 | 0.94 |
27 | 0.56 |
28 | 0.45 |
29 | 0.45 |
30 | 0.52 |
Term | Amount of Money disbursed (in CNY) |
---|---|
1 | 0.65 |
2 | 1.65 |
3 | 2.34 |
4 | 2.65 |
5 | 1.8 |
6 | 2.00 |
7 | 1.78 |
8 | 1.43 |
9 | 1.76 |
10 | 3.54 |
11 | 1.34 |
12 | 0.65 |
13 | 0.34 |
14 | 1.23 |
15 | 1.65 |
16 | 2.43 |
17 | 1.43 |
18 | 1.76 |
19 | 2.34 |
20 | 2.98 |
21 | 2.34 |
22 | 7.65 |
23 | 2.43 |
24 | 2.98 |
25 | 2.34 |
26 | 1.54 |
27 | 2.00 |
28 | 1.23 |
29 | 1.18 |
30 | 0.56 |
Term | Amount of Money disbursed (in CNY) |
---|---|
1 | 3 |
2 | 3.23 |
3 | 2.34 |
4 | 2.65 |
5 | 3.87 |
6 | 3.45 |
7 | 2.12 |
8 | 1.54 |
9 | 3.76 |
10 | 3.98 |
11 | 3.56 |
12 | 1.23 |
13 | 0.45 |
14 | 0.34 |
15 | 1.54 |
16 | 2.34 |
17 | 1.23 |
18 | 3.45 |
19 | 3 |
20 | 1.32 |
21 | 1.54 |
22 | 3.65 |
23 | 3.87 |
24 | 2.56 |
25 | 2.54 |
26 | 10.43 |
27 | 10.54 |
28 | 2.34 |
29 | 1.65 |
30 | 2.48 |
Term | Amount of Money disbursed (in CNY) |
---|---|
1 | 3.54 |
2 | 1.76 |
3 | 4.65 |
4 | 7.65 |
5 | 5.43 |
6 | 3.34 |
7 | 2.43 |
8 | 2.64 |
9 | 2.76 |
10 | 3.54 |
11 | 2.43 |
12 | 2.98 |
13 | 1.65 |
14 | 1.65 |
15 | 1.54 |
16 | 0.98 |
17 | 0.76 |
18 | 2.54 |
19 | 2.86 |
20 | 1.54 |
21 | 3.65 |
22 | 4.87 |
23 | 4.65 |
24 | 8.76 |
25 | 15.43 |
26 | 2.54 |
27 | 10.98 |
28 | 3.54 |
29 | 4.54 |
30 | 4.37 |
Term | Amount of Money disbursed (in CNY) |
---|---|
1 | 5.03 |
2 | 5.02 |
3 | 5.76 |
4 | 4.36 |
5 | 5.03 |
6 | 5.32 |
7 | 5.65 |
8 | 4.87 |
9 | 5.34 |
10 | 5.76 |
11 | 4.67 |
12 | 5.09 |
13 | 5.87 |
14 | 4.56 |
15 | 4.56 |
16 | 4.87 |
17 | 5.67 |
18 | 5.23 |
19 | 5.67 |
20 | 5.98 |
21 | 4.87 |
22 | 4.67 |
23 | 4.56 |
24 | 4.98 |
25 | 5.87 |
26 | 5.89 |
27 | 5.03 |
28 | 4.45 |
29 | 4.34 |
30 | 1.03 |