Elecmetric

Mean and Standard Deviation Formulas

Statistics formulas for test readings: mean, median, mode, range, standard deviation, variance and standard error, with a worked voltage example.

The formulas

To findFormula
Mean (average)x̄ = (x₁ + x₂ + … + xₙ) / n
Medianthe middle value of the sorted readings; the average of the two middle values when n is even
Modethe value that occurs most often
Rangelargest reading − smallest reading
Population varianceσ² = Σ(x − x̄)² / n
Sample variances² = Σ(x − x̄)² / (n − 1)
Standard deviationthe square root of the variance: σ or s
Standard error of the means / √n

Use the sample formulas (n − 1) when the readings are a sample of a larger set, which is the normal case for repeated test readings. Use the population formulas only when the readings are the whole set. A small standard deviation shows that the readings agree with each other; it does not show that they are correct, because a consistent offset from the true value gives a small spread and a large error.

Worked example: six voltage readings

Six readings of a nominal 230 V supply: 230.1, 229.8, 230.4, 229.8, 231.0 and 230.2 V.

  1. Sum = 1,381 V, so the mean = 1,381 / 6 = 230.2 V
  2. Sorted: 229.8, 229.8, 230.1, 230.2, 230.4, 231. With six readings the median is the average of the third and fourth: (230.1 + 230.2) / 2 = 230.1 V
  3. The mode is 229.8 V, which occurs twice
  4. Σ(x − x̄)² = 1.008
  5. Population variance = 1.008 / 6 = 0.1681, so σ = 0.4099 V
  6. Sample variance = 1.008 / 5 = 0.2017, so s = 0.4491 V
  7. Standard error of the mean = 0.4491 / √6 = 0.1833 V

Frequently asked questions

Should I use the sample or the population standard deviation?

For repeated readings of the same quantity, use the sample standard deviation (divide by n − 1). The population value divides by n and suits a complete set, such as every unit in a small batch.

What is the difference between the mean and the median?

The mean uses every reading, so one bad reading moves it. The median is the middle reading and is little affected by a single outlier. A large gap between them suggests an outlier or a drifting reading.

What if no value is repeated?

Then there is no mode. If two or more values tie for most frequent, all of them are modes.

Does a small standard deviation mean the readings are accurate?

No. It means they are repeatable. Accuracy is the offset from the true value, which the percentage error calculator gives.

Related

