Professional Documents
Culture Documents
Week 10 Multiple Linear Regression in action Assessment task 4 (10%) - (Project related Online quiz)
3
Basic Probability Concepts
4
Basic Probability Concepts
There are 3 approaches to assigning a probability to an event:
• The Classical approach, relies upon mathematical laws. Assumes all simple events
are equally likely. (for example, a dice or card game – the probabilities of all
outcomes are known in advance);
• The Relative Frequency approach, based on observed data (for example, your
favourite car park is available on 4 of the 5 days you park there. The Relative
frequency of obtaining your park is 4/5=0.8 or 80%);
5
Events and Sample spaces
Events:
• Simple event (denoted A): an outcome from a sample space with one characteristic;
• e.g. Repeat Festival Attendee
• Complement of an event A (denoted A’): All outcomes that are not part of event A;
• e.g. Not a Repeat Festival Attendee
• Joint event (denoted A∩B): Involves two or more characteristics occurring simultaneously;
• e.g. Repeat Festival Attendee and Spent ≥ $600;
6
Simple and Compound events
Example: Random experiment:
-Roll two dice (black and red) and record the score on red and the score on black.
A compound event: the red rolls a 6 and the black rolls a 3
A simple event: The red rolls a 6
7
Probability of an event
The probability (P) of any event must be between 0 and 1, therefore:
8
Joint and marginal probabilities
9
Workbook exercise 4.1
• total amount spent in the region during the festival (e.g., festival tickets);
• whether the festival attendee is a local, from interstate, or from overseas;
• their age;
• their gender.
• The purpose of their study is to target their advertising in order to attract the
festival goers most likely to spend the greatest amount of money in the local
community
Workbook exercise 4.1
• Based on this information, what are the chances that a Festival attendee:
Female 9 6 22 37
Male 25 17 21 63
Collectively Exhaustive Events: One of the events must occur. The set of events
covers the entire sample space
e.g. Attended the Festival, Did Not Attend the Festival are in the sample space and
one event will take place.
The sum of the probabilities of all mutually exclusive and collectively exhaustive
events is 1. If A and B are mutually exclusive and collectively exhaustive, then:
P(A) P(B) 1
13
Workbook Exercise 4.3
As part of the exercise 4.1 the following counts are obtained
Count of age Spend $600 or Do NOT spend $600 or Grand
Aged 18-20 more (B) more total
(B)’
Yes (A) 25 24 49
No (A)’ 22 45 67
Based on this information, what are the chances that a Festival attendee:
• spends $600 or more AND is 18 - 20
General addition rule
15
Addition rule with joint events
Referring to workbook exercise 4.2, events F and M are mutually exclusive, as are events
B1, B2, and B3 since a respondent can only be Male or Female and prefer only one of the
three brands. We can find, for example, P(B1 or B2) = 0.34 + 0.23 = 0.57.
However, events F and B1 are not mutually exclusive because a respondent can be both
Female and Prefer brand 1. Therefore, we find:
P(F or B1) = P(F) + P(B1) – P(F and B1) = 0.37 + 0.34 – 0.09 = 0.62.
Joint probability table
16
Conditional probability
A conditional probability is the probability of one event, given that another event has
occurred or is known to be true.
P(A and B)
P(A|B)
The conditional probability of A given that B has occurred P(B)
P(A and B)
The conditional probability of B given that A has occurred P(B | A)
P(A)
17
Conditional probability
Based on the information given in workbook exercise 4.1 and the table below;
what are the chances that a Festival attendee:
• spends $600 or more GIVEN THAT they are Female
No (A)’ 22 43 65
25/51 or 0.490 or 49.0%
Grand total 47 69 116
18
Workbook exercise 4.5
Refer to workbook exercise 4.2 and the table below;
Count of respondent Brand 1 Brand 2 Brand 3 Grand total
Female 9 6 22 37
Male 25 17 21 63
Suppose we know a respondent is male. What is the probability that he prefers Brand 1?
Independent events
A and B are said to be independent events if the probability of event A occurring does
not depend on the occurrence of event B (and vice versa).
20
Independent events - Example Relative J J’ Total
frequency
Are “getting an HD” and “working while studying”
dependent or independent events?
They are independent if P(H | J) = P(H) or P(J | H) = P(J) H 0.15 0.1 0.25
You are “Given” the student has a job, so restrict to the
column “J”.
H’ 0.25 0.5 0.75
P(H and J ) 0.15
P(H | J ) 0.375
P (J ) 0.4
Total 0.4 0.6 1
Are they independent? NO
They are independent if P(H | J) = P(H)
0.375 = 0.25
21
Difference between independent events and mutually exclusive events
“Mutually exclusive” and “independent” are very different.
22
Workbook – Exercise 4.5
A manager of a mobile phone retail shop is interested in finding out the brand
preferences of customers. A random sample 640 customers was selected to study
consumer behaviour with the following results:
c. What is the probability that a randomly selected customer does not prefer
iPhone 7?
d. What is the probability that the randomly selected customer is female and
prefers iPhone 7?
e. What is the probability that the randomly selected customer is male or prefers
Galaxy S8?
Workbook – Exercise 4.5
f. Given that the customer prefers Google Pixel, what is the probability that the
customer is female?
g. What is the probability that the customer prefers iPhone 7, given that the customer
is male?
h. Use some of your answers in exercises 1 and 2 (and any other relevant calculations)
to explain whether SmartPhone Brand preference is independent of gender.
END