0% found this document useful (0 votes)
100 views4 pages

FIT2086 Assignment 1 Overview

Uploaded by

michaelgowanto
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
100 views4 pages

FIT2086 Assignment 1 Overview

Uploaded by

michaelgowanto
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

FIT2086 Assignment 1

Due Date: Friday, 19/08/2022, 11:55PM

Introduction
There are a total of five questions worth 4 + 7 + 7 + 7 + 7 = 32 marks in this assignment. Please note
that working and/or justification must be shown for all questions that require it.

This assignment is worth a total of 10% of your final mark, subject to hurdles and any other matters
(e.g., late penalties, special consideration, etc.) as specified in the FIT2086 Unit Guide or elsewhere
in the FIT2086 Moodle site (including Faculty of I.T. and Monash University policies).

Students are reminded of Monash University’s policies on academic integrity. In submitting this as-
signment, you acknowledge your awareness of Monash University’s policies on academic integrity and
that work is done and submitted in accordance with these policies.

Submission: Please submit a single PDF file containing your answers via Moodle. Scans of hand-
written answers are acceptable but they must be clean and legible. You must ensure your submission
contains answers to the questions in the order they appear in the assignment. Submission must occur
before 11:55 PM Friday, 19th of August, and late submissions will incur penalties as per Faculty of
I.T. policies.

Question 1 (4 marks)
In Lecture 1 we learned about several different types of general data science techniques/applications:
(i) risk prediction, (ii) recommendation systems, (iii) forecasting, (iv) anomaly detection, (v) image
recognition systems. For each of the following problems, suggest which of these application types the
problem belongs to and justify your selection:
1. Predicting the amount of bananas that will purchased in the next week? [1 mark]
2. Determining whether someone’s credit card has been compromised via purchasing history? [1
mark]
3. Discovering the genre preferences of Netflix users? [1 mark]
4. Using genomic and lifestyle factors to determine the chance of an individual contracting breast
cancer in the next year? [1 mark]

1
R=0 R=1 R=2
H=0 ? ? ?
H=1 ? ? ?

Table 1: Empty table of the joint proportions of FC Barcelona winning (R = 2)/drawing (R = 1)/losing
(R = 0) a football match when playing at home (H = 1)/playing away (H = 0).

Question 2 (7 marks)
It is common in many sporting leagues for teams to alternate playing games at their own venue (i.e.,
“at home”) and at other team’s home venues (i.e., “away”). It is usually assumed that teams will play
better at home, when they have support from their own fans, than when they play away. Futbol Club
Barcelona is a major footballing club in the Spanish Primera División; let us consider the home and
away performance for this particular team. This is a (simple) example of sports analytics, an area of
data science which is rapidly growing in importance over the last few years. The information regarding
the total number of home (H = 1) and away (H = 0) wins (R = 2), as well as home and away draws
(R = 1) and losses (R = 0) for the 2021/2022 seasons is as follows:
• 12 home games won;
• 2 home games drawn;
• 5 home games lost;
• 9 away games won;
• 8 away games drawn;
• 2 away games lost.
Using this data please answer the following questions; you must provide working/justification.

1. Using the frequencies provided above fill in the entries of Table 1 with the proportions of the times
those events occurred, i.e., estimates of the joint probabilities of a win/draw/loss for home/away
games (up to 3 decimal places). [1 mark]
2. Using these proportions, calculate the marginal probability of Barcelona winning a game, regard-
less of whether it is played at home or away, i.e., P(R = 2). [1 mark]
3. What is the probability that Barcelona will win a game, given that they are playing at home?
[1 mark]
4. What is the probability that Barcelona will win a game, given that they are playing away? [1
mark]
5. Do you believe that Barcelona is more likely to win when at home versus when they play away?
[1 mark]
6. Imagine that Barcelona will play an away game, then a home game, and then an away game in
their next three games. What is the probability that they will not lose two out of three of these
games? [2 marks]

