The Wayback Machine - https://web.archive.org/web/20241008174555/https://www.geeksforgeeks.org/bayes-theorem/
Open In App

Bayes’ Theorem

Last Updated : 06 Aug, 2024
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Bayes’ Theorem is used to determine the conditional probability of an event. It was named after an English statistician, Thomas Bayes who discovered this formula in 1763. Bayes Theorem is a very important theorem in mathematics, that laid the foundation of a unique statistical inference approach called the Bayes’ inference. It is used to find the probability of an event, based on prior knowledge of conditions that might be related to that event.

cat-or-dog---bayes-theorem-01

Bayes’ Theorem Illustration

For example, if we want to find the probability that a white marble drawn at random came from the first bag, given that a white marble has already been drawn, and there are three bags each containing some white and black marbles, then we can use Bayes’ Theorem.

This article explores the Bayes theorem including its statement, proof, derivation, and formula of the theorem, as well as its applications with various examples.

What is Bayes’ Theorem?

Bayes theorem (also known as the Bayes Rule or Bayes Law) is used to determine the conditional probability of event A when event B has already occurred.

The general statement of Bayes’ theorem is “The conditional probability of an event A, given the occurrence of another event B, is equal to the product of the event of B, given A and the probability of A divided by the probability of event B.” i.e.

P(A|B) = P(B|A)P(A) / P(B)

where,

  • P(A) and P(B) are the probabilities of events A and B
  • P(A|B) is the probability of event A when event B happens
  • P(B|A) is the probability of event B when A happens

Check: Bayes’s Theorem for Conditional Probability

Bayes Theorem Statement

Bayes’ Theorem for n set of events is defined as,

Let E1, E2,…, En be a set of events associated with the sample space S, in which all the events E1, E2,…, En have a non-zero probability of occurrence. All the events E1, E2,…, E form a partition of S. Let A be an event from space S for which we have to find probability, then according to Bayes’ theorem,

P(Ei|A) = P(Ei)P(A|Ei) / ∑ P(Ek)P(A|Ek)

for k = 1, 2, 3, …., n

Bayes Theorem Formula

For any two events A and B, then the formula for the Bayes theorem is given by: (the image given below gives the Bayes’ theorem formula)

bayes theorem formula

Bayes’ Theorem Formula

where,

  • P(A) and P(B) are the probabilities of events A and B also P(B) is never equal to zero.
  • P(A|B) is the probability of event A when event B happens
  • P(B|A) is the probability of event B when A happens

Bayes Theorem Derivation

The proof of Bayes’ Theorem is given as, according to the conditional probability formula,

P(Ei|A) = P(Ei∩A) / P(A)…..(i)

Then, by using the multiplication rule of probability, we get

P(Ei∩A) = P(Ei)P(A|Ei)……(ii)

Now, by the total probability theorem,

P(A) = ∑ P(Ek)P(A|Ek)…..(iii)

Substituting the value of P(Ei∩A) and P(A) from eq (ii) and eq(iii) in eq(i) we get,

P(Ei|A) = P(Ei)P(A|Ei) / ∑ P(Ek)P(A|Ek)

Bayes’ theorem is also known as the formula for the probability of “causes”. As we know, the Ei‘s are a partition of the sample space S, and at any given time only one of the events Ei occurs. Thus we conclude that the Bayes’ theorem formula gives the probability of a particular Ei, given the event A has occurred.

After learning about Bayes theorem in detail, let us understand some important terms related to the concepts we covered in formula and derivation.

  • Hypotheses: Events happening in the sample space E1, E2,… En is called the hypotheses
  • Priori Probability: Priori Probability is the initial probability of an event occurring before any new data is taken into account. P(Ei) is the priori probability of hypothesis Ei.
  • Posterior Probability: Posterior Probability is the updated probability of an event after considering new information. Probability P(Ei|A) is considered as the posterior probability of hypothesis Ei.

Conditional Probability

  • The probability of an event A based on the occurrence of another event B is termed conditional Probability.
  • It is denoted as P(A|B) and represents the probability of A when event B has already happened.

Joint Probability

When the probability of two more events occurring together and at the same time is measured it is marked as Joint Probability. For two events A and B, it is denoted by joint probability is denoted as, P(A∩B).

Random Variables

