Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

Median (median)

The middle value of a list of numbers, or the mean of the two middle ones.

How to write it

median(data)

data
The numbers. They are put in order, so symbols are not allowed. Takes a list.

Examples

  • 3,1,4,1,5=3\displaystyle 3, 1, 4, 1, 5 = 3
    median([3, 1, 4, 1, 5])

    In the solver, median([3, 1, 4, 1, 5]) gives 3.

    Open in the solver
  • 2,4,4,4,5,5,7,9=92\displaystyle 2, 4, 4, 4, 5, 5, 7, 9 = \frac{9}{2}
    median([2, 4, 4, 4, 5, 5, 7, 9])

    In the solver, median([2, 4, 4, 4, 5, 5, 7, 9]) gives 9/2.

    Open in the solver
  • mode

    The most frequent value of a list, or a list of them when several are equally frequent.

  • mean

    The average of a list of numbers, or the expected value of a distribution.

  • normal_distribution

    The normal distribution with mean mu and standard deviation sigma.

  • ito_process

    A process given by its drift and diffusion: dX = drift dt + diffusion dW.

  • ornstein_uhlenbeck_process

    A process pulled toward mu at rate theta, with noise sigma, started at x0.

  • ito_integral

    The Itô integral of an expression of the Wiener value w and the time s, from 0 to t.