2
Question 3 (7 marks)
Imagine that we roll a fair six-sided die and a fair four-sided die (i.e., all sides have the same prob-
ability). Let X1 and Y1 be the independent random variables representing the outcomes of those
events respectively. Let S = X1 + 3 Y1 be the sum of the outcome of the roll of the six-sided die and
three times the outcome of the roll of the four-sided die. Please answer the following questions with
appropriate working/justification.

1. What is the variance of S, i.e., what is V [S]? [1 mark]

2. Determine the probability distribution of S, i.e., the probability that S ∈ {4, . . . , 18}. [1 mark]
√ h√ i
3. What is the expected value of S, i.e., what is E S ? [1 mark]
h√ i
4. Calculate the approximate value of E S using the Taylor-series procedure discussed in Lecture
2. [2 marks]
5. Imagine that we roll a second fair four-sided die; call  roll Y2 . What is the
 the outcome of this
expected value of (X1 + 3Y1 − 2Y2 )2 , i.e., what is E (X1 + 3Y1 − 2Y2 )2 ? [2 marks]

Question 4 (7 marks)
Imagine that a continuous random variable X defined on the range [0, 1] follows the probability density
function
(a + 1)xa

for x ∈ [0, 1]
p(X = x | a) = .
0 everywhere else
where a > 0 is a parameter that controls the shape of the distribution. Answer the following questions;
you must include appropriate working.

1. Plot the probability density function of X when a = 1/2 and a = 2 for x ∈ [0, 1]. [2 marks]
2. Determine the expected value of X, i.e., E [X]. [1 mark]
3. Determine the expected value of 1/X, i.e., E [1/X]. [1 mark]

4. Determine the variance of X, i.e., V [X]. [1 marks]


5. Determine the median of X. [2 marks]
(hint: the answers to Q4.2 through Q4.5 will all be functions of a).

3
Question 5 (7 marks)
The file [Link] contains the daily number of admissions to hospital of people being bitten
by dogs for the second half of 1997 1 . Answer the following questions; you must provide relevant R
statements, working or justification as appropriate to obtain full marks.

1. Fit a Poisson distribution to the dog bites data using maximum likelihood. What is the estimated
rate, λ̂, of dog bite incidents in Australia during this period? [1 marks]

2. Plug the estimated λ̂ into the Poisson distribution, and use this to make predictions about future
dog bite incidences. Using this model, answer the following questions:
(a) What is the probability of two or less admissions for a dog-bite in a day? [1 mark]
(b) What are the two most likely number of dog-bite admissions to occur on any given day? [1
mark]
(c) Over a week period (i.e., 7 days), what is the probability of seeing at most 32 dogbites? [1
mark]
(d) What is the probability of seeing three or more dog-bite admissions for at least 12 days in
a 14 day period? [1 mark]
3. The quality of predictions of a model are only as good as the model is itself representative of the
population. Do you believe that the Poisson distribution is an appropriate model for the dog
bite data? Plot the observed probabilities of the different number of daily dog-bite incidences
against the probabilities for the number of daily dog-bites as predicted by your Poisson model
(over the range of 0 to 22 dog-bite admissions), and use this to justify whether or not this model
is a good fit to the data. [2 marks]

1 Data source is taken from the Australian Institute of Health and Welfare Database of Australian Hospital Statistics.

Common questions

Powered by AI

The parameter 'a' in a probability density function influences the shape of the distribution, consequently affecting its expected value and variance. For p(X=x|a)=(a+1)x^a, increasing 'a' makes the distribution more right-skewed. The expected value, E[X], is influenced as it becomes dependent on 'a' through integration over [0,1], usually increasing with larger 'a'. The variance, V[X], involves computing E[X^2] and depends on how 'a' changes the spread of the distribution. Such calculations typically involve solving integrals that incorporate 'a', reflecting changes in both expectation and variance with different 'a' values .

Deviations between observed and modeled data in a Poisson distribution can stem from overdispersion (variation larger than the mean) or clustering (events occurring in bursts). Such discrepancies suggest the Poisson model may oversimplify reality, assuming a constant rate when fluctuations exist. Statistically, employing a more flexible model like the Negative Binomial Distribution can address overdispersion by including an additional parameter to accommodate variance greater than the mean. Alternatively, a zero-inflated Poisson model can be considered when zero counts are excessively frequent. These models improve fit by capturing deviations not explained by the standard Poisson assumptions .