Real-valued variables whose possible values are determined by random experiments are called random variables. The probability of finding such variables is the experimental probability.

Bayes’ Theorem Applications

Bayesian inference is very important and has found application in various activities, including medicine, science, philosophy, engineering, sports, law, etc., and Bayesian inference is directly derived from Bayes’ theorem.

Example: Bayes’ theorem defines the accuracy of the medical test by taking into account how likely a person is to have a disease and what is the overall accuracy of the test.

Difference Between Conditional Probability and Bayes Theorem

The difference between Conditional Probability and Bayes Theorem can be understood with the help of the table given below,

Bayes’ Theorem Conditional Probability
Bayes’ Theorem is derived using the definition of conditional probability. It is used to find the reverse probability. Conditional Probability is the probability of event A when event B has already occurred.
Formula: P(A|B) = [P(B|A)P(A)] / P(B) Formula: P(A|B) = P(A∩B) / P(B)

Theorem of Total Probability

Let E1, E2, . . ., En is mutually exclusive and exhaustive events associated with a random experiment and lets E be an event that occurs with some Ei. Then, prove that 

P(E) = n∑i=1P(E/Ei) . P(Ej)

Proof:

Let S be the sample space. Then,

S = E1 ∪ E2 ∪ E3  ∪ . . . ∪ En and Ei ∩ Ej = ∅ for i ≠ j.

E = E ∩ S 

⇒ E = E ∩ (E1 ∪ E2 ∪ E3 ∪ . . . ∪ En)

⇒ E = (E ∩ E1) ∪ (E ∩ E2) ∪ . . . ∪ (E ∩ En)

P(E) = P{(E ∩ E1) ∪ (E ∩ E2)∪ . . . ∪(E ∩ En)}

⇒ P(E) = P(E ∩ E1) + P(E ∩ E2) + . . . + P(E ∩ En)

{Therefore, (E ∩ E1), (E ∩ E2), . . . ,(E ∩ En)} are pairwise disjoint}

⇒ P(E) = P(E/E1) . P(E1) + P(E/E2) . P(E2) + . . . + P(E/En) . P(En)  [by multiplication theorem]

⇒ P(E) = n∑i=1P(E/Ei) . P(Ei)

Articles Related to Bayes’ Theorem

Conclusion – Bayes’ Theorem

Bayes’ Theorem offers a powerful framework for updating the probability of a hypothesis based on new evidence or information. By incorporating prior knowledge and updating it with observed data, Bayes’ Theorem allows for more accurate and informed decision-making in a wide range of fields, including statistics, machine learning, medicine, and finance. Its applications span from medical diagnosis and risk assessment to spam filtering and natural language processing.

Understanding and applying Bayes’ Theorem enables us to make better predictions, estimate uncertainties, and draw meaningful insights from data, ultimately enhancing our ability to make informed decisions in complex and uncertain situations.

Also Check:

Bayes Theorem Examples

Example 1: A person has undertaken a job. The probabilities of completion of the job on time with and without rain are 0.44 and 0.95 respectively. If the probability that it will rain is 0.45, then determine the probability that the job will be completed on time.

Solution:

Let E1 be the event that the mining job will be completed on time and E2 be the event that it rains. We have,

P(A) = 0.45,

P(no rain) = P(B) = 1 − P(A) = 1 − 0.45 = 0.55

By multiplication law of probability,

P(E1) = 0.44, and P(E2) = 0.95

Since, events A and B form partitions of the sample space S, by total probability theorem, we have

P(E) = P(A) P(E1) + P(B) P(E2)

⇒ P(E) = 0.45 × 0.44 + 0.55 × 0.95

⇒ P(E) = 0.198 + 0.5225 = 0.7205

So, the probability that the job will be completed on time is 0.7205

Example 2: There are three urns containing 3 white and 2 black balls; 2 white and 3 black balls; 1 black and 4 white balls respectively. There is an equal probability of each urn being chosen. One ball is equal probability chosen at random. what is the probability that a white ball is drawn?

Solution:

Let E1, E2, and E3 be the events of choosing the first, second, and third urn respectively. Then,

P(E1) = P(E2) = P(E3) =1/3

Let E be the event that a white ball is drawn. Then,

P(E/E1) = 3/5, P(E/E2) = 2/5, P(E/E3) = 4/5

By theorem of total probability, we have

