# Quick Statistics

The **Quick Statistics** tab automatically explores your dataset by running the most common statistical tests on **all valid combinations of variables**.  
This gives you a quick overview of significant relationships without having to manually set up each test.

<div style="display:flex;gap:12px;align-items:flex-start;margin:16px 0">
  <img src="assets/quick-stats.png" style="width:48%;border-radius:6px;box-shadow:0 2px 8px rgba(0,0,0,0.15)" alt="Quick Statistics tab overview">
  <img src="assets/quick-stats2.png" style="width:48%;border-radius:6px;box-shadow:0 2px 8px rgba(0,0,0,0.15)" alt="Quick Statistics — correlation result with 2D KDE contour">
</div>

---

## How it works

- Variable types (continuous, categorical, binary) are **defined in the Data Summary tab**.  
- Quick Statistics then:
  - Uses those types to determine which statistical tests are appropriate.  
  - Runs the tests across all valid combinations of variables.  
  - Displays the results as a list of **result blocks**.  

This makes it easy to discover patterns and significant effects across your dataset in just a few seconds.

---

## Toolbar (filters)

The buttons at the top are **filters** that show only results of a specific test type:

| Button | What it covers |
|---|---|
| **Chi-Square Test** | Associations between categorical / binary variables |
| **T-Test** | Mean difference between two groups (parametric) |
| **Mann–Whitney U Test** | Two-group comparison — non-parametric |
| **ANOVA** | Mean comparison across three or more groups |
| **Kruskal–Wallis H Test** | Multi-group comparison — non-parametric |
| **Pearson Correlation** | Linear correlation between two continuous variables |
| **Spearman Correlation** | Rank-based correlation — non-parametric |
| **Multiple Linear Regression** | Continuous outcome predicted by several variables |
| **Multiple Logistic Regression** | Binary outcome predicted by several variables |

Clicking a filter button hides all other test types. Click it again (or click **All**) to restore all results.

**Search box**  
Start typing a variable name and the view updates instantly, showing only results that involve that variable.  
> 💡 Useful when you want to see everything related to a specific column.

**Show only significant** — checkbox that hides results where p ≥ 0.05, letting you focus on meaningful findings.

**Remove Statistic** — removes a single result block permanently from the current session.

---

## Result blocks

Each automatically generated result block is divided into two main sections:

- **Left side** — Description & detailed output
  - **Top**: Short description — a plain-language explanation of what the selected test does (e.g., *“The ANOVA test compares the means of multiple groups to check if at least one group mean is significantly different.”*).  
  - **Below**: Full statistical details:
    - Test statistic, degrees of freedom, p-value.  
    - Effect sizes and confidence intervals (when available).  
    - Power analysis (if sample size is low).  
    - Contingency tables or summary tables, depending on the test type.  

- **Right side** — Visual & report
  - **Top**: Plot showing the relationship (e.g., bar chart, mean plot, correlation scatter).  
  - **Bottom**: Report text — automatically generated, ready to copy into papers or reports.  

This structure provides both an explanation (for interpretation) and full technical details (for reporting and validation).

---

## Export options

- **Export displayed QStats** — saves only the results currently visible after applying filters (e.g., only ANOVA results, or only significant results).  
  > Example: If you filter by **T-Test** and enable **Show only significant**, the export will contain only the significant T-Test results.  

- **Export all QStats** — saves every Quick Statistics result for the dataset, ignoring filters.


---

## Quick workflow

1. Define and adjust variable types in **Data Summary**.  
2. Open **Quick Statistics** — analyses run automatically on all valid combinations.  
3. Use the **toolbar filters** to focus on specific types of tests.  
4. Review the result blocks with stats, interpretations, and plots.  
5. Apply **Show only significant** to highlight meaningful results.  
6. Export results or copy report text for further use.  

---

## Plot Editor

Every result block has an **Edit Plot** button. Click it to:

- **Change the plot type** — switch to any compatible chart style for that test (e.g., swap a boxplot for a violin plot, raincloud, or strip plot). Only chart types valid for the result's test are shown in the dropdown.
- **Customise appearance** — edit title, axis labels, font sizes, legend, and dimensions.

---

## Tips

- **Variable typing matters**: Double-check your variable types in Data Summary, since Quick Stats relies on them to pick the right test.  
- Use the **test-type filter buttons** to focus on one category of analysis at a time.  
- Combine **Show only significant** with **Export displayed QStats** to generate a focused report in one click.  
- For tailored models (e.g., ANCOVA, MANOVA, ROC curves, partial correlations), switch to the **Custom Statistics** tab.  
- Use the **Plot Editor** to change chart styles after results are generated — no need to rerun the test.

---

**Next:** [Custom Statistics](custom-stats.md)