Showing working and justification in the FIT2086 assignment is crucial because it demonstrates the student's understanding and ability to apply proper reasoning to their solutions. It relates to Monash University's academic integrity policies, as the explicit requirement to show working means that plagiarism and copying are discouraged, thus promoting original and independent thought. This requirement ensures that students comply with Monash's academic integrity expectations by submitting work that genuinely reflects their learning and skills .

To estimate probabilities of multiple event outcomes through dice roll simulation, utilize a Monte Carlo method. Define random variables X1 for a six-sided die and Y1 for a four-sided die. Simulate a large number of rolls, say N = 10,000, to ensure adequate sampling. For each roll, compute the outcome of interest, such as S = X1 + 3Y1. Track the frequency of each possible outcome S and estimate probabilities by dividing these frequencies by N. Repeat this procedure for better statistical reliability. This simulation method leverages random sampling to approximate theoretical probabilities .

To determine the probability of a specific outcome like FC Barcelona winning a game, given the probabilities of simpler events like playing at home or away, you can use the law of total probability. This involves calculating the marginal probability by summing up the probabilities of Barcelona winning at home and away, weighted by the probabilities of playing at home or away. This requires precise calculation using the proportions provided (home wins: 12/19, and away wins: 9/19), allowing you to sum them up to get the overall probability of a win .

The Poisson distribution is suitable for modeling count data like dog bites when events occur independently with a constant average rate. Using maximum likelihood estimation, you find the rate parameter (λ) that best fits the observed data. To evaluate if the Poisson model fits well, compare the observed incident probabilities with those predicted by the Poisson distribution using λ. If observed probabilities align closely with the model predictions, it concludes good fit; discrepancies suggest the model may not capture underlying data complexities or overdispersion. Visualization can strengthen the evaluation by plotting observed versus predicted probabilities .

To predict a team’s future performance in a series of games, employ techniques like Markov Chains or Poisson Regression. Markov Chains model game sequences based on transition probabilities between states (win, draw, loss), useful for capturing dependencies across consecutive matches. Poisson Regression can model scores or outcomes over multiple games by treating match results as Poisson-distributed events, factoring in covariates such as past performance indicators or home/away status. Simulating future fixtures using these models generates probabilities of potential outcomes, integrating historical data trends and assumptions about game dynamics .

To analyze Barcelona's performance for a better chance of winning at home or away, calculate the conditional winning probabilities: P(Win|Home) and P(Win|Away). From the dataset, compute P(Win|Home) as the number of home wins (12) divided by total home games played (19), and P(Win|Away) as away wins (9) over total away games (19). By comparing these probabilities, determine where the winning chance is higher. If P(Win|Home) exceeds P(Win|Away), Barcelona is more likely to win at home due to the home advantage factor .

To calculate the expected value of a sum of random variables, you use the linearity of expectation, which states that E[S] = E[X1] + E[3Y1]. For independent variables, the variance of their sum V[S] can be calculated using V[S] = V[X1] + 9V[Y1], considering the variance scaling property. Assuming fair dice, E[X1] and E[Y1] are the average of their outcomes (3.5 and 2.5 respectively), and their variances V[X1] and V[Y1] derive from the uniform distribution formula (e.g., V[X1] = (6^2-1)/12). Substituting these into the formulas gives the expected value and variance .

Joint probabilities of events like game outcomes and locations can be calculated by dividing the frequency of each specific event combination by the total number of observations. For instance, for events such as Barcelona winning at home, take the number of home wins (12) and divide by the total games, summing home and away (19 home games + 19 away games = 38). Present these joint probabilities in a contingency table, illustrating each combination (win/draw/loss against home/away) neatly to facilitate interpretation. Such numerical representations allow straightforward computation of conditional or marginal probabilities .

You might also like