P(E) = P(E/E1) . P(E1) + P(E/E2) . P(E2) + P(E/E3) . P(E3)

⇒ P(E) = (3/5 × 1/3) + (2/5 × 1/3) + (4/5 × 1/3)

⇒ P(E) = 9/15 = 3/5

Example 3: A card from a pack of 52 cards is lost. From the remaining cards of the pack, two cards are drawn and are found to be both hearts. find the probability of the lost card being a heart.

Solution:

Let E1, E2, E3, and E4 be the events of losing a card of hearts, clubs, spades, and diamonds respectively.

Then P(E1) = P(E2) = P(E3) = P(E4) = 13/52 = 1/4.

Let E be the event of drawing 2 hearts from the remaining 51 cards. Then,

P(E|E1) = probability of drawing 2 hearts, given that a card of hearts is missing

⇒ P(E|E1) = 12C2 / 51C2 = (12 × 11)/2! × 2!/(51 × 50) = 22/425

P(E|E2) = probability of drawing 2 clubs ,given that a card of clubs is missing

⇒ P(E|E2) = 13C2 / 51C2 = (13 × 12)/2! × 2!/(51 × 50) = 26/425

P(E|E3) = probability of drawing 2 spades ,given that a card of hearts is missing

⇒ P(E|E3) = 13C2 / 51C2 = 26/425

P(E|E4) = probability of drawing 2 diamonds ,given that a card of diamonds is missing

⇒ P(E|E4) = 13C2 / 51C2 = 26/425

Therefore,

P(E1|E) = probability of the lost card is being a heart, given the 2 hearts are drawn from the remaining 51 cards

⇒ P(E1|E) = P(E1) . P(E|E1)/P(E1) . P(E|E1) + P(E2) . P(E|E2) + P(E3) . P(E|E3) + P(E4) . P(E|E4)

⇒ P(E1|E) = (1/4 × 22/425) / {(1/4 × 22/425) + (1/4 × 26/425) + (1/4 × 26/425) + (1/4 × 26/425)}

⇒ P(E1|E) = 22/100 = 0.22

Hence, The required probability is 0.22.

Example 4: Suppose 15 men out of 300 men and 25 women out of 1000 are good orators. An orator is chosen at random. Find the probability that a male person is selected.

Solution:

Gievn,

  • Total Men = 300
  • Total Women = 1000
  • Good Orators among Men = 15
  • Good Orators among Women = 25

Total number of good orators = 15 (from men) + 25 (from women) = 40

Probability of selecting a male orator:

P(Male Orator) = Numbers of male orators / total no of orators = 15/40

Example 5: A man is known to speak the lies 1 out of 4 times. He throws a die and reports that it is a six. Find the probability that is actually a six.

Solution: 

In a throw of a die, let

E1 = event of getting a six,

E2 = event of not getting a six and

E = event that the man reports that it is a six.

Then, P(E1) = 1/6, and P(E2) = (1 – 1/6) = 5/6

P(E|E1) = probability that the man reports that six occurs when six has actually occurred 

⇒ P(E|E1) = probability that the man speaks the truth

⇒ P(E|E1) = 3/4

P(E|E2) = probability that the man reports that six occurs when six has not actually occurred

⇒ P(E|E2) = probability that the man does not speak the truth

⇒ P(E|E2) = (1 – 3/4) = 1/4

Probability of getting a six ,given that the man reports it to be six 

P(E1|E) = P(E|E1) × P(E1)/P(E|E1) × P(E1) + P(E|E2) × P(E2)     [by Bayes’ theorem]

⇒ P(E1|E) = (3/4 × 1/6)/{(3/4 × 1/6) + (1/4 × 5/6)}

⇒ P(E1|E) = (1/8 × 3) = 3/8

Hence the probability required is 3/8.

FAQs on Bayes’ Theorem

What is Bayes’ theorem?

Bayes, theorem as the name suggest is a mathematical theorem which is used to find the conditionality probability of an event. Conditional probability is the probability of the event which will occur in future. It is calculated based on the previous outcomes of the events.

When is Bayes’ theorem used?

Bayes’ theorem has a wide range of applications, especially in fields that deal with updating probabilities based on new data. Bayes rule lets you calculate the posterior (or updated) probability. It is used to calculate conditional probability of events.

