Byte-Frequency Chi-Square Calculator

Calculates the Chi Square distribution of values.

Input: Text (UTF-8) or original file bytesResult: Numeric value

Text input

Examples

A full-byte alphabet biased toward A

Start with one of every byte, then add sixteen copies of A. Compare departure from a uniform byte distribution; this is not a cryptographic randomness certification.

Input

be7e19885e85d3059cce40e0.bin

272 bytes

Download

Expected answer

Tolerance ±2.4e-10
240
A full-byte alphabet biased toward B

Start with one of every byte, then add sixteen copies of B. Compare departure from a uniform byte distribution; this is not a cryptographic randomness certification.

Input

88c9782be50185745e8ede42.bin

272 bytes

Download

Expected answer

Tolerance ±2.4e-10
240
A full-byte alphabet biased toward C

Start with one of every byte, then add sixteen copies of C. Compare departure from a uniform byte distribution; this is not a cryptographic randomness certification.

Input

43d4200006f6120fb55c3861.bin

272 bytes

Download

Expected answer

Tolerance ±2.4e-10
240
A full-byte alphabet biased toward D

Start with one of every byte, then add sixteen copies of D. Compare departure from a uniform byte distribution; this is not a cryptographic randomness certification.

Input

16ce31084eac20998b4c1c40.bin

272 bytes

Download

Expected answer

Tolerance ±2.4e-10
240
A full-byte alphabet biased toward E

Start with one of every byte, then add sixteen copies of E. Compare departure from a uniform byte distribution; this is not a cryptographic randomness certification.

Input

deddf894bcec45534daa7221.bin

272 bytes

Download

Expected answer

Tolerance ±2.4e-10
240

Format reference: Chi Square background and specification

What does this statistic measure?

For each of the 256 byte values, this tool compares its observed count with the expected count of input length divided by 256. It sums (observed − expected)² / expected. The input AAAA produces 1020. This is not a contingency-table test, a p-value calculator or proof that data is encrypted.

Related tools

Browse other tools