Trending and analysis

Charts from data, normality and hypothesis tests

Upload a CSV or Excel file and ask Q Intelligence for the chart that shows the trend, test data for normality with p-values, and run statistical hypothesis tests (t-tests, Mann-Whitney, ANOVA, Fisher's exact, chi-square).

In the portal: /app/intelligence

Charts from a file

Attach the file to a Q Intelligence message and ask, for example "plot the trend of the assay results" or "make a Pareto of the deviation categories". Q Intelligence reads the column headers, picks the chart (or the one you name), draws it in the conversation and interprets it.

ChartUse it forAnalysis shown
LineA value over time or sequence; several columns as seriesn, mean, SD per series; optional linear trend (slope, R², p-value) and moving average
BarValues per category, or counts, totals or means by a category columnHighest and lowest
ParetoThe categories that matter most (deviation types, defect codes)Cumulative % and the vital few (80%)
HistogramThe distribution of one parameterSummary, normality tests, results outside specification
Box plotOne parameter across groups (line, shift, supplier)Quartiles, outliers (1.5 × IQR), one-way ANOVA
ScatterTwo numeric columnsRegression line, slope, r, R², p-value
  • Several series share a chart only when they share a unit and scale; measures on different scales (assay and pH) get separate charts. No chart has two y-axes.
  • Limits: 5,000 rows, 6 series, 60 categories or groups, 6 charts or analyses per answer.
  • Each chart has Chart and Table views (and Normality for histograms), CSV and PNG downloads, and can be saved and pinned like a control chart.

Normality tests

TestStatisticp-value
Shapiro-WilkW (Royston AS R94), 3 to 5,000 resultsRoyston's normalising transformation
Anderson-DarlingA² with the small-sample adjustmentD'Agostino and Stephens

The data are reported normal when every p-value is at least 0.05 (no evidence against normality), and not normal otherwise, with a caution about normal-based capability and ppm. Skewness, excess kurtosis and a normal probability plot are shown. Notes warn when fewer than 8 results give little power, when 1,000 or more results reject trivial departures, and when coarse resolution causes rejection.

Hypothesis tests

Ask whether a difference or association is real, for example "is the defect rate higher on Line 2?", and Q Intelligence runs the test on the attached data: a value column grouped by a group column, two or more value columns as groups, or a count table cross-tabulated from two category columns. In an investigation, the same tests run on each fishbone cause (see Investigations).

TestUse it forReported
Two-sample t-test (Welch)Two groups' means, unequal variances allowedt, df, p, difference, confidence interval, Cohen's d
Paired t-testThe same units measured twicet, df, p, mean difference, confidence interval
One-sample t-testOne group against a targett, df, p, difference, confidence interval
Mann-Whitney UTwo groups without assuming normal dataU, p (exact for small samples), medians
One-way ANOVAThree or more groupsF, df, p, highest and lowest means, η²
Fisher's exact test2 × 2 countsp, odds ratio, the two rates
Chi-square testLarger tables of countsχ², df, p, Cramér's V, largest departure
Choosing a test
  1. Person

    1. What are the data?

    Measurements or counts

  2. Person

    2. How many groups?

    One (vs target), two, or more

  3. Person

    3. Paired or independent?

    Same units measured twice?

  4. System

    4. Run the test

    Computed on the server

  5. Person

    5. Read p, effect and interval

    Significance and size of the difference

  • Measurements, two independent groups → Welch t-test (Mann-Whitney if skewed or very small).
  • Measurements, same units twice → paired t-test. Three or more groups → one-way ANOVA.
  • Counts in a 2 × 2 table → Fisher's exact test; larger tables → chi-square.

Tip: A p-value below alpha (0.05 by default) shows a difference or association, not its cause. A p-value above it does not prove the groups are the same, especially with small samples. The calculations match SciPy to about 1e-12.