What are some key terms to understand Bayes’ theorem?

Some of the key terms are:

  • Prior Probability (P(A))
  • Posterior Probability (P(A | B))
  • Likelihood (P(B | A))
  • Marginal Probability (P(B))

When to use Bayes’ theorem?

Bayes’ theorem is applicable when the conditional probability of an event is given, it is used to find the reverse probability of the event.

How is Bayes’ theorem different from conditional probability?

Bayes’ theorem is used to define the probability of an event based on the previous conditions of the event. Whereas, Bayes’ Theorem uses conditional probability to find the reverse probability of the event.

What is the formula for Bayes’ theorem?

Bayes theorem formula is explained below,

P(A|B) = [P(B|A) P(A)] / P(B)



Previous Article
Next Article

Similar Reads

Real Life Applications of Bayes’ Theorem
Bayes' Theorem is a mathematical formula used to update the probabilities of hypotheses based on new evidence or information. It calculates the likelihood of an event occurring given the probability of another related event. It helps us make better guesses about the world based on the information we already have. In this article, we are going to le
6 min read
Conditional Probability vs Bayes Theorem
Conditional probability and Bayes' Theorem are two imprtant concepts in probability where Bayes theorem is generalized version of conditional probability. Conditional probability is the probability of an event occurring given that another event has already occurred. Bayes' Theorem, named after the 18th-century mathematician Thomas Bayes, extends th
5 min read
Bayes's Theorem for Conditional Probability
Bayes's Theorem for Conditional Probability: Bayes's Theorem is a fundamental result in probability theory that describes how to update the probabilities of hypotheses when given evidence. Named after the Reverend Thomas Bayes, this theorem is crucial in various fields, including engineering, statistics, machine learning, and data science. This art
9 min read
Rolle's Theorem and Lagrange's Mean Value Theorem
Rolle's Theorem and Lagrange's Mean Value Theorem: Mean Value Theorems (MVT) are the basic theorems used in mathematics. They are used to solve various types of problems in Mathematics. Mean Value Theorem is also called Lagrenges's Mean Value Theorem. Rolle’s Theorem is a subcase of the mean value theorem and they are both widely used. These theore
11 min read
Consensus Theorem in Digital Logic
Prerequisite - Properties of Boolean algebra, Minimization of Boolean Functions Redundancy theorem is used as a Boolean algebra trick in Digital Electronics. It is also known as Consensus Theorem: AB + A'C + BC = AB + A'C The consensus or resolvent of the terms AB and A'C is BC. It is the conjunction of all the unique literals of the terms, excludi
3 min read
Theorem - The lengths of tangents drawn from an external point to a circle are equal - Circles | Class 10 Maths
Tangent is a straight line drawn from an external point that touches a circle at exactly one point on the circumference of the circle. There can be an infinite number of tangents of a circle. These tangents follow certain properties that can be used as identities to perform mathematical computations on circles. Here, in this article, we will learn
5 min read
Theorem - The tangent at any point of a circle is perpendicular to the radius through the point of contact - Circles | Class 10 Maths
Tangent is a straight line drawn from an external point that touches a circle at exactly one point on the circumference of the circle. There can be an infinite number of tangents of a circle. These tangents follow certain properties that can be used as identities to perform mathematical computations on circles. Here, in this article, we will learn
3 min read
Theorem - There is one and only one circle passing through three given non-collinear points | Class 9 Maths
Theorem Statement: There is one and only one circle passing through three given non-collinear points. Required Diagram: Given: Three non-collinear points P, Q, and R. To Prove: There is one and only one circle passing through P, Q, and R. Construction: Join PQ and QR. Draw perpendicular bisectors AL and BM of PQ and RQ respectively. Since P, Q, R i
3 min read
Class 11 NCERT Solutions - Chapter 8 Binomial Theorem - Exercise 8.2
Question 1. Find the coefficient of x5 in (x+3)8 Solution: The (r+1)th term of (x+3)8 is given by Tr+1 = 8Cr(x)8-r(3)r (eq1). Therefore for x5 we need to get 8-r =5 (Because we need to find x5. Therefore, power ox must be equal to 5) So we get r=3. Now, put r=3 in eq1. We get, Coefficient of x5 = 8C3(x)5(3)3 = 8!*33/(4!*4!) = 1512 Coefficient of x5
5 min read
Class 11 RD Sharma Solution - Chapter 18 Binomial Theorem- Exercise 18.2 | Set 1
Question 1. Find the 11th term from the beginning and the 11th term from the end in the expansion of (2x – 1/x2)25. Solution: We are given, (2x – 1/x2)25. The given expression contains 25 + 1 = 26 terms. So, the 11th term from the end is the (26 − 11 + 1) th term = 16th term from the beginning. Hence, T16 = T15+1 = 25C15 (2x)25-15 (−1/x2)15 = 25C15
9 min read
Class 11 RD Sharma Solutions - Chapter 18 Binomial Theorem- Exercise 18.2 | Set 3
Question 27. If the 3rd, 4th, 5th and 6th terms in the expansion of (x + α)n be respectively a, b, c, and d, prove that [Tex]\frac{b^2-ac}{c^2-bd}=\frac{5a}{3c} [/Tex]. Solution: We are given, (x + α)n So, T3 = a = nC2 xn-2 α2 T4 = b = nC3 xn-3 α3 T5 = c = nC4 xn-4 α4 T6 = d = nC5 xn-5 α5 We need to prove that, [Tex]\frac{b^2-ac}{c^2-bd}=\frac{5a}{
8 min read
Class 11 RD Sharma Solutions- Chapter 18 Binomial Theorem - Exercise 18.1
Question 1. Using binomial theorem, write down the expressions of the following:(i) (2x + 3y)5 Solution: Using binomial theorem, we have, (2x + 3y)5 = 5C0 (2x)5 (3y)0 + 5C1 (2x)4 (3y)1 + 5C2 (2x)3 (3y)2 + 5C3 (2x)2 (3y)3 + 5C4 (2x)1 (3y)4 + 5C5 (2x)0 (3y)5 = 32x5 + 5 (16x4) (3y) + 10 (8x3) (9y)2 + 10 (4x)2 (27y)3 + 5 (2x) (81y4) + 243 y5 = 32x5 + 2
15 min read
Finding Derivative with Fundamental Theorem of Calculus
Integrals are the reverse process of differentiation. They are also called anti-derivatives and are used to find the areas and volumes of the arbitrary shapes for which there are no formulas available to us. Indefinite integrals simply calculate the anti-derivative of the function, while the definite integrals have limits and usually denote the are
5 min read
Work Energy Theorem
The concept "work" is commonly used in ordinary speech, and we understand that it refers to the act of accomplishing something. For example, you are currently improving your understanding of Physics by reading this article! However, Physics may disagree on this point. The Work-energy Theorem explains why this Physics of no work exists! When an oper
12 min read
How to use DeMoivre's theorem to simplify (1 + √3i)6?
Complex numbers are the numbers of the form a + ib, such that a and b are real numbers and i (iota) is the imaginary component and represents √(-1), commonly depicted in their rectangular or standard form. For example, 10 + 5i is a complex number where 10 is the real part and 5i is the imaginary part. These can be purely real or purely imaginary de
4 min read
How to use De Moivre's theorem to simplify (1 - i)10?
A complex number can be called a hybrid of real and imaginary numbers, with the real number or constituent being any fraction, rational or irrational integer and its imaginary part being represented as a real number in multiplication with the imaginary unit iota, depicted i. Thus, a complex number shows a real number and an imaginary number combine
5 min read
Lami's Theorem
Lami's Theorem, also known as Lami's Law, is a principle in statics and mechanics of materials that relates the forces acting on a body in static equilibrium. It is named after the Italian mathematician and physicist Bernard Lami. Lami's Theorem is typically applied to a body or structure subjected to concurrent forces. Imagine three friends pullin
8 min read
Divergence Theorem
Divergence Theorem is one of the important theorems in Calculus. The divergence theorem relates the surface integral of the vector function to its divergence volume integral over a closed surface. In this article, we will dive into the depth of the Divergence theorem including the divergence theorem statement, divergence theorem formula, Gauss Dive
9 min read
How to use DeMoivre's Theorem to simplify z4 + 8√3 - 8i = 0?
Complex numbers are the numbers of the form a + ib, such that a and b are real numbers and i (iota) is the imaginary component and represents √(-1), commonly depicted in their rectangular or standard form. For example, 10 + 5i is a complex number where 10 is the real part and 5i is the imaginary part. Polar Form of a Complex NumberHere, the polar c
4 min read
How to Use De Moivre's Theorem to simplify (-2 + 2i)8?
Complex numbers are the combination of real and imaginary values. They are expressed in the form of x + iy where x and y are real numbers and i is the imaginary part also called iota. It is often represented by z. The value ‘x’ is called the real part, denoted by Re(z) and the value ‘y’ is called the imaginary part which is denoted by Im(z). The co
6 min read
Pythagorean Theorem Formula
Pythagorean theorem also known as Pythagoras' theorem can be defined as a relation among the three sides (hypotenuse, base, perpendicular) of a right-angled triangle. It states that the sum of squares of two small sides(base and perpendicular) is equal to the square of the longest side (hypotenuse). This theorem is named after the Greek philosopher
4 min read
James A. Garfield's Proof of the Pythagorean Theorem
Pythagorean theorem is a theorem for right-angled triangles, it is also referred to as the Pythagoras theorem. It is used to show the connection in the sides of a triangle which is a right-angled triangle. According to this theorem sum of squares of any two small sides is equal to the square of the biggest side. The small sides of a right-angled tr
5 min read
How to use DeMoivre's Theorem to simplify [2(cos π/3 + i sin π/3)]5?
AvichalbhartiComplex numbers are the numbers of the form a + ib, such that a and b are real numbers and i (iota) is the imaginary component and represents √(-1), commonly depicted in their rectangular or standard form. For example, 10 + 5i is a complex number where 10 is the real part and 5i is the imaginary part. Polar Form of a Complex NumberHere
3 min read
Application of Bernoulli's Theorem
Bernoulli's Theorem, a principle in fluid dynamics, states that an increase in the speed of a fluid occurs simultaneously with a decrease in pressure or a decrease in the fluid's potential energy. This theorem is a manifestation of the conservation of energy principle, specifically applied to fluid flow. It plays a crucial role in various engineeri
2 min read
Application of Gauss Theorem
Gauss's Theorem, also known as the Divergence Theorem, is a powerful tool in vector calculus that provides a relationship between the flow (flux) of a vector field through a closed surface and the divergence of the field within the volume enclosed by the surface. This theorem has profound implications in physics and engineering, simplifying complex
2 min read
How can the Pythagorean theorem be proved by paper folding?
Pythagorean theorem is a theorem for right-angled triangles, it is also referred to as the Pythagoras theorem. It is used to show the connection in the sides of a triangle which is a right-angled triangle. According to this theorem sum of squares of any two small sides is equal to the square of the biggest side. The small sides of a right-angled tr
4 min read
Practice Questions on Remainder theorem | Class 9 - Chapter 2 Polynomials
Question 1. Find the remainder when x3 + 3x2 + 3x + 1 is divided by(i) x + 1 Solution: x + 1 = 0 x = −1 Therefore remainder will be f(x): f(−1) = (−1)3 + 3(−1)2 + 3(−1) + 1 = −1 + 3 − 3 + 1 = 0 (ii) x – 1/2 Solution: x - 1/2 = 0 x = 1/2 Therefore remainder will be f(x): f(1/2) = (1/2)3 + 3(1/2)2 + 3(1/2) + 1 = (1/8) + (3/4) + (3/2) + 1 = 27/8 (iii)
2 min read
Perpendicular Axis Theorem
Perpendicular Axis Theorem, also known as the perpendicular axes rule, is a theorem in physics that relates the moments of inertia of a two-dimensional object about three perpendicular axes. It is one of those very fundamental physics principles that we use to understand how the object in question changes its rotational path perpendicular to the pl
8 min read
Real Life Application of Butterfly-Theorem
Butterfly Theorem holds significant importance in geometry as it aids in understanding the interactions between points and lines within shapes, particularly when points are in motion. Consider a scenario where a point moves along a line, dividing it into two equal parts. Despite the movement of the point, these two parts always maintain equality in
7 min read
Real Life Applications of Divergence Theorem
Divergence Theorem states that the total outward flux of a vector field through a closed surface is equal to the volume integral of the divergence of the vector field over the region enclosed by the surface. It's a powerful tool used in physics and engineering for simplifying the calculation of flux integrals and understanding the behaviour of vect
6 min read