Biostatistics with R/Some Basic Probability Concepts

From testwiki
Jump to navigation Jump to search

Formular with R

Formular Number Name Formular Formular with R
3.2.1 Classical probability P(E)=mN Example
3.2.2 Relative frequency probability P(E)=mn Example
3.3.1–3.3.3 Properties of probability P(Ei)0

P(E1)+P(E2)++P(En)=0 P(Ei+Ej)=P(Ei)+P(Ej)

Example
3.4.1 Multiplication rule P(AB)=P(A|B)P(B)=P(A)P(B|A) Example
3.4.2 Conditional probability P(A|B)=P(AB)P(B) Example
3.4.3 Addition rule P(AB)=P(A)+P(B)P(AB) Example
3.4.4 Independent events P(AB)=P(A)P(B) Example
3.4.5 Complementary events P(A)=1P(A) Example
3.4.6 Marginal probability P(Ai)=P(AiBj) Example
Sensitivity of a screening test P(T|D)=a(a+c) Example
Specificity of a screening test P(T|D)=d(b+d) Example
3.5.1 Predictive value positive of a screening test P(D|T)=P(D|T)P(D)P(T|D)P(D)+P(T|D)P(D) Example
3.5.2 Predictive value negative of a screening test P(D|T)=P(D|T)P(D)P(T|D)P(D)+P(T|D)P(D) Example
Symbol Key
  • D= disease
  • E= Event
  • m= the number of times an event E_i occurs
  • n= sample size or the total number of times a process occurs
  • n=Population size or the total number of mutually exclusive and equally likely events
  • P(A)= a complementary event; the probability of an event A, not occurring
  • P(Ei)=probability of some event E_i occurring
  • P(AB)=an “intersection” or “and” statement; the probability of an event A and an event B occurring
  • P(AB)=an “union” or “or” statement; the probability of an event A or an event B or both occurring
  • P(A|B)=a conditional statement; the probability of an event A occurring given that an event B has already occurred
  • T=test results
Example

Template:BookCat