#Chapter 6 statistics

194 messages · Page 1 of 1 (latest)

ionic yoke
#

help me understand it please

#

@fierce pumice

fierce pumice
#

perfect

#

so

#

ASSUMPTIONS:
a fixed number of "trials", where a trial is just like a run of the event
each trial can only either 'succeed' or 'fail'
the probability of success is constant for each trial
the trial are independent (so no trial impacts the other)

#

so just as an example, the dice roll thing from before about getting a 6 or not getting a 6

ionic yoke
#

yeah I get that

fierce pumice
#

we can consider getting a 6 to be a 'success'

#

as a way to split it up

#

ok now

#

binomials follow a specific probability distribution

#

im gonna write it out then we can talk thru it

ionic yoke
#

ok

#

thanks

fierce pumice
#

ok so

#

yuck

#

does the top line look familiar at all?

ionic yoke
#

yeah this looks familiar but idk what it means

#

pretty sure B means binominal

#

n is the number of trials

#

p is the probability

#

I think

fierce pumice
#

yep perfect

#

and the squiggle just means

#

"is distributed like"

#

so the first line basically reads

#

X is distributed like a binomial random variable, with n trials and probability of success p

#

ok?

ionic yoke
#

yeah I understand

fierce pumice
#

ok awesome

#

now if we think logically

#

if i have n trials

#

the number of successes i can get are gonna be 0, 1, 2, ..., up to n

#

as our like possibilities

#

yeah?

ionic yoke
#

yeah

fierce pumice
#

we cant get like -1 successes, we cant get like n+1 successes , we cant get some weird decimal number of successes

#

ok so the second line basically reads

ionic yoke
#

so it ahs to be an interger

fierce pumice
#

yep

#

between 0 and n

ionic yoke
#

okk

fierce pumice
#

so the 2nd line reads as

#

the probability we get exactly r successes

#

and then that formula

#

do you know what nCr means?

ionic yoke
#

what is r

fierce pumice
#

r is the number of successes

#

were asking lik

#

whats the probability we do all n trials and get r successes

#

thats what the P(X = r) means

ionic yoke
#

oh

fierce pumice
#

its just like a letter to signify that number of successes

ionic yoke
fierce pumice
#

yep

#

but do you know what the C means

ionic yoke
#

no

fierce pumice
#

its called the choose function which you might have heard of

#

ok so

ionic yoke
#

nope

fierce pumice
#

itll be on your calculator somewhere but

ionic yoke
#

yeah it is shift divide

fierce pumice
#

its basically the number of ways to choose r things out of a list of n things

#

so for example if i have say

#

ABCDE

#

and i wanna choose 2 things

#

well i could choose AB, i could choose AE, i could choose BE

#

etc

ionic yoke
#

yeah

fierce pumice
#

the choose function tells you how many of those options there are

ionic yoke
#

ok

#

so basically

#

the total amount of combinations

#

e.g.

fierce pumice
#

perfect exactly

ionic yoke
#

if I flip a coin twice it could be HH HT TH etc

#

okay I get it

fierce pumice
#

ok so to kinda explain why it shows up in our formula

#

if we think about doing these n trials

#

with r successes

#

if i just call S for success and F for fail

#

and lets just do 5 trials and 2 successes again

#

just as an example

ionic yoke
#

ok

fierce pumice
#

then you can see that these successes could come in lots of different orders like

#

SSFFF, or SFFSF, or FFSFS

#

etc

#

yeah?

ionic yoke
#

yeah

fierce pumice
#

so the choose function is here because

#

thats all the different ways we can get 2 successes

#

we choose 2 successes of the 5 slots we have

#

and then we fill in the rest with Fs

ionic yoke
#

yup

fierce pumice
#

ok awesome

#

and then the probability of succeeding is just p

ionic yoke
fierce pumice
#

fails

ionic yoke
#

oh ok

fierce pumice
#

so we know the probability of success is p just cuz thats what we chose

#

and because of the like 'not' rule, the probability of failing is gonna be 1-p

ionic yoke
#

because P always means probability of success?

fierce pumice
#

yep

ionic yoke
#

okay yeah

fierce pumice
#

it might be a number normally

#

but getting since we have r successes

#

the probability of those bits will be r^p

#

and then the other n-r trials fail

#

so they have probability (1-p)^(n-r)

#

if that makes sense?

ionic yoke
#

not r^p

fierce pumice
#

i do sorry

ionic yoke
fierce pumice
#

youre right

ionic yoke
#

np

fierce pumice
#

ok awesome so

#

thats the like frame work

#

so lets maybe take an example

#

lets use the dice one again, i roll a dice say 10 times

#

and i call a success rolling a 6

#

how would you work out the probability of getting 2 6's?

#

maybe talk me thru it

ionic yoke
#

ok

#

should I just show you what I would put in my calculator

#

and senda photo

fierce pumice
#

sure

ionic yoke
#

I could try to talk you through it but let me ensure I get the calculation part right

#

one second

fierce pumice
#

ok sure

ionic yoke
#

is this right?

#

I put it on paint so its clearer maybe

#

I will now put inmy calculator and tell you the answer

#

is it 0.2907

fierce pumice
#

no that looks good

#

oh idk what the number is but

#

that calculation is perfect

ionic yoke
#

could you double check please?

fierce pumice
#

0.2907?

#

yeah ok we match

ionic yoke
#

yeah thank god

fierce pumice
#

so now lets maybe extend our ideas a bit

#

how about getting at most 2 6's

#

ie 2 or less

#

whats ideas do we maybe have for that

ionic yoke
#

idk I am especially confused for this because my teacher said the sign flips or something

#

I dont know sorry

fierce pumice
#

dont worry about the sign so

#

if its 2 or less successes

#

what successes are valid?

ionic yoke
#

0

#

1

#

2

fierce pumice
#

perfect so

#

why dont you work out the probability for each

#

and then since theyre like separate

#

you can just add them up

#

does that make sense?

ionic yoke
#

yeah

#

that sounds a lot easier than what I was expecting

#

one second

fierce pumice
#

dont bother working out the number but

#

what would you calculate

ionic yoke
#

oh aight

#

should I write it out on paint?

fierce pumice
#

yeah sure

ionic yoke
#

I would just change the 0 for 1 and then 2

#

then add it up

fierce pumice
#

yep perfect

#

so

#

heres an exam question

#

talk me through what your working would look like

ionic yoke
#

I would find that 3/5 is 0.6

#

so thats the probability of 6 asking for water

#

and since there are 10 trials

#

because like 10 people

fierce pumice
#

yep

ionic yoke
#

then

fierce pumice
#

so you have 10 trials

#

probability for water is 0.6

ionic yoke
#

is this it for a

fierce pumice
#

perfect yeah

ionic yoke
#

lets goo

fierce pumice
#

so you could simplify that and then calculate it

ionic yoke
#

yeah

fierce pumice
#

ok how about the other one?

ionic yoke
#

ok

#

I would do this

#

so the probability of 8 asking for water is 0.8