# 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 - Cumulative Frequency Histogram | R Dataset / Package datasets / warpbreaks | Jaliste | October 31, 2020 - 9:22 PM |

Picostat Output - Boxplot | R Dataset / Package datasets / warpbreaks | Jaliste | October 31, 2020 - 9:21 PM |

Picostat Output - Boxplot | R Dataset / Package datasets / warpbreaks | Jaliste | October 31, 2020 - 9:21 PM |

Picostat Output - Simple Linear Regression | R Dataset / Package wooldridge / crime2 | ikramnajah | October 31, 2020 - 9:49 AM |

Picostat Output - Simple Linear Regression | R Dataset / Package datasets / esoph | hyi2 | October 29, 2020 - 5:44 AM |

#### Pagination

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

R Dataset / Package car / WeightLoss | March 9, 2018 - 1:06 PM | Dataset |

R Dataset / Package Ecdat / Produc | March 9, 2018 - 1:06 PM | Dataset |

R Dataset / Package gap / hr1420 | March 9, 2018 - 1:06 PM | Dataset |

R Dataset / Package pscl / absentee | March 9, 2018 - 1:06 PM | Dataset |

R Dataset / Package MASS / gilgais | March 9, 2018 - 1:06 PM | Dataset |