Ai Cheat Sheet
  • Home
  • Statistics ↓↑
    • Types of Measure
    • Population and Sample
    • Outliers
    • Variance
    • Standard Deviation
    • Skewness
    • Percentiles
    • Deciles
    • Quartiles
    • Box and Whisker Plots
    • Correlation and Covariance
    • Hypothesis Test
    • P Value
    • Statistical Significance
    • Bootstrapping
    • Confidence Interval
    • Central Limit Theorem
    • F1 Score (F Measure)
    • ROC and AUC
    • Random Variable
    • Expected Value
    • Central Limit Theorem
  • Probability ↓↑
    • What is Probability
    • Joint Probability
    • Marginal Probability
    • Conditional Probability
    • Bayesian Statistics
    • Naive Bayes
  • Data Science ↓↑
    • Probability Distribution
    • Bernoulli Distribution
    • Uniform Distribution
    • Binomial Distribution
    • Poisson Distribution
    • Normal Distribution
    • T-SNE
  • Data Engineering ↓↑
    • Data Science vs Data Engineering
    • Data Architecture
    • Data Governance
    • Data Quality
    • Data Compliance
    • Business Intelligence
    • Data Modeling
    • Data Catalog
    • Data Cleaning
    • Data Format
      • Apache Avro
    • Tools
      • Data Fusion
      • Dataflow
      • Dataproc
      • BigQuery
    • Cloud Platforms
      • GCP
    • SQL
      • ACID
      • SQL Transaction
      • Query Optimization
    • Data Engineering Interview Questions
  • Vector and Matrix
    • Vector
    • Matrix
  • Machine Learning ↓↑
    • L1 and L2 Loss Function
    • Linear Regression
    • Logistic Regression
    • Naive Bayes Classifier
    • Resources
  • Deep Learning ↓↑
    • Neural Networks and Deep Learning
    • Improving Deep Neural Networks
    • Structuring Machine Learning Projects
    • Convolutional Neural Networks
    • Sequence Models
    • Bias
    • Activation Function
    • Softmax
    • Cross Entropy
  • Natural Language Processing ↓↑
    • Linguistics and NLP
    • Text Augmentation
    • CNN for NLP
    • Transformers
      • Implementation
  • Computer Vision ↓↑
    • Object Localization
    • Object Detection
    • Bounding Box Prediction
    • Evaluating Object Localization
    • Anchor Boxes
    • YOLO Algorithm
    • R-CNN
    • Face Recognition
  • Time Series
    • Resources
  • Reinforcement Learning
    • Reinforcement Learning
  • System Design
    • SW Diagramming
    • Feed
  • Tools
    • PyTorch
    • Tensorflow
    • Hugging Face
  • MLOps
    • Vertex AI
      • Dataset
      • Feature Store
      • Pipelines
      • Training
      • Experiments
      • Model Registry
      • Serving
        • Batch Predictions
        • Online Predictions
      • Metadata
      • Matching Engine
      • Monitoring and Alerting
  • Interview Questions ↓↑
    • Questions by Shared Experience
  • Contact
    • My Personal Website
Powered by GitBook
On this page

Was this helpful?

  1. Probability ↓↑

Joint Probability

Joint probability is the probability of two events happening together.

The two events are usually designated event A and event B. In probability terminology, it can be written as:

P(A∩B)=P(A,B)=P(A∣B)∗P(B)P(A \cap B) =P(A,B) = P(A|B)*P(B)P(A∩B)=P(A,B)=P(A∣B)∗P(B)

Anyway, if an event A and B are idenpendent then P(A∣B)=P(A)P(A|B) = P(A)P(A∣B)=P(A), and therefore, P(A∩B)=P(A,B)P(A \cap B) = P(A,B) P(A∩B)=P(A,B) become P(A)∗P(B)P(A) * P(B)P(A)∗P(B)

Example: The probability that a card is a five and black = p(five and black)

Here p(five|black) is the conditional probability of drawing a five given that the card is black, and p(black) is the probability of drawing a black card.

The probability of drawing a black card from a standard deck of 52 playing cards is:

p(black) = Number of black cards / Total number of cards

= 26 / 52

= 1/2

The probability of drawing a five given that the card is black is:

p(five|black) = Number of black fives / Number of black cards

= 2 / 26

= 1/13

Therefore, the joint probability of drawing a five and a black card is:

p(five and black) = p(five|black) * p(black)

= (1/13) * (1/2)

= 1/26

Another way

2/52 = 1/26 (There are two black fives in a deck of 52 cards, the five of spades and the five of clubs).

OR Events

P(A∪B)=P(A)+P(B)−P(A∩B)P(A \cup B) = P(A)+P(B)-P(A \cap B)P(A∪B)=P(A)+P(B)−P(A∩B)
PreviousWhat is ProbabilityNextMarginal Probability

Last updated 2 years ago

Was this helpful?