Percentage Error FormulasMeasurement Uncertainty FormulasRMS Waveform FormulasEngineering Mathematics calculatorsThree-Phase Power FormulasPower Factor and the Power TriangleAC Circuit Formulas: Reactance and ImpedanceVoltage Drop Formulas for CablesTransformer Formulas: Current and Fault LevelInduction Motor FormulasLighting Formulas: Lux, Lumens and CandelaBattery Formulas: Capacity and RuntimeSolar PV Formulas: Array Size and StringsCapacitor Formulas: Energy and RC Time ConstantEarthing Formulas: Earth Rod and Fault LoopCable Size Formulas: Current and Short-CircuitEnergy and Cost Formulas: kWh and PaybackGenerator Formulas: kVA, Current and FuelUPS Formulas: kVA, DC Current and BatteryHarmonics Formulas: THD and True Power FactorShort-Circuit Formulas: Fault Level by MVAUnbalance Formulas: Voltage and Neutral CurrentResistor Formulas: Series, Parallel, DividerMotor Starting Formulas: DOL, Star-DeltaCircuit Breaker Formulas: Rating and TripCooling Formulas: Airflow and Heat LoadHeating Formulas: Energy and Heater PowerPer-Unit Formulas: Base Values and ImpedanceLED Formulas: Resistor Value and PowerConduit Fill Formulas: Percent Fill and SizeLightning Protection Formulas: Rolling SphereTransformer Efficiency and Regulation FormulasPump Formulas: Hydraulic, Shaft and Motor PowerFan Formulas: Air Power and Affinity LawsInductor Formulas: Energy and L/R Time ConstantResonance Formulas: Frequency, Q, BandwidthMotor Efficiency Formulas: Input and SavingsDemand, Load and Diversity Factor FormulasCable Tray Fill Formulas: Area and Cable CountConductor Resistance Formulas and TemperatureTransmission Line Formulas: Drop and LossesStar-Delta Conversion Formulas for Resistors4-20 mA Loop Formulas: Scaling and ResistorCable Loss Formulas: Power and Annual CostOp-Amp Formulas: Inverting and Non-Inverting555 Timer Formulas: Frequency and Duty CycleThévenin and Norton FormulasWheatstone Bridge Formulas: Balance and OutputConductor Force Formulas: Short-Circuit ForcesCT Burden Formulas: Lead Resistance and VAGear and Belt Drive Formulas: Speed and TorqueSkin Effect Formulas: Skin DepthRC Filter Formulas: Cutoff Frequency and GainRectifier Ripple Formulas: Capacitor FilterBuck and Boost Converter Formulas: Duty CycleHeat Sink Formulas: Junction TemperatureBattery Pack Formulas: Series and ParallelMotor Acceleration Time FormulasZener Regulator Formulas: Series ResistorBJT Bias Formulas: Voltage Divider BiasPt100 RTD Formulas: Resistance and TemperatureNTC Thermistor Formulas: Beta EquationFusing Current Formulas: Wire Fuse EstimateFlywheel Formulas: Stored EnergyLinear Regulator Formulas: Power and EfficiencyMOSFET Loss Formulas: Conduction and SwitchingRelay Coil Formulas: Current and ResistorTransformer Inrush Current FormulasBattery Charge Time FormulasWind Turbine Power Formulas: Betz LimitDetuning Reactor Formulas: Capacitor BanksTransformer Tap Changer FormulasCable Pulling Tension FormulasInsulation Resistance Formulas: PI and DARPower Transfer and Power Angle FormulasSolar Panel Temperature Derating FormulasVoltage Change and Flicker FormulasSoft Starter and VFD Sizing FormulasEarth Fault Loop and RCD FormulasBattery Internal Resistance FormulasBusbar Size and Short-Circuit FormulasADC Resolution and Sampling FormulasCapacitor Switching Inrush FormulasCable Charging Current FormulasSolar DC to AC Ratio FormulasParallel Transformer Load Sharing FormulasPeukert Law and Battery Runtime FormulasCapacitor Discharge Time FormulasHydraulic Power and Cylinder Force FormulasThermocouple Voltage FormulasTransformer Vector Group FormulasPower Supply Hold-Up Time FormulasHoist and Lift Power FormulasCompressor Power FormulasRectifier Bridge Sizing FormulasPCB Trace Width and Current FormulasHeat Pump COP FormulasSound Level and dB Addition FormulasDuty Cycle and RMS Load FormulasSupercapacitor Energy FormulasStep and Touch Voltage FormulasContactor Sizing FormulasInverter-Fed Motor Cable FormulasPneumatic Cylinder Force and Air UseBusbar Temperature Rise FormulasMotor Temperature Rise FormulasBattery Storage Round-Trip EfficiencyThermal Time Constant FormulasSolar Charge Controller Sizing FormulasPoint Illuminance FormulasGenerator Droop and Load Sharing FormulasTwo-Wattmeter Method FormulasVFD Braking Resistor FormulasLoad Bank Test FormulasTransformer Cooling Class Rating FormulasEnergy Meter Multiplier FormulasOvercurrent Relay Curve FormulasSingle-Tuned Harmonic Filter FormulasCable Sheath Circulating Current FormulasDifferential Protection Slope FormulasEarth Electrode Spacing FormulasSolar Array Row Spacing FormulasDC Lighting Voltage Drop FormulasTransformer Loss of Life FormulasMotor Start Voltage Dip in the Cable FormulasNeutral Earthing Resistor FormulasCable I²t Withstand Check FormulasMotor Locked-Rotor Code Letter FormulasSynchronous Speed and Pole FormulasBattery C-Rate and Cycle Life FormulasEV Charging Time FormulasConveyor Belt Power FormulasParallel Plate Capacitor FormulasSolenoid and Coil Inductance FormulasPower Factor Correction Payback FormulasTransformer Through-Fault Current FormulasTransformer EMF Equation FormulasDelta-Star Resistor Conversion FormulasCurrent Shunt Resistor FormulasSolar Energy Yield and Degradation FormulasElectrolysis and Faraday’s Law FormulasAGL Series Circuit Load and CCR Sizing FormulasAGL Maximum Fittings on a CCR FormulasAGL Isolating Transformer FormulasAGL CCR Input Power and Energy FormulasAGL Brightness Step FormulasAGL Lamp Life FormulasComplex Number Formulas: Polar and RectangularPhasor Addition Formulas: Sum and DifferenceTrigonometry Formulas for Electrical EngineersQuadratic, Logarithm and Power FormulasPercentage, Ratio and Rounding FormulasProbability, Combinations and Binomial FormulasConversion Centre

Tell us how to improve this page

This opens your email app. Nothing is sent until you press send.