The von Mises distribution and axial data
Meet the circle's normal distribution, read κ as concentration, and spot two-peaked data that the mean direction hides.
What runs in CodeSplash
- Circular summary (mean direction, R̄, κ) Verified in Python and R
You will be able to
- Read the von Mises concentration κ and connect it to R̄
- Recognize bimodal and axial data and apply angle doubling
- Say when a mean direction is a poor summary
Read first
A bell curve on a circle
ReadThe von Misesvon Mises distributionThe circle's counterpart of the normal distribution, with a mean direction μ and concentration κ. distribution plays the role of the normal on a circle. It has a mean direction and a concentrationConcentration κ (von Mises)The von Mises distribution's concentration; 0 is uniform, about 2 is moderately clustered, above 10 very tight. :
is uniform. Larger packs the angles more tightly around ; for large , it behaves like a normal with variance .
The maximum-likelihood estimate solves , where is a ratio of Bessel functions. So and carry the same information in different units.
Three groups of pigeons
PredictPredict first
Homing pigeons are released under three conditions: control, with a magnet attached, and with their sense of smell removed.
Which group do you expect to have the highest concentration ?
Reveal
In this simulated example, control. Control pigeons have near 0.9 with near 5; the magnet and anosmic groups are less concentrated. The full table is on the card below.
θ̄ = 108.1°, R̄ = 0.71, κ = 2.05, n = 66
- Mean direction
- 108.09
- Mean resultant length R̄
- 0.7061
- Concentration κ (von Mises)
- 2.052
- Circular SD
- 47.803
Plots
View data
| bearing | group |
|---|---|
| 92.400 | control |
| 127.20 | control |
| 49.300 | control |
| 52.300 | control |
| 105.30 | control |
| 80.500 | control |
| 96.800 | control |
| 100.70 | control |
| 75.600 | control |
| 84.300 | control |
| 95.800 | control |
| 105.90 | control |
| 130.90 | control |
| 130.70 | control |
| 38.100 | control |
| 128.60 | control |
| 114.50 | control |
| 96.900 | control |
| 61 | control |
| 93.800 | control |
| 108.50 | control |
| 89.900 | control |
| 116.20 | control |
| 144.20 | control |
| 97.100 | magnet |
| 159.20 | magnet |
| 195.10 | magnet |
| 40.400 | magnet |
| 171.30 | magnet |
| 136.30 | magnet |
| 142.20 | magnet |
| 70.200 | magnet |
| 176.20 | magnet |
| 121.40 | magnet |
| 168 | magnet |
| 157.70 | magnet |
| 127.10 | magnet |
| 161.60 | magnet |
| 129.10 | magnet |
| 65 | magnet |
| 193.40 | magnet |
| 128.20 | magnet |
| 188.60 | magnet |
| 134.60 | magnet |
| 172.90 | magnet |
| 181 | magnet |
| 0.3000 | anosmic |
| 27.700 | anosmic |
| 59.300 | anosmic |
| 82.200 | anosmic |
| 29.200 | anosmic |
| 116 | anosmic |
| 120.90 | anosmic |
| 98.900 | anosmic |
| 36.900 | anosmic |
| 120.40 | anosmic |
| 117.10 | anosmic |
| 106.20 | anosmic |
| 206.80 | anosmic |
| 63.700 | anosmic |
First 60 of 66 rows.
View data
| bearing | group |
|---|---|
| 92.400 | control |
| 127.20 | control |
| 49.300 | control |
| 52.300 | control |
| 105.30 | control |
| 80.500 | control |
| 96.800 | control |
| 100.70 | control |
| 75.600 | control |
| 84.300 | control |
| 95.800 | control |
| 105.90 | control |
| 130.90 | control |
| 130.70 | control |
| 38.100 | control |
| 128.60 | control |
| 114.50 | control |
| 96.900 | control |
| 61 | control |
| 93.800 | control |
| 108.50 | control |
| 89.900 | control |
| 116.20 | control |
| 144.20 | control |
| 97.100 | magnet |
| 159.20 | magnet |
| 195.10 | magnet |
| 40.400 | magnet |
| 171.30 | magnet |
| 136.30 | magnet |
| 142.20 | magnet |
| 70.200 | magnet |
| 176.20 | magnet |
| 121.40 | magnet |
| 168 | magnet |
| 157.70 | magnet |
| 127.10 | magnet |
| 161.60 | magnet |
| 129.10 | magnet |
| 65 | magnet |
| 193.40 | magnet |
| 128.20 | magnet |
| 188.60 | magnet |
| 134.60 | magnet |
| 172.90 | magnet |
| 181 | magnet |
| 0.3000 | anosmic |
| 27.700 | anosmic |
| 59.300 | anosmic |
| 82.200 | anosmic |
| 29.200 | anosmic |
| 116 | anosmic |
| 120.90 | anosmic |
| 98.900 | anosmic |
| 36.900 | anosmic |
| 120.40 | anosmic |
| 117.10 | anosmic |
| 106.20 | anosmic |
| 206.80 | anosmic |
| 63.700 | anosmic |
First 60 of 66 rows.
Assumptions
- A mean direction exists — Rayleigh Z = 32.90, p < .001: the angles cluster around a direction.
- One preferred direction — R̄ of doubled angles 0.22.
Directions
| Group | n | Mean direction | Mean (degrees) | R̄ | Circular SD (degrees) | κ |
|---|---|---|---|---|---|---|
| All | 66 | 108.1° | 108.09 | 0.7061 | 47.803 | 2.052 |
| control | 24 | 97.1° | 97.065 | 0.8947 | 27.028 | 5.058 |
| magnet | 22 | 145.2° | 145.18 | 0.7686 | 41.564 | 2.534 |
| anosmic | 20 | 81.2° | 81.233 | 0.6745 | 50.850 | 1.866 |
- Angles in degrees; interval: normal approximation. κ is the von Mises maximum-likelihood estimate (bias-corrected 1.96).
The exact R script · R R version 4.5.1 (2025-06-13)
# Circular summary (mean direction, R̄, κ)
# Generated by CodeSplash Analytics 1.0.0 on 2026-11-09 · method circular.describe 1.0.1 · spec d12084132eb875b6
# Dataset: ci_pigeons (version 1)
# Runs on its own: outside the app, cs_publish() writes $CS_RESULT_PATH or prints the result JSON.
# %% Setup
library(codesplashr)
# %% Data
df <- as.data.frame(nanoparquet::read_parquet("tests/parity/fixtures/ci_pigeons.parquet", col_select = c("bearing", "group")))
n_input <- nrow(df)
df[["group"]] <- factor(df[["group"]], levels = c("control", "magnet", "anosmic")) # stored level order
df <- df[stats::complete.cases(df[c("bearing", "group")]), , drop = FALSE] # listwise deletion
df[] <- lapply(df, function(x) if (is.factor(x)) droplevels(x) else x)
n_dropped <- n_input - nrow(df)
warnings <- list()
if (n_dropped > 0) {
warnings <- c(warnings, cs_warning("CS_W_ROWS_DROPPED", dropped = n_dropped, total = n_input))
}
if (n_input > 0 && nrow(df) == 0) cs_error("CS_E_NO_ROWS")
cs_check_finite_columns(df, c("bearing", "group")) # infinite values stop the run (registry/errors.yaml)
# %% Angles
# Angles become radians in [0, 2*pi): numeric values in the chosen unit, or a timestamp's position in
# its daily / weekly / yearly cycle (UTC). Axial data (0° = 180°) are doubled before testing.
units <- "degrees"
period <- NULL
disp_units <- switch(units, time_of_day = "hours", day_of_week = "weekday", day_of_year = "doy", units)
axial <- FALSE
a_name <- "bearing"
theta <- cs_circ_angles(df[[a_name]], units, period)
work <- if (axial) cs_circ_wrap(2 * theta) else theta
turn <- 2 * pi * (if (axial) 0.5 else 1)
unit_scale <- (if (disp_units == "custom") period else switch(disp_units, degrees = 360, radians = 2 * pi, hours = 24, weekday = 7, month = 12, doy = 365.25)) / (2 * pi)
show <- function(rad) cs_circ_from_radians(rad %% turn, disp_units, period)
lab <- function(rad) cs_circ_label(rad %% turn, units, period)
chart_angles <- cs_circ_from_radians(theta, disp_units, period)
chart_controls <- list(units = if (disp_units != "custom") disp_units else "radians",
orientation = if (disp_units %in% c("degrees", "hours")) "compass" else "math")
if (disp_units == "custom") chart_angles <- theta
# %% Summaries
conf <- 0.9
ci_method <- "normal"
seed <- 42 # shared Wichmann-Hill stream: Python draws the same bootstrap samples
d <- cs_circ_describe(theta, conf = conf, axial = axial, ci_method = ci_method, n_boot = 2000, seed = seed)
ray <- cs_circ_rayleigh(work)
n <- d$n
double <- cs_circ_resultant(cs_circ_wrap(2 * theta))$rbar # R̄ of doubled angles: high when the data are axial/bipolar
g_name <- "group"
groups <- list()
if (!is.null(g_name)) {
for (lv in levels(df[[g_name]])) {
sel <- df[[g_name]] == lv
if (sum(sel) == 0) next
dg <- cs_circ_describe(theta[sel], conf = conf, axial = axial, ci_method = "normal")
groups[[length(groups) + 1]] <- list(group = lv, n = sum(sel), mean = show(dg$mean), label = lab(dg$mean), rbar = dg$rbar,
circ_sd = dg$circ_sd * unit_scale, kappa = dg$kappa)
}
}
# %% Assumptions
direction <- if (ray$p >= 0.05) {
list(key = "direction", label = "A mean direction exists", status = "warn", statistic = ray$z, p = ray$p,
detail = sprintf("Rayleigh %s: the angles may be spread uniformly, so the mean direction is not well defined.", cs_fmt_p(ray$p)))
} else {
list(key = "direction", label = "A mean direction exists", status = "pass", statistic = ray$z, p = ray$p,
detail = sprintf("Rayleigh Z = %.2f, %s: the angles cluster around a direction.", ray$z, cs_fmt_p(ray$p)))
}
unimodal <- if (!axial && double > 0.5 && d$rbar < 0.5 * double) {
list(key = "unimodal", label = "One preferred direction", status = "warn",
detail = sprintf("The doubled angles are far more concentrated (R̄ = %.2f vs %.2f): two opposite directions. Treat the data as axial.", double, d$rbar))
} else {
list(key = "unimodal", label = "One preferred direction", status = "pass", detail = sprintf("R̄ of doubled angles %.2f.", double))
}
assumptions <- list(direction, unimodal)
if (n < 10) warnings <- c(warnings, "Fewer than 10 angles; the interval and κ are unstable.")
if (!d$ci_ok) warnings <- c(warnings, "The angles are too dispersed for a normal-approximation interval; use the bootstrap interval or report R̄ only.")
# %% Result
rows <- c(list(list(group = "All", n = n, mean = show(d$mean), label = lab(d$mean), rbar = d$rbar, circ_sd = d$circ_sd * unit_scale, kappa = d$kappa)), groups)
values <- list(
n = n, mean_direction = show(d$mean), mean_direction_rad = d$mean, mean_label = lab(d$mean),
ci_low = if (d$ci_ok) show(d$ci_low) else NULL, ci_high = if (d$ci_ok) show(d$ci_high) else NULL,
rbar = d$rbar, circ_variance = d$variance, circ_sd = d$circ_sd * unit_scale, ang_dev = d$ang_dev * unit_scale,
kappa = d$kappa, kappa_corrected = d$kappa_corrected, se = d$se * unit_scale,
rayleigh_z = ray$z, rayleigh_p = ray$p, rbar_doubled = double, n_groups = length(groups)
)
for (g in groups) {
values[[sprintf("mean_direction[%s]", g$group)]] <- g$mean
values[[sprintf("rbar[%s]", g$group)]] <- g$rbar
values[[sprintf("kappa[%s]", g$group)]] <- g$kappa
values[[sprintf("n[%s]", g$group)]] <- g$n
}
ci_txt <- if (d$ci_ok) sprintf("%.0f%% CI %s to %s", conf * 100, lab(d$ci_low), lab(d$ci_high)) else "no interval (too dispersed)"
how <- if (ci_method == "bootstrap") paste("bootstrap percentile, seed", seed) else "normal approximation"
summary <- paste0(sprintf("Mean direction of %s: %s (%s); mean resultant length R̄ = %.3f, concentration κ = %.2f. ", a_name, lab(d$mean), ci_txt, d$rbar, d$kappa),
if (ray$p < 0.05) "The angles cluster around this direction." else "The angles show no clear preferred direction, so treat the mean with caution.")
take <- seq_len(min(nrow(df), 5000))
chart_roles <- list(angle = cs_col(a_name, chart_angles[take], "numeric"))
if (!is.null(g_name)) chart_roles$group <- cs_col(g_name, as.character(df[[g_name]])[take], levels = levels(df[[g_name]]))
cs_publish(list(
method = "circular.describe",
methodVersion = "1.0.1",
title = "Circular summary",
engine = cs_engine_info("stats", "nanoparquet"),
n = n,
summary = summary,
apa = sprintf("θ̄ = %s, R̄ = %s, κ = %s, n = %d", lab(d$mean), cs_fmt_num(d$rbar), cs_fmt_num(d$kappa), n),
statistics = list(
list(key = "mean_direction", label = "Mean direction", value = show(d$mean)),
list(key = "rbar", label = "Mean resultant length R̄", value = d$rbar),
list(key = "kappa", label = "Concentration κ (von Mises)", value = d$kappa),
list(key = "circ_sd", label = "Circular SD", value = d$circ_sd * unit_scale)
),
tables = list(list(
key = "summary", title = "Directions",
columns = list(list(key = "group", label = "Group", type = "string"), list(key = "n", label = "n", type = "integer"),
list(key = "label", label = "Mean direction", type = "string"), list(key = "mean", label = sprintf("Mean (%s)", disp_units), type = "number"),
list(key = "rbar", label = "R̄", type = "number"), list(key = "circ_sd", label = sprintf("Circular SD (%s)", disp_units), type = "number"),
list(key = "kappa", label = "κ", type = "number")),
rows = rows
)),
assumptions = assumptions,
warnings = warnings,
notes = list(sprintf("Angles in %s%s; interval: %s. κ is the von Mises maximum-likelihood estimate (bias-corrected %.2f).",
units, if (axial) " (axial: doubled, then halved)" else "", how, d$kappa_corrected)),
values = values,
charts = list(cs_chart("rose", "rose-diagram", paste("Rose diagram of", a_name), chart_roles, chart_controls),
cs_chart("density", "circular-density", paste("Circular density of", a_name), chart_roles, c(chart_controls, list(fit = TRUE))))
))
θ̄ = 108.1°, R̄ = 0.71, κ = 2.05, n = 66
- Mean direction
- 108.09
- Mean resultant length R̄
- 0.7061
- Concentration κ (von Mises)
- 2.052
- Circular SD
- 47.803
To keep this page light, the plots are shown once, under the R tab.
Assumptions
- A mean direction exists — Rayleigh Z = 32.90, p < .001: the angles cluster around a direction.
- One preferred direction — R̄ of doubled angles 0.22.
Directions
| Group | n | Mean direction | Mean (degrees) | R̄ | Circular SD (degrees) | κ |
|---|---|---|---|---|---|---|
| All | 66 | 108.1° | 108.09 | 0.7061 | 47.803 | 2.052 |
| control | 24 | 97.1° | 97.065 | 0.8947 | 27.028 | 5.058 |
| magnet | 22 | 145.2° | 145.18 | 0.7686 | 41.564 | 2.534 |
| anosmic | 20 | 81.2° | 81.233 | 0.6745 | 50.850 | 1.866 |
- Angles in degrees; interval: normal approximation. κ is the von Mises maximum-likelihood estimate (bias-corrected 1.96).
The exact Python script · Python Python 3.13.5 · scipy 1.18.1 · pandas 3.1.0
# Circular summary (mean direction, R̄, κ)
# Generated by CodeSplash Analytics 1.0.0 on 2026-11-09 · method circular.describe 1.0.1 · spec d12084132eb875b6
# Dataset: ci_pigeons (version 1)
# Runs on its own: outside the app, cs.publish() writes $CS_RESULT_PATH or prints the result JSON.
# %% Setup
import numpy as np
import pandas as pd
import codesplash as cs
from codesplash.stats import circular
# %% Data
df = pd.read_parquet("tests/parity/fixtures/ci_pigeons.parquet", columns=["bearing", "group"])
n_input = len(df)
df["group"] = pd.Categorical(df["group"], categories=["control", "magnet", "anosmic"]) # stored level order
df = df.dropna(subset=["bearing", "group"]) # listwise deletion over the analysis columns
df["group"] = df["group"].cat.remove_unused_categories()
n_dropped = n_input - len(df)
warnings = []
if n_dropped:
warnings.append(cs.cs_warning("CS_W_ROWS_DROPPED", dropped=n_dropped, total=n_input))
if n_input and not len(df):
cs.cs_error("CS_E_NO_ROWS")
cs.check_finite_columns(df, ["bearing", "group"]) # infinite values stop the run (registry/errors.yaml)
# %% Angles
# Angles become radians in [0, 2π): numeric values in the chosen unit, or a timestamp's position in its
# daily / weekly / yearly cycle (UTC). Axial data (0° ≡ 180°) are doubled before testing.
units = "degrees"
period = None
disp_units = {"time_of_day": "hours", "day_of_week": "weekday", "day_of_year": "doy"}.get(units, units)
axial = False
a_name = "bearing"
theta = circular.angles(df[a_name] if units in circular.CYCLES else df[a_name].to_numpy(dtype=float), units, period)
work = circular.wrap(2.0 * theta) if axial else theta
turn = 2.0 * np.pi * (0.5 if axial else 1.0)
unit_scale = circular.period_of(disp_units, period)[0] / (2.0 * np.pi) # radians → display units
def show(rad):
"""A direction in the user's units (axial: halved back to the axis)."""
return float(circular.from_radians(np.mod(rad, turn), disp_units, period))
def lab(rad):
return circular.label(np.mod(rad, turn), units, period)
chart_angles = circular.from_radians(theta, disp_units, period) # what the charts draw
chart_controls = {"units": disp_units if disp_units != "custom" else "radians", "orientation": "compass" if disp_units in ("degrees", "hours") else "math"}
if disp_units == "custom":
chart_angles = theta
# %% Summaries
conf = 0.9
ci_method = "normal"
seed = 42 # shared Wichmann–Hill stream: R draws the same bootstrap samples
d = circular.describe(theta, conf=conf, axial=axial, ci_method=ci_method, n_boot=int(2000), seed=seed)
ray = circular.rayleigh(work)
n = d["n"]
double = circular.resultant(circular.wrap(2.0 * theta))[2] # R̄ of doubled angles: high when the data are axial/bipolar
g_name = "group"
groups = []
if g_name is not None:
for lv in df[g_name].cat.categories:
sel = (df[g_name] == lv).to_numpy()
if sel.sum() == 0:
continue
dg = circular.describe(theta[sel], conf=conf, axial=axial, ci_method="normal")
groups.append({"group": str(lv), "n": int(sel.sum()), "mean": show(dg["mean"]), "label": lab(dg["mean"]), "rbar": dg["rbar"],
"circ_sd": dg["circ_sd"] * unit_scale, "kappa": dg["kappa"]})
# %% Assumptions
assumptions = []
if ray["p"] >= 0.05:
assumptions.append({"key": "direction", "label": "A mean direction exists", "status": "warn", "statistic": ray["z"], "p": ray["p"],
"detail": f"Rayleigh {cs.fmt_p(ray['p'])}: the angles may be spread uniformly, so the mean direction is not well defined."})
else:
assumptions.append({"key": "direction", "label": "A mean direction exists", "status": "pass", "statistic": ray["z"], "p": ray["p"],
"detail": f"Rayleigh Z = {ray['z']:.2f}, {cs.fmt_p(ray['p'])}: the angles cluster around a direction."})
if not axial and double > 0.5 and d["rbar"] < 0.5 * double:
assumptions.append({"key": "unimodal", "label": "One preferred direction", "status": "warn",
"detail": f"The doubled angles are far more concentrated (R̄ = {double:.2f} vs {d['rbar']:.2f}): two opposite directions. Treat the data as axial."})
else:
assumptions.append({"key": "unimodal", "label": "One preferred direction", "status": "pass", "detail": f"R̄ of doubled angles {double:.2f}."})
if n < 10:
warnings.append("Fewer than 10 angles; the interval and κ are unstable.")
if not d["ci_ok"]:
warnings.append("The angles are too dispersed for a normal-approximation interval; use the bootstrap interval or report R̄ only.")
# %% Result
rows = [{"group": "All", "n": n, "mean": show(d["mean"]), "label": lab(d["mean"]), "rbar": d["rbar"], "circ_sd": d["circ_sd"] * unit_scale, "kappa": d["kappa"]}] + groups
values = {
"n": n, "mean_direction": show(d["mean"]), "mean_direction_rad": d["mean"], "mean_label": lab(d["mean"]),
"ci_low": show(d["ci_low"]) if d["ci_ok"] else None, "ci_high": show(d["ci_high"]) if d["ci_ok"] else None,
"rbar": d["rbar"], "circ_variance": d["variance"], "circ_sd": d["circ_sd"] * unit_scale, "ang_dev": d["ang_dev"] * unit_scale,
"kappa": d["kappa"], "kappa_corrected": d["kappa_corrected"], "se": d["se"] * unit_scale,
"rayleigh_z": ray["z"], "rayleigh_p": ray["p"], "rbar_doubled": double, "n_groups": len(groups),
}
for g in groups:
values[f"mean_direction[{g['group']}]"] = g["mean"]
values[f"rbar[{g['group']}]"] = g["rbar"]
values[f"kappa[{g['group']}]"] = g["kappa"]
values[f"n[{g['group']}]"] = g["n"]
ci_txt = (f"{conf:.0%} CI {lab(d['ci_low'])} to {lab(d['ci_high'])}" if d["ci_ok"] else "no interval (too dispersed)")
how = "bootstrap percentile, seed " + str(seed) if ci_method == "bootstrap" else "normal approximation"
summary = (f"Mean direction of {a_name}: {lab(d['mean'])} ({ci_txt}); mean resultant length R̄ = {d['rbar']:.3f}, "
f"concentration κ = {d['kappa']:.2f}. " + ("The angles cluster around this direction." if ray["p"] < 0.05 else "The angles show no clear preferred direction, so treat the mean with caution."))
chart_roles = {"angle": cs.col(a_name, np.asarray(chart_angles)[:5000], "numeric")}
if g_name is not None:
chart_roles["group"] = cs.col(g_name, df[g_name].astype(str).to_numpy()[:5000], levels=[str(x) for x in df[g_name].cat.categories])
cs.publish({
"method": "circular.describe",
"methodVersion": "1.0.1",
"title": "Circular summary",
"engine": cs.engine_info("pandas", "numpy", "scipy"),
"n": n,
"summary": summary,
"apa": f"θ̄ = {lab(d['mean'])}, R̄ = {cs.fmt_num(d['rbar'])}, κ = {cs.fmt_num(d['kappa'])}, n = {n}",
"statistics": [
{"key": "mean_direction", "label": "Mean direction", "value": show(d["mean"])},
{"key": "rbar", "label": "Mean resultant length R̄", "value": d["rbar"]},
{"key": "kappa", "label": "Concentration κ (von Mises)", "value": d["kappa"]},
{"key": "circ_sd", "label": "Circular SD", "value": d["circ_sd"] * unit_scale},
],
"tables": [{
"key": "summary", "title": "Directions",
"columns": [{"key": "group", "label": "Group", "type": "string"}, {"key": "n", "label": "n", "type": "integer"},
{"key": "label", "label": "Mean direction", "type": "string"}, {"key": "mean", "label": f"Mean ({disp_units})", "type": "number"},
{"key": "rbar", "label": "R̄", "type": "number"}, {"key": "circ_sd", "label": f"Circular SD ({disp_units})", "type": "number"},
{"key": "kappa", "label": "κ", "type": "number"}],
"rows": rows,
}],
"assumptions": assumptions,
"warnings": warnings,
"notes": [f"Angles in {units}{' (axial: doubled, then halved)' if axial else ''}; interval: {how}. κ is the von Mises maximum-likelihood estimate (bias-corrected {d['kappa_corrected']:.2f})."],
"values": values,
"charts": [cs.chart("rose", "rose-diagram", f"Rose diagram of {a_name}", chart_roles, chart_controls),
cs.chart("density", "circular-density", f"Circular density of {a_name}", chart_roles, {**chart_controls, "fit": True})],
})
When the mean direction misleads
ReadThese simulated turtle headings go mostly one way, with a minority going the opposite way.
Ordinary summary: mean direction 84.1, = 0.42, = 0.92.
Those look like a modest single preference. But turtles aren't weakly preferring one way; two groups are strongly preferring opposite ways. A single-peak model misdescribes both.
Axial data
ReadSome angles have no head or tail. A crack, a fiber or a road running north–south is the same as one running south–north, so 0° and 180° are the same thing. These are axial dataAxial dataOrientations without a head or tail (fault lines, fibers), where 0° and 180° are the same..
The standard move: double the angles, analyze, then halve the result. Opposite directions then land on the same point.
Turning on Axial in CodeSplash does this. For the turtles, the axial mean direction is 63.3 with = 0.41.
See the doubling
ExploreBuild two clusters on opposite sides of the circle. Note . Then imagine doubling each angle: 30° becomes 60°, and 210° becomes 420°, which is also 60°.
AExplorable · The mean of an angle
What is the average of 350° and 10°?
What does the ordinary arithmetic mean of these angles come to?
Solid arrow: the circular mean, 344.3°, with length R̄ = 0.89. Dashed red: the arithmetic mean, 236.5°, which can point away from every observation.
Commit your prediction above to see the result
Make your prediction to see the result.
Is doubling legitimate here?
ReflectDoubling helps two different situations, and only one is truly axial.
Road orientations have no direction, so doubling is the right model. Turtles do have a direction: heading to sea and heading inland differ. Doubling then shows the axis of movement, but it discards which way each animal went.
Which question are you asking about your data? Say it before you turn the option on.
Check your understanding
CheckpointCheck yourself
What does mean for a von Mises distribution?
Show the answer
Answer: a
is concentration, so zero concentration gives no preferred direction at all.
Check yourself
An angle of 210° is doubled for an axial analysis. Where does it land on the circle, in degrees between 0 and 360?
Show the answer
Answer: 60
, and . That is where 30° lands too, so the opposite pair merges.
Check yourself
A rose diagram shows two sharp opposite peaks. What will the ordinary be like?
Show the answer
Answer: b
Opposite arrows cancel in the sum. only summarizes a single preferred direction.
Do it in CodeSplash
In the appTurn Axial on when opposite directions mean the same thing. The method's unimodal assumption row warns when the data don't look single-peaked: read it, then check the rose diagram.
Recap
Recap- von Mises is the circular normal, with concentration tied to .
- A single mean direction can hide two opposite preferences.
- Doubling handles axial data. Use it only when opposite directions mean the same thing for your question.
Concepts in this lesson