Forecasting
Odds and Sods
Probabilities and odds express the same information in different ways. In science and economics, people tend to think in terms of probabilities, while in gambling, people tend to think in terms of odds.
Probabilities express the likelihood of an event occurring as a percentage of all possible events occurring. Odds express the number of times an event will occur with relation to the number of times the event will not occur.
Imagine we have five marbles in a bowl—we have three red marbles and two blue marbles, as shown below.
If we randomly select one marble, the probably of picking red can be expressed as:
Where:
Pr = Probability of picking a red marble
Nr = Number of red marbles
Nb = Number of blue marbles
In the above example, the equation evaluates as follows:
Thus, the probability of randomly picking a red marble is 3/5 or 0.6 or 60%.
The same information can be expressed as odds:
Where:
Or= Odds of picking a red marble
This evaluates as follows:
The odds of picking red can be expressed as 3:2. In the case of betting however, odds are typically expressed as the odds of losing, rather than the odds of winning. In other words, it is generally described as the odds against an event occurring. In this case, the odds of not picking red are 2:3. If, for example, the odds are expressed as 9:1 for a particular team, the interpretation is that the team will likely lose nine times for each one win.
It is also easy to convert from probabilities to odds and vice versa. The conversion of probability to odds is calculated as:
In the above example, this evaluates as:
If we return to the original calculation above, the odds of picking red are expressed as 3/2, which is equivalent to 1.5 or 1.5:1.
We can therefore convert from odds to probability as:
People often use the terms ‘probability’ and ‘odds’ interchangeably. While these concepts ultimately can be used to describe the same phenomenon, they have distinct mathematical formulations.
Probabilities express the likelihood of an event occurring as a percentage of all possible events occurring. Odds express the number of times an event will occur with relation to the number of times the event will not occur.
Imagine we have five marbles in a bowl—we have three red marbles and two blue marbles, as shown below.
If we randomly select one marble, the probably of picking red can be expressed as:
Where:
Pr = Probability of picking a red marble
Nr = Number of red marbles
Nb = Number of blue marbles
In the above example, the equation evaluates as follows:
Thus, the probability of randomly picking a red marble is 3/5 or 0.6 or 60%.
The same information can be expressed as odds:
Where:
Or= Odds of picking a red marble
This evaluates as follows:
The odds of picking red can be expressed as 3:2. In the case of betting however, odds are typically expressed as the odds of losing, rather than the odds of winning. In other words, it is generally described as the odds against an event occurring. In this case, the odds of not picking red are 2:3. If, for example, the odds are expressed as 9:1 for a particular team, the interpretation is that the team will likely lose nine times for each one win.
It is also easy to convert from probabilities to odds and vice versa. The conversion of probability to odds is calculated as:
In the above example, this evaluates as:
If we return to the original calculation above, the odds of picking red are expressed as 3/2, which is equivalent to 1.5 or 1.5:1.
We can therefore convert from odds to probability as:
People often use the terms ‘probability’ and ‘odds’ interchangeably. While these concepts ultimately can be used to describe the same phenomenon, they have distinct mathematical formulations.
Si è verificato un errore nell'elaborarazione del modello.
The following has evaluated to null or missing:
==> authorContent.contentFields [in template "44616#44647#114455" at line 9, column 17]
----
Tip: It's the step after the last dot that caused this error, not those before it.
----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
----
FTL stack trace ("~" means nesting-related):
- Failed at: contentFields = authorContent.content... [in template "44616#44647#114455" at line 9, column 1]
----
1<#assign
2 webContentData = jsonFactoryUtil.createJSONObject(author.getData())
3 classPK = webContentData.classPK
4/>
5
6<#assign
7authorContent = restClient.get("/headless-delivery/v1.0/structured-contents/" + classPK + "?fields=contentFields%2CfriendlyUrlPath%2CtaxonomyCategoryBriefs")
8contentFields = authorContent.contentFields
9categories=authorContent.taxonomyCategoryBriefs
10authorContentData = jsonFactoryUtil.createJSONObject(authorContent)
11friendlyURL = authorContentData.friendlyUrlPath
12authorCategoryId = "0"
13/>
14
15<#list contentFields as contentField >
16 <#assign
17 contentFieldData = jsonFactoryUtil.createJSONObject(contentField)
18 name = contentField.name
19 />
20 <#if name == 'authorImage'>
21 <#if (contentField.contentFieldValue.image)??>
22 <#assign authorImageURL = contentField.contentFieldValue.image.contentUrl />
23 </#if>
24 </#if>
25 <#if name == 'authorName'>
26 <#assign authorName = contentField.contentFieldValue.data />
27 <#list categories as category >
28 <#if authorName == category.taxonomyCategoryName>
29 <#assign authorCategoryId = category.taxonomyCategoryId />
30 </#if>
31 </#list>
32 </#if>
33 <#if name == 'authorDescription'>
34 <#assign authorDescription = contentField.contentFieldValue.data />
35
36 </#if>
37
38 <#if name == 'authorJobTitle'>
39 <#assign authorJobTitle = contentField.contentFieldValue.data />
40
41 </#if>
42
43</#list>
44
45<div class="blog-author-info">
46 <#if authorImageURL??>
47 <img class="blog-author-img" id="author-image" src="${authorImageURL}" alt="" />
48 </#if>
49 <#if authorName??>
50 <#if authorName != "">
51 <p class="blog-author-name">By <a id="author-detail-page" href="/w/${friendlyURL}?filter_category_552298=${authorCategoryId}"><span id="author-full-name">${authorName}</span></a></p>
52 <hr />
53 </#if>
54 </#if>
55 <#if authorJobTitle??>
56 <#if authorJobTitle != "">
57 <p class="blog-author-title" id="author-job-title" >${authorJobTitle}</p>
58 <hr />
59 </#if>
60 </#if>
61 <#if authorDescription??>
62 <#if authorDescription != "" && authorDescription != "null" >
63 <p class="blog-author-desc" id="author-job-desc">${authorDescription}</p>
64 <hr />
65 </#if>
66 </#if>
67</div>
The following has evaluated to null or missing: ==> authorContent.contentFields [in template "44616#44647#114455" at line 9, column 17] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: contentFields = authorContent.content... [in template "44616#44647#114455" at line 9, column 1] ----
1<#assign
2 webContentData = jsonFactoryUtil.createJSONObject(author.getData())
3 classPK = webContentData.classPK
4/>
5
6<#assign
7authorContent = restClient.get("/headless-delivery/v1.0/structured-contents/" + classPK + "?fields=contentFields%2CfriendlyUrlPath%2CtaxonomyCategoryBriefs")
8contentFields = authorContent.contentFields
9categories=authorContent.taxonomyCategoryBriefs
10authorContentData = jsonFactoryUtil.createJSONObject(authorContent)
11friendlyURL = authorContentData.friendlyUrlPath
12authorCategoryId = "0"
13/>
14
15<#list contentFields as contentField >
16 <#assign
17 contentFieldData = jsonFactoryUtil.createJSONObject(contentField)
18 name = contentField.name
19 />
20 <#if name == 'authorImage'>
21 <#if (contentField.contentFieldValue.image)??>
22 <#assign authorImageURL = contentField.contentFieldValue.image.contentUrl />
23 </#if>
24 </#if>
25 <#if name == 'authorName'>
26 <#assign authorName = contentField.contentFieldValue.data />
27 <#list categories as category >
28 <#if authorName == category.taxonomyCategoryName>
29 <#assign authorCategoryId = category.taxonomyCategoryId />
30 </#if>
31 </#list>
32 </#if>
33 <#if name == 'authorDescription'>
34 <#assign authorDescription = contentField.contentFieldValue.data />
35
36 </#if>
37
38 <#if name == 'authorJobTitle'>
39 <#assign authorJobTitle = contentField.contentFieldValue.data />
40
41 </#if>
42
43</#list>
44
45<div class="blog-author-info">
46 <#if authorImageURL??>
47 <img class="blog-author-img" id="author-image" src="${authorImageURL}" alt="" />
48 </#if>
49 <#if authorName??>
50 <#if authorName != "">
51 <p class="blog-author-name">By <a id="author-detail-page" href="/w/${friendlyURL}?filter_category_552298=${authorCategoryId}"><span id="author-full-name">${authorName}</span></a></p>
52 <hr />
53 </#if>
54 </#if>
55 <#if authorJobTitle??>
56 <#if authorJobTitle != "">
57 <p class="blog-author-title" id="author-job-title" >${authorJobTitle}</p>
58 <hr />
59 </#if>
60 </#if>
61 <#if authorDescription??>
62 <#if authorDescription != "" && authorDescription != "null" >
63 <p class="blog-author-desc" id="author-job-desc">${authorDescription}</p>
64 <hr />
65 </#if>
66 </#if>
67</div>