Baye’s Theorem explained

8 Bayes’ Theorem

…in no other branch of mathematics is it so easy for experts to blunder as in probability theory.
—Martin Gardner

In a famous psychology experiment, subjects were asked to solve the following problem. The experiment was first published in 1971. It was performed by Daniel Kahneman and Amos Tversky. Their work on human reasoning reshaped the field of psychology, and eventually won a Nobel prize in 2002.

A cab was involved in a hit and run accident at night. Two cab companies, the Green and the Blue, operate in the city. You are given the following data:

85% of the cabs in the city are Green and 15% are Blue.
A witness identified the cab as Blue. The court tested the reliability of the witness under the same circumstances that existed on the night of the accident and concluded that the witness correctly identified each one of the two colors 80%
of the time and failed 20% of the time.

What is the probability that the cab involved in the accident was blue rather green?

Source: https://jonathanweisberg.org/vip/chbayes.html

Learn: using R for statistical analysis

As John Chambers, the creator of R once said: to understand computations in R, two slogans are helpful:

  1. Everything that exists is an object.
  2. Everything that happens is a function call.

 


Learn by the book:

Statistics and Computing, Peter Salgaard, 2002, Springer, first Edition

http://www.academia.dk/BiologiskAntropologi/Epidemiologi/PDF/Introductory_Statistics_with_R__2nd_ed.pdf

http://publicifsv.sund.ku.dk/~pd/ISwR-answers.pdf

 

Learn Online:

EDX: HarvardX: PH525.1x Statistics and R

KIx: KIexploRx Explore Statistics with R
http://swirlstats.com/
https://github.com/swirldev/swirl_courses
http://varianceexplained.org/RData/
http://www.ling.upenn.edu/~joseff/rstudy/index.html
http://www.statmethods.net/index.html

 

R statistical online learning references:

https://www.tutorialspoint.com/r/r_chi_square_tests.htm

http://www.r-tutor.com/

advanced: http://adv-r.had.co.nz/

 

Source:

https://www.r-project.org/

https://cran.r-project.org/doc/contrib/Short-refcard.pdf

http://ugrad.stat.ubc.ca/R/doc/html/index.html

 

More:

https://en.wikipedia.org/wiki/Probability_distribution

https://en.wikipedia.org/wiki/Exponential_family

https://www.google.pt/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0ahUKEwj_7d67ifHVAhVIzRQKHY7PA0EQFggoMAA&url=https%3A%2F%2Fwww.jstatsoft.org%2Farticle%2Fview%2Fv040i01%2Fv40i01.pdf&usg=AFQjCNHd-jbD4CmKgO9TS_CuwNMa0h7Dtw

http://andrewgelman.com/

http://blog.revolutionanalytics.com/

Save

Save

Save

Save

Save

Save

Save

Save

Save

Save