Two-Way Table and Relative Frequency Calculator
Complete two-way tables from partial data, switch between counts and percentages, and read joint, marginal and conditional probabilities with every step shown.
브라우저에서 실행됩니다. 파일은 기기 밖으로 나가지 않습니다. 확인하는 방법 보기
…
사용 방법
- 1Name the rows and columns
Type the category names and add or remove rows and columns as needed.
- 2Enter what you know
Type counts and totals; leave unknown cells empty.
- 3Fill the gaps
Read the solving steps and press Write the found values into the table.
- 4Change the view
Switch between counts, percentage of total, row percentages and column percentages.
- 5Find probabilities
In Probabilities choose events A and B and read the joint, marginal and conditional values.
- 6Chart and practise
View the stacked bars in Chart, then use Practice for exam-style questions.
이 도구 소개
Two-way tables appear in almost every probability course, from GCSE to AP Statistics, because they turn conditional probability into counting. The typical exam question gives a partly filled table, asks you to complete it and then to find a probability "given that". This calculator handles the whole job. Type the cells and totals you know and leave the rest empty: the solver fills in each missing value from row and column sums and lists the order in which it found them. Switch the view between counts, percentages of the grand total, row percentages and column percentages. Pick a row event and a column event to get P(A), P(B), P(A and B), P(A or B) and both conditional probabilities as fractions and decimals, with an independence check, expected counts and a 100% stacked bar chart.
Who it is for
Students in GCSE and IGCSE maths, AP Statistics and introductory college statistics, psychology and biology students summarising survey data, and teachers making answer keys.
Completing a table
The grid includes a total row and a total column. Each row and each column must add up, so any row or column with exactly one empty cell can be solved. The tool repeats this until nothing more can be found. Found values appear in blue italics, and Write the found values into the table copies them in. If two cells are missing in every remaining line, it asks for more information instead of guessing.
Percentages and relative frequencies
Relative frequency is a count divided by a total. Which total you divide by changes the meaning: the grand total gives joint relative frequencies, the row total gives conditional distributions of the column variable within each row, and the column total gives the reverse. The view menu switches between all four.
Probabilities
Choose event A as a row and event B as a column. P(A and B) is the cell over the grand total, P(A) the row total over the grand total, and P(A | B) the cell over the column total, since knowing B restricts you to that column. The addition rule gives P(A or B). If P(A | B) is close to P(A), the events look independent. Expected counts under independence (row total × column total ÷ grand total) are listed for a chi-square test.
Worked example
32 Year 9 and 18 Year 10 students walk, 25 and 36 take the bus, 17 and 14 come by car, 142 in all. P(Walk) = 50/142 = 0.352. P(Walk | Year 9) = 32/74 = 0.432, which is higher than 0.352, so travel mode and year are not independent in this sample.
Limits
The table supports two to six rows and columns. The independence check compares proportions in the sample and is not a significance test; use a chi-square test for that. Probabilities apply to choosing one person at random from this table, not to a wider population unless the data are a random sample.
풀이 예시
Walk 50 of 142 students; P(Walk | Year 9) = 32/74 = 0.432 against P(Walk) = 0.352.
한눈에 보기
- 카테고리: 수학 및 과학
- 브라우저에서 실행되며 가입도 업로드도 필요 없습니다.
- 입력한 정보는 기기에 머뭅니다.
- 영어로 제공됩니다.
- 콘텐츠 최종 검토일:
- 공식 출처: OpenStax Introductory Statistics 2e, section 3.4: Contingency Tables
자주 묻는 질문
What is a two-way table?
A table that counts people or items by two categorical variables at once, such as year group and travel mode, with totals for each row and column.
How do I find a conditional probability from a two-way table?
Restrict yourself to the row or column you are given, then divide the cell by that row or column total. P(Walk | Year 9) uses only the Year 9 column.
What is the difference between joint and marginal probability?
A joint probability involves both variables, such as P(Walk and Year 9). A marginal probability involves one, such as P(Walk), and uses a total from the margin of the table.
How are missing cells calculated?
From the fact that each row and column adds up to its total. Any line with one unknown is solved, and the process repeats until the table is complete.
How do I check independence?
Compare P(A | B) with P(A). If they are equal (or very close in a large sample), A and B are independent; the expected counts show what a perfectly independent table would contain.
Can I print the table?
Yes. Print includes the completed table and the probabilities for the chosen events, and CSV exports the table with totals.
