Probability Tree Diagram Maker
Draw a tree of branches with probabilities as fractions, decimals or percentages, and get every path product, any event, P(A | B), the reversed Bayes tree and a clean diagram for homework.
Berjalan dalam pelayar anda. Fail anda tidak pernah meninggalkan peranti. Lihat cara menyemaknya
…
Cara melakukannya
- 1Choose a start
Pick an example such as the bag of counters, or start from two blank branches.
- 2Add branches
Type labels and probabilities, add children under any branch, or add a stage under every outcome at once.
- 3Check the sums
Fix any split the tool marks in red, or leave one branch blank as the rest.
- 4Define events
Set conditions for A and B to get P(A), P(A or B) and P(A | B) with the working.
- 5Read it backwards
Open the Bayes tab for reverse probabilities, or add values for an expected value.
- 6Export
Download the diagram as PNG or SVG, the outcomes as CSV, or print the whole sheet.
Tentang alat ini
A probability tree shows a sequence of chance events as branches that split from left to right. Each branch carries the probability of that result given everything before it, and the probability of a complete path is the product of the numbers along it. This maker lets you build such a tree in a few clicks and does the arithmetic exactly. Type a probability as 3/8, 0.375 or 37.5% and the tool keeps it as a fraction, so 5/8 × 4/7 is shown as 5/14 and never as a rounded decimal that drifts when you add several paths. Leave one branch at each split blank and it becomes "the rest", filled in as one minus the others, which is exactly how textbook questions are usually set. A check flags any split whose branches do not add up to 1 and colours its lines red. For common set-ups there are generators: repeated independent trials such as coin tosses or dice, and drawing items from a bag without replacement, where the counts fall after each draw. Once the tree is built, describe an event with simple conditions such as "Red at stage 2" or "Six at any stage" and the tool lists the outcomes it contains, adds them, and gives P(A or B), the complement, the conditional probability P(A | B) and an independence check. A reverse view reads the tree backwards with Bayes' theorem, and an expected value tab attaches a prize or score to each outcome.
How the tree is calculated
Multiplication along a path uses the rule P(A and B) = P(A) × P(B | A): each branch already holds the probability given the earlier branches, which is why the second draw from a bag changes its denominators. Addition across outcomes uses the rule for mutually exclusive events: different paths can never happen together, so the probability of an event is the sum of the paths that make it up. P(A | B) is found as P(A and B) ÷ P(B), and the reverse table divides each joint path probability by the total for its final result. Fractions are stored as whole-number pairs, reduced by their greatest common divisor at every step, so even long trees stay exact.
Worked example
A bag holds 5 red and 3 blue counters and two are taken without replacement. The first draw is red with probability 5/8 and blue with 3/8. After a red, 4 of the 7 left are red, so the second-stage branches are 4/7 and 3/7; after a blue they are 5/7 and 2/7. The four paths give P(red, red) = 5/8 × 4/7 = 5/14, P(red, blue) = 15/56, P(blue, red) = 15/56 and P(blue, blue) = 3/28, which add up to 1. The chance of one counter of each colour is 15/56 + 15/56 = 15/28. P(second is red) = 5/14 + 15/56 = 5/8, the same as the first draw, and P(second red | first red) = (5/14) ÷ (5/8) = 4/7, so the two draws are not independent. In the screening sample, a 1% prevalence with 90% sensitivity and a 5% false positive rate gives P(positive) = 117/2000 and P(condition | positive) = 2/13, about 15%.
Limits
The tool handles finite trees with up to a few hundred nodes; very deep trees are better solved with a formula such as the binomial distribution. It does not check whether your probabilities model the real situation: that judgement, and spotting dependence between stages, is still yours. The screening example is a classroom illustration, not medical advice.
Contoh berselesaian
Two draws from 5 red and 3 blue: P(RR) = 5/14, P(one of each) = 15/28, P(second red | first red) = 4/7.
Ringkasnya
- Kategori: Matematik & sains
- Berjalan dalam pelayar, tanpa pendaftaran, tanpa muat naik.
- Maklumat yang anda masukkan kekal pada peranti anda.
- Tersedia dalam bahasa Inggeris.
- Kandungan disemak kali terakhir:
- Sumber rasmi: AQA GCSE Mathematics 8300 specification, probability P8 and P9
Soalan lazim
How do I enter "the rest" on a branch?
Leave the probability box empty, or type a question mark. At each split one branch may be blank and it is filled with one minus the sum of the others. Two blanks at the same split cannot be solved, so the tool asks you to fill one of them.
Can I type decimals or percentages instead of fractions?
Yes. 0.3 becomes 3/10 and 12.5% becomes 1/8, and every product stays exact. Choose whether the diagram shows fractions, decimals or both, and how many decimal places to use.
How do I find a probability like "at least one six"?
Set event A to "Six at any stage". The tool collects every path that contains a six and adds them; with two dice that is 1/36 + 5/36 + 5/36 = 11/36. The complement tab shows the probability of no six at all, 25/36.
What does the reverse or Bayes view show?
It answers questions of the form "given the second-stage result, how likely was each first-stage branch?". For each final result it divides the probability of each path by the total probability of that result, which is Bayes' theorem in tree form.
How do I get the diagram into my homework?
Download it as PNG for a document or slide, or as SVG for sharp printing at any size. Print or save as PDF to get the diagram together with the outcome table and the event results.
Can I build a tree from text?
Yes. Write one branch per line as label: probability and indent each later stage by two spaces. Paste the outline and press Build tree from text; the current tree can be shown or copied in the same format.
