-
Notifications
You must be signed in to change notification settings - Fork 0
/
dialog.ui
116 lines (116 loc) · 4.91 KB
/
dialog.ui
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Dialog</class>
<widget class="QDialog" name="Dialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>730</width>
<height>714</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="windowTitle">
<string>How does this work</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(0, 0, 0);</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="label_2">
<property name="font">
<font>
<family>TeX Gyre Pagella Math</family>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(0, 0, 0);
color: rgb(238, 238, 236);</string>
</property>
<property name="text">
<string><html><head/><body><p align="center">Based on each teams's stats from the first half of the season, we can easily project the expected goals</p><p align="center">scored by each team during the second half.</p><p align="center">Let's call them xHG (expected home goals) and xAG (expected away goals)</p><p align="center">I already did the work on a spreadsheet, and stored the stats in a database.</p><p align="center">We can also factor in the number of missing starters, and</p><p align="center">whether the team played during the week or not.</p><p align="center">Now what we do is use Poisson's distribution to calculate the odds for goals n* of ocurrences for each team.</p><p align="center">Here's an example:<br/></p></body></html></string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_4">
<property name="text">
<string><html><head/><body><p align="center"><img src=":/Pictures/poisson.png"/></p></body></html></string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_7">
<property name="font">
<font>
<family>TeX Gyre Pagella Math</family>
<pointsize>11</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(238, 238, 236);</string>
</property>
<property name="text">
<string><html><head/><body><p align="center">k: number of goals</p><p align="center">lambda: xHG or xAG</p></body></html></string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_5">
<property name="text">
<string><html><head/><body><p align="center"><img src=":/Pictures/array.png"/></p></body></html></string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_6">
<property name="font">
<font>
<family>TeX Gyre Termes</family>
<weight>75</weight>
<italic>false</italic>
<bold>true</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(0, 0, 0);
color: rgb(238, 238, 236);</string>
</property>
<property name="text">
<string><html><head/><body><p align="center">As you can see, we muliplied each team's probabilty of scoring a certain number of goals. </p><p align="center">We stored them in the array and voila: the combo with the highest probability is our predicted score. </p></body></html></string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_8">
<property name="styleSheet">
<string notr="true">background-color: rgb(238, 238, 236);</string>
</property>
<property name="text">
<string><html><head/><body><p align="center"><a href="https://help.smarkets.com/hc/en-gb/articles/115001457989-How-to-calculate-Poisson-distribution-for-football-betting"><span style=" text-decoration: underline; color:#0000ff;">Here's an even more detailed explanation</span></a></p></body></html></string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label">
<property name="styleSheet">
<string notr="true">color: rgb(238, 238, 236);</string>
</property>
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>