Skip to content

Commit 9094829

Browse files
committed
prob_distributions added
1 parent a9cb611 commit 9094829

5 files changed

Lines changed: 270 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Normal Distribution Function</title>
7+
<link rel="stylesheet" href="style.css">
8+
</head>
9+
<body>
10+
<h1>Normal Distribution Function</h1>
11+
<p>The normal distribution, also known as the Gaussian distribution, is a continuous probability distribution that is symmetric around its mean. It is often used to model natural phenomena and is characterized by its bell-shaped curve.</p>
12+
13+
<h2>Properties of Probability Distribution Functions</h2>
14+
<ul>
15+
<li>The PDF is non-negative for all values of the random variable.</li>
16+
<li>The total area under the PDF curve is equal to 1, which represents the total probability.</li>
17+
<li>The probability that a random variable falls within a specific interval can be calculated by integrating the PDF over that interval.</li>
18+
</ul>
19+
20+
<h2>Example: Normal Distribution</h2>
21+
<ol>
22+
<li>The normal distribution is a continuous probability distribution that is symmetric around its mean. It is often used to model natural phenomena and is characterized by its bell-shaped curve.</li>
23+
<li>The normal distribution is defined by two parameters: the mean (μ) and the standard deviation (σ). The mean determines the center of the distribution, while the standard deviation controls the spread of the data.</li>
24+
</ol>
25+
<p>One of the most well-known probability distribution functions is the normal distribution. It is often used to model natural phenomena and is characterized by its bell-shaped curve. The normal distribution is defined by two parameters: the mean (μ) and the standard deviation (σ). The mean determines the center of the distribution, while the standard deviation controls the spread of the data.</p>
26+
27+
<p>The normal distribution, also known as the Gaussian distribution, is a common example of a probability distribution function. It is characterized by its bell-shaped curve and is defined by its mean (μ) and standard deviation (σ). The PDF of a normal distribution is given by:</p>
28+
<pre>
29+
f(x) = (1 / (σ * sqrt(2π))) * exp(-0.5 * ((x - μ) / σ)^2)
30+
</pre>
31+
32+
<p>In this formula, exp() represents the exponential function, and sqrt() represents the square root function. The normal distribution is widely used in statistics and various fields due to its properties and applicability to real-world data.</p>
33+
34+
</body>
35+
</html>
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Poisson Distribution Function</title>
7+
<link rel="stylesheet" href="style.css">
8+
</head>
9+
<body>
10+
<h1>Poisson Distribution Function</h1>
11+
<h2>Probability Distribution Function</h2>
12+
<p>A probability distribution function (PDF) is a mathematical function that describes the likelihood of a random variable taking on a particular value. It provides a way to model and analyze the behavior of random phenomena. The PDF is defined for continuous random variables and is used to calculate probabilities for specific intervals.</p>
13+
<p>In contrast, a probability mass function (PMF) is used for discrete random variables and assigns probabilities to specific values. The PMF is defined for discrete random variables and is used to calculate probabilities for specific values.</p>
14+
<p>The main examples of probability mass functions include the Poisson distribution, which is used for modeling the number of events in a fixed interval, and the binomial distribution, which is used for modeling the number of successes in a fixed number of trials.</p>
15+
<p>In this lecture, we will focus on the Poisson distribution, which is a discrete probability distribution that describes the number of events occurring within a fixed interval of time or space, given that the events occur with a known constant mean rate and independently of the time since the last event. The Poisson distribution is often used to model rare events, such as the number of phone calls received at a call center in an hour or the number of accidents occurring at a traffic intersection in a day.</p>
16+
<h2>Poisson Distribution Function</h2>
17+
<p>The Poisson distribution is a discrete probability distribution that describes the number of events occurring within a fixed interval of time or space, given that the events occur with a known constant mean rate and independently of the time since the last event. The Poisson distribution is often used to model rare events, such as the number of phone calls received at a call center in an hour or the number of accidents occurring at a traffic intersection in a day.</p>
18+
<pre>
19+
P(X = k) = (λ^k * e^(-λ)) / k!
20+
</pre>
21+
22+
<p>In this formula, k represents the number of events, λ represents the average rate of occurrence, e is the base of the natural logarithm, and k! is the factorial of k. The Poisson distribution is widely used in various fields, including statistics, engineering, and natural sciences, to model and analyze count data.</p>
23+
24+
<h2>Properties of Poisson Distribution</h2>
25+
<ul>
26+
<li>The Poisson distribution is defined for non-negative integer values (0, 1, 2, ...).</li>
27+
<li>The mean and variance of a Poisson distribution are both equal to λ, where λ is the average rate of occurrence.</li>
28+
<li>The probability mass function (PMF) of a Poisson distribution is given by:</li>
29+
</ul>
30+
31+
32+
<pre>
33+
<ol>
34+
<li>Example1: If a call center receives an average of 5 calls per hour, the probability of receiving exactly 3 calls in an hour can be calculated using the Poisson distribution formula with λ = 5 and k = 3.
35+
P(X = 3) = (5^3 * e^(-5)) / 3! = (125 * e^(-5)) / 6 ≈ 0.1404</li>
36+
<li>Example2: If a traffic intersection experiences an average of 2 accidents per day, the probability of having no accidents in a day can be calculated using the Poisson distribution formula with λ = 2 and k = 0.
37+
P(X = 0) = (2^0 * e^(-2)) / 0! = (1 * e^(-2)) / 1 ≈ 0.1353</li>
38+
<li>Example3: If a website receives an average of 10 hits per minute, the probability of receiving more than 15 hits in a minute can be calculated using the Poisson distribution formula with λ = 10 and k > 15. This can be calculated as:
39+
P(X > 15) = 1 - P(X ≤ 15) = 1 - (P(X = 0) + P(X = 1) + ... + P(X = 15))</li>
40+
</ol>
41+
</pre>
42+
<h2> Mean and Variance</h2>
43+
<p>In a Poisson distribution, the mean (λ) and variance are equal. This means that if the average rate of occurrence is λ, then the expected number of events in a given interval is also λ, and the variability around that mean is also λ. This property makes the Poisson distribution unique among probability distributions and allows for straightforward calculations of probabilities and expectations.</p>
44+
45+
<p>For example, if a call center receives an average of 5 calls per hour, the mean and variance of the number of calls received in an hour would both be 5. This means that on average, we can expect to receive 5 calls per hour, and the variability around that average is also 5.</p>
46+
47+
<h2>First Moment (Mean)</h2>
48+
<ol>
49+
<li>The first moment of a probability distribution is the expected value or mean of the distribution. It provides a measure of the central tendency of the distribution.</li>
50+
<li>In the case of a Poisson distribution, the first moment is equal to its parameter λ, which represents the average rate of occurrence.</li>
51+
</ol>
52+
<h2>Second Moment (Variance)</h2>
53+
<ol>
54+
<li>The second moment of a probability distribution is the variance, which measures the spread or variability of the distribution around its mean.</li>
55+
<li>For a Poisson distribution, the second moment (variance) is also equal to its parameter λ. This means that the variability of the number of events in a given interval is directly related to the average rate of occurrence.</li>
56+
</ol>
57+
58+
</body>
59+
</html>
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Probability Mass Function</title>
7+
<link rel="stylesheet" href="style.css">
8+
</head>
9+
<body>
10+
<h1>Probability Mass Function</h1>
11+
<p>A probability mass function (PMF) is a mathematical function that describes the probability distribution of a discrete random variable. It assigns probabilities to each possible value of the random variable, indicating the likelihood of each outcome occurring. The PMF is defined for discrete random variables and is used to calculate probabilities for specific values.</p>
12+
13+
<h2>Properties of Probability Mass Functions</h2>
14+
<ul>
15+
<li>The PMF is non-negative for all values of the random variable.</li>
16+
<li>The sum of the probabilities assigned by the PMF over all possible values of the random variable is equal to 1, which represents the total probability.</li>
17+
<li>The probability that a random variable takes on a specific value can be directly obtained from the PMF.</li>
18+
</ul>
19+
20+
<h2>Example: Binomial Distribution</h2>
21+
<p>One common example of a probability mass function is the binomial distribution. It models the number of successes in a fixed number of independent Bernoulli trials, where each trial has two possible outcomes: success or failure. The PMF of a binomial distribution is given by:</p>
22+
<pre>
23+
P(X = k) = (n choose k) * p^k * (1 - p)^(n - k)
24+
OR
25+
P(X = k) = (n! / (k! * (n - k)!)) * p^k * (1 - p)^(n - k)
26+
Here, (n choose k) is the binomial coefficient, which can be calculated as n! / (k! * (n - k)!), where n is the number of trials and k is the number of successes. The parameter p represents the probability of success on each trial. The binomial distribution is widely used in statistics and various fields to model scenarios involving binary outcomes.</pre>
27+
<ul>
28+
<li>Let's break down the formula for the PMF of a binomial distribution:</li>
29+
<li>n: The total number of independent trials.</li>
30+
<li>k: The number of successes we want to calculate the probability for.</li>
31+
<li>p: The probability of success on each trial.</li>
32+
<li>(n choose k): The binomial coefficient, which represents the number of ways to choose k successes from n trials. It can be calculated using the formula n! / (k! * (n - k)!).</li>
33+
<li>p^k: The probability of having k successes.</li>
34+
<li>(1 - p)^(n - k): The probability of having (n - k) failures, which is the complement of success.</li>
35+
</ul>
36+
</pre>
37+
<pre>
38+
<ol>
39+
<li>Example1: If we flip a fair coin 10 times, the probability of getting exactly 3 heads can be calculated using the binomial distribution formula with n = 10, k = 3, and p = 0.5.
40+
P(X = 3) = (10 choose 3) * (0.5)^3 * (1 - 0.5)^(10 - 3)
41+
= (10! / (3! * (10 - 3)!)) * (0.5)^3 * (0.5)^7
42+
= (120) * (0.125) * (0.0078125)
43+
≈ 0.1172</li>
44+
<li>Example2: If we flip a fair coin 10 times, the probability of getting exactly 5 heads can be calculated using the binomial distribution formula with n = 10, k = 5, and p = 0.5.
45+
P(X = 5) = (10 choose 5) * (0.5)^5 * (1 - 0.5)^(10 - 5)
46+
= (10! / (5! * (10 - 5)!)) * (0.5)^5 * (0.5)^5
47+
= (252) * (0.03125) * (0.03125)
48+
≈ 0.2461</li>
49+
<li>Example3: If we flip a fair coin 10 times, the probability of getting at least 7 heads can be calculated using the binomial distribution formula with n = 10, k ≥ 7, and p = 0.5. This can be calculated as:
50+
P(X ≥ 7) = P(X = 7) + P(X = 8) + P(X = 9) + P(X = 10)</li>
51+
<li>Example4: If we flip a fair coin 10 times, the probability of getting at most 2 heads can be calculated using the binomial distribution formula with n = 10, k ≤ 2, and p = 0.5. This can be calculated as:
52+
P(X ≤ 2) = P(X = 0) + P(X = 1) + P(X = 2)</li>
53+
<li>Example5: If we flip a fair coin 10 times, the probability of getting between 3 and 6 heads (inclusive) can be calculated using the binomial distribution formula with n = 10, 3 ≤ k ≤ 6, and p = 0.5. This can be calculated as:
54+
P(3 ≤ X ≤ 6) = P(X = 3) + P(X = 4) + P(X = 5) + P(X = 6)</li>
55+
</ol>
56+
</pre>
57+
58+
<p>In this formula, n represents the number of trials, k represents the number of successes, p represents the probability of success on an individual trial, and (n choose k) is the binomial coefficient. The binomial distribution is widely used in statistics and various fields to model scenarios involving binary outcomes.</p>
59+
<h2>First Moment (Mean)</h2>
60+
<ol>
61+
<li>The first moment of a probability distribution is the expected value or mean of the distribution. It provides a measure of the central tendency of the distribution.</li>
62+
<li>In the case of a binomial distribution, the first moment (mean) is given by n * p, where n is the number of trials and p is the probability of success on each trial.</li>
63+
</ol>
64+
<h2>Second Moment (Variance)</h2>
65+
<ol>
66+
<li>The second moment of a probability distribution is the variance, which measures the spread or variability of the distribution around its mean.</li>
67+
<li>For a binomial distribution, the second moment (variance) is given by n * p * (1 - p), where n is the number of trials and p is the probability of success on each trial.</li>
68+
</ol>
69+
</body>
70+
</html>
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Random Variables By Peerzada Aadil</title>
7+
<link rel="stylesheet" href="style.css">
8+
</head>
9+
<body>
10+
<h1>Random Variables {Author: Peerzada Aadil}</h1>
11+
<h2>BHSS Sogam; Class:12th ; Subject:Statistics</h2>
12+
<p>A random variable is a variable that takes on different values based on the outcome of a random event. It is a fundamental concept in probability theory and statistics, used to quantify and analyze uncertainty. Random variables can be classified into two main types: discrete and continuous.</p>
13+
<ol>
14+
<li>Discrete Random Variables: These are random variables that can take on a countable number of distinct values.</li>
15+
<li>Continuous Random Variables: These are random variables that can take on an infinite number of values within a given range.</li>
16+
</ol>
17+
<h2>Examples of Discrete Random Variables</h2>
18+
<ol>
19+
<li>The number of heads obtained when flipping a coin multiple times.</li>
20+
<li>The number of cars passing through a toll booth in an hour.</li>
21+
<li>The number of students in a classroom.</li>
22+
<li>The number of goals scored in a soccer match.</li>
23+
<li>The number of phone calls received at a call center in a day.</li>
24+
<li>The number of students who attend a particular lecture.</li>
25+
<li>The number of teachers present in a school.</li>
26+
<li>The number of books available in a library on a given day.</li>
27+
<li>The number of patients in a hospitalon a given day.</li>
28+
<li>The number of classes attended by Toiba and Afifa today.</li>
29+
</ol>
30+
31+
32+
<h2>Examples of Continuous Random Variables</h2>
33+
<ol>
34+
<li>The height of individuals.</li>
35+
<li>The time it takes to complete a task.</li>
36+
<li>The temperature in a city.</li>
37+
<li>The weight of a person.</li>
38+
<li>The amount of rainfall in a day.</li>
39+
<li>The speed of a car on a highway.</li>
40+
<li>The length of a piece of string.</li>
41+
<li>The time it takes for a computer to process a task.</li>
42+
<li>The amount of money spent on groceries in a week.</li>
43+
<li>The distance traveled by a person in a day.</li>
44+
</ol>
45+
46+
<h2>Conclusion</h2>
47+
<p>Understanding random variables is essential for analyzing and interpreting data in various fields, including statistics, engineering, economics, and natural sciences. By classifying random variables as discrete or continuous, we can apply appropriate mathematical tools and techniques to model and analyze uncertainty effectively.</p>
48+
49+
</body>
50+
</html>
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
h1 {
2+
color: #2980b9;
3+
font-family: 'Helvetica', sans-serif;
4+
}
5+
h2 {
6+
color:blueviolet ;
7+
font-family: 'Arial', sans-serif;
8+
}
9+
p {
10+
color: #34495e;
11+
font-family: 'Verdana', sans-serif;
12+
line-height: 1.6;
13+
font-size: 20px;
14+
}
15+
ul {
16+
color: #16a085;
17+
font-family: 'Tahoma', sans-serif;
18+
font-size: 20px;
19+
}
20+
ol {
21+
color: #8e44ad;
22+
font-family: 'Georgia', serif;
23+
font-size: 20px;
24+
font-family: Arial, Helvetica, sans-serif;
25+
}
26+
27+
p img {
28+
max-width: 100%;
29+
height: auto;
30+
display: block;
31+
margin: 20px auto;
32+
}
33+
p:hover {
34+
color: #e74c3c;
35+
cursor: pointer;
36+
}
37+
/* * {
38+
border-color: #16a085;
39+
background-color: #121519;
40+
font-family: 'Courier New', Courier, monospace;
41+
padding: 10px;
42+
font-size: 20px;
43+
margin: 20px;
44+
border-radius: 25%; */
45+
/* } */
46+
47+
48+
pre {
49+
background-color: #16a085;
50+
padding: 15px;
51+
border-radius: 5px;
52+
font-family: 'Courier New', Courier, monospace;
53+
overflow-x: auto;
54+
font-size: 20px;
55+
56+
}

0 commit comments

Comments
 (0)