# How To Compute the Mean

Example Data | 244 | 238 | 1 |

Help |
---|

## UsageClick "Submit" after selecting one column to see how to compute the arithmetic mean (average) of data (vectors). ## DescriptionIf all the values of a sample were plotted on a number line, the average would be the point in the middle that would balance the two sides. The average is greatly influenced by outliers, meaning extreme points can pull the average to the left or right. If we are referring to the average of population (all observations), the symbol for the average (arithmetic mean) is $\mu$. If we are referring to the average of a sample (a subset of the population), the symbol for the average (arithmetic mean) is $\bar{x}$. ## Computing the averageSuppose we have a sample consisting of $x_1, x_2, x_3,...,x_n$. This means we have $n$ observations. Then, $$\bar{x}=\frac{x_1, x_2, x_3,...,x_n}{n}.$$ The formula tells us that we need to add all the observations and then divide by the number of observations to compute the mean. ## Example 1Compute the mean of $A = \{1,2,3\}$. $$\bar{x} = \frac{1+2+3}{3} = 2.$$ |

R Output | Dataset Referenced | Date |
---|---|---|

How To Compute the Mean | Example Data | Jun 18, 2017 |

How To Compute the Mean | Inline Data | Jun 18, 2017 |

How To Compute the Mean | Example Data | Jun 18, 2017 |

How To Compute the Mean | Example Data | Jun 18, 2017 |

How To Compute the Mean | Example Data | Jun 18, 2017 |

Recent Queries | App/Dataset | By | Date |
---|---|---|---|

Picostat Output - Boxplot | R Dataset / Package datasets / JohnsonJohnson | huiminlol | June 27, 2020 - 6:47 AM |

Picostat Output - Boxplot | R Dataset / Package datasets / JohnsonJohnson | huiminlol | June 27, 2020 - 6:47 AM |

Picostat Output - Boxplot | R Dataset / Package datasets / JohnsonJohnson | huiminlol | June 27, 2020 - 6:46 AM |

Picostat Output - Median | R Dataset / Package MASS / Sitka89 | jordanjmartins | June 25, 2020 - 2:24 PM |

Picostat Output - Hollow Histogram | R Dataset / Package MASS / Sitka89 | jordanjmartins | June 25, 2020 - 1:57 PM |

#### Pagination

Picostat How-To Article |
---|

Unary and Binary Operations |

The Real Number System |

The Real Number Axioms |

Sets, Relations and Functions |

Sets |

#### Pagination

Title | Authored on | Content type |
---|---|---|

R Dataset / Package HistData / Snow.dates | March 9, 2018 - 1:06 PM | Dataset |

R Dataset / Package DAAG / hotspots | March 9, 2018 - 1:06 PM | Dataset |

R Dataset / Package datasets / volcano | March 9, 2018 - 1:06 PM | Dataset |

How To Create a Plot | October 21, 2017 - 3:27 PM | Operation |

ToothGrowth | February 26, 2017 - 11:28 AM | Dataset |