# Mizan: Perspectives

**Perspectives** (`explore.html`, *zawāyā al-naẓar*) looks at one surah, or the whole Qurʾān, through one mathematical **lens** at a time: 24 lenses grouped by theme. Each lens states a question, shows a chart and tells you plainly what the result **does not** show.

Open [/numerical_analysis/explore.html](/numerical_analysis/explore.html).

## Overview
The page has, from the top: **Text to study**, **Measure each verse by**, the **Researcher** switch, the theme button, the **lens rail** at the left, then the lens header, controls, chart, tiles, insight and **five tabs**.

## Text to study
Use the **Text to study** select to pick a surah (or the whole Qurʾān); **‹** and **›** step to the previous or next surah (keys `[` and `]`). Every lens analyses this text.

## Measure each verse by
**words**, **letters** or **abjad**: what a verse's size means in lenses that use verse length.

## Choosing a lens
The **rail** lists lenses by group (mobile: a select). The header shows the lens's number, its group and **the question it asks**. Move with **← →** (lens) or the **pager** buttons.

| Group | Lenses |
|---|---|
| Begin here | `guide` Map of the Quran |
| Shape of the text | `terrain` The verse terrain · `lorenz` Inequality of verses · `chronology` Through the order of revelation |
| Memory & rhythm | `acf` Memory from verse to verse · `dfa` Long-range scaling (DFA) · `spectrum` Rhythms: spectrum and wavelets · `phase` Phase space · `rhyme` Verse endings (fawāṣil) |
| Vocabulary & information | `heaps` Vocabulary growth (Heaps) · `zipf` Zipf's law across surahs · `entropyrate` Entropy rate · `midecay` Long-range information · `markov` The letter chain |
| Words & surahs | `burstiness` How words spread · `keyness` What makes a surah distinctive · `space` Surah space |
| Numbers, honestly | `benford` Benford's law · `residues` Divisibility heaping |
| Shapes | `circle` The even–odd circle · `spiral` The shell spiral · `helix` The double helix · `silhouette` Triangles, diamonds and towers · `orbit` The verse orbit · `shapeboard` Shape scoreboard |

### Lens controls
Each lens may have its own **controls** (for example a *Height* setting) under the header.

## The chart
A lens's chart sits in the chart card with a status line and a short help text. Under it:

### Headline numbers
Tiles with the lens's key numbers.

### Insight
One sentence reading the result. Some lenses add extra tables or notes.

## The five tabs
| Tab | Shows |
|---|---|
| **In plain words** | A non-technical explanation. |
| **The mathematics** | The formulas and parameters. |
| **How surprising is it?** | The comparison with chance; see [base rates](/docs/34-mizan-counting-rules#base-rates). |
| **What it does not show** | What the result cannot establish; see [honest limits](/docs/34-mizan-counting-rules#honest-limits). |
| **Data table** | The numbers behind the chart. |

Read **What it does not show** first if you are sceptical; it is the page's most important tab.

## Chart tools
The toolbar above the chart: a view selector, **⟲ Reset** (key `R`), **⤢** full screen (key `F`) and, on 3D lenses, camera presets **Iso / Front / Top / Side** and **⟳ Spin**.

### Exporting
Click **PNG**, **SVG**, **CSV** or **JSON** to download the chart or its data.

### Sharing
Click **Link**. *It copies an address of the form `explore.html#<lens id>?target=<surah>&measure=<words|letters|abjad>…` that opens exactly this lens and view.* Anyone who opens it, after signing in, sees what you saw. Example: [the terrain lens on surah 18](/numerical_analysis/explore.html#terrain?target=18&measure=words).

## Researcher mode
Tick **Researcher**. *The mathematics tab opens by default and an extra line shows the API call and the random seed behind the view.* It is for people who want to reproduce a figure.

## Theme
The moon/sun button switches light and dark.

## The lenses

Each lens has a section below. Its text is the question it asks. The data, tabs and limits are in the page itself.

### Map of the Quran
Where to start. A guided map of the lenses and what each one is for.

### The verse terrain
What is the landscape of verse lengths across a surah? Peaks and valleys of verse size.

### Inequality of verses
How unequal are verse lengths? A Lorenz curve and Gini coefficient.

### Through the order of revelation
Does anything change when surahs are placed in order of revelation rather than mushaf order?

### Memory from verse to verse
Does a long verse tend to follow a long verse? Autocorrelation of verse lengths.

### Long-range scaling (DFA)
Does the fluctuation of verse length show long-range memory?

### Rhythms: spectrum and wavelets
Are there hidden periodicities in the verse lengths?

### Phase space
How does each verse's size relate to the next, drawn as a path?

### Verse endings (fawāṣil)
How are the rhyming endings of verses distributed?

### Vocabulary growth (Heaps)
How fast does new vocabulary appear as the text goes on?

### Zipf's law across surahs
Do word frequencies follow a power law in each surah?

### Entropy rate
How predictable is each next letter?

### Long-range information
How far apart can two letters be and still tell you about each other?

### The letter chain
What does a letter-to-letter Markov chain of the text look like?

### How words spread
Are words clustered in bursts, or spread evenly?

### What makes a surah distinctive
Which words are characteristic of this surah against the rest?

### Surah space
How close or far are surahs from one another by vocabulary?

### Benford's law
Do the leading digits of the counts follow Benford's distribution?

### Divisibility heaping
Do counts pile up on multiples of a number more than chance predicts?

### The even–odd circle
All verses on one circle, coloured by parity of their size.

### The shell spiral
The verses laid out along a spiral.

### The double helix
A two-strand 3D view of verse sizes.

### Triangles, diamonds and towers
Verse sizes as stacked silhouettes.

### The verse orbit
Verse sizes as orbits around a centre.

### Shape scoreboard
A comparison of all the shape lenses against random orderings, so you can see which "shapes" are ordinary.
