0
$\begingroup$

Most commonly when I hear descriptive data analysis using statistics these following functions are often inclded:

  • Mean
  • Standard Deviation
  • Variance
  • Range
  • Mode
  • Median etc.

Is the function "Sum" regarded as data analysis function or not? Any example of data analysis performed using this function alone?

$\endgroup$
3
  • $\begingroup$ Mean of a sample is its sum divided by sample size. $\endgroup$
    – BruceET
    Commented May 6, 2022 at 3:21
  • $\begingroup$ Yes, but that's called 'Mean'; I wanted to know about 'Sum' alone. $\endgroup$
    – user963241
    Commented May 6, 2022 at 3:34
  • $\begingroup$ The term function is here a distraction and perhaps arises only because you are thinking of how you would calculate a summary measure or summary statistic in your software, say MS Excel. I've removed the tag excel for this reason: your question isn't to do with the software you or anybody else uses. $\endgroup$
    – Nick Cox
    Commented May 6, 2022 at 9:41

3 Answers 3

3
$\begingroup$

Surely, the sum can be an important statistic or data point. One person's summary can be another person's data point.

Much depends on the nature of the variable, what is interesting or important, and what summation does or doesn't correspond to physically (biologically, economically, whatever).

Examples follow.

Population The population of a country is the sum of the populations of its constituent areas.

Income The sum of 3 incomes in one group and that of 7 incomes in another group could be interesting if group means say household and total household income is the focus. Otherwise, we might be as or more likely to focus on mean income in a group because the total depends, as a matter of definition, on the mean and the sample size. Knowing that the incomes of 1000 people exceed in sum those of another 500 people isn't enough information: mean personal income might be more important to an analysis.

Temperature The sum of 30 or so daily mean temperatures at a meteorological station isn't helpful except as a step to the mean temperature for a month, as temperature isn't additive.

Turn and turn about, there are critical temperatures, roughly speaking, for plants to start growing or for people to switch on the heating or air conditioning, so for temperatures $T$ and threshold temperatures $T'$ sums of the form $\sum |T - T'| \times [T > T']$ or $\sum |T - T'| \times [T < T']$ are used variously in ecology and engineering: the units of measurement would be degree-days, say $^\circ$C days. Here for example $[T > T']$ evaluates as 1 if true and 0 if false.

Rainfall More simply, the sum of 30 or so daily rainfalls is interesting and important as a step to the total rainfall for a month.

$\endgroup$
4
  • $\begingroup$ Nice and understandable examples. May I just ask where does this "analysis" part about data comes in them? For example, If I want to make a point that population of a region in country is lower than some other region of country based on "sum" would that be my "analysis"? $\endgroup$
    – user963241
    Commented May 6, 2022 at 11:36
  • $\begingroup$ I don't follow the question. To me the analysis starts as soon as you open the data. I don't distinguish the analysis from something else: what would that be? $\endgroup$
    – Nick Cox
    Commented May 6, 2022 at 12:19
  • $\begingroup$ I was probably thinking about it as a phase in terms of data collection, data cleaning, analysis, report, conclusion. So, if I collect data on population, clean it up to make sure no missing values are there, and then run my analysis to find out which region has greater population, and write my conclusion. So, in this analysis I simply used the "add" function. But to you, is it something that happens all the time? I am trying to understand what "data analysis" would refer to here using the sum function. $\endgroup$
    – user963241
    Commented May 6, 2022 at 15:29
  • $\begingroup$ Some people find it helpful to make distinctions, e.g. data management, data cleaning, exploratory analysis, model fitting etc. There is no reason to object to that -- or conversely to suppose that everyone carves up projects in the same way. $\endgroup$
    – Nick Cox
    Commented May 6, 2022 at 15:53
2
$\begingroup$

An example of a summary statistic that is only based on the sum without normalization is the Akaike Information Criterion: $$AIC = 2k - 2\ln(L) = 2k - 2\sum_{i=1}^n \ln(f(x_i))$$ where $f$ is the probability density of a model with $k$ parameters that has been fitted to the data. It is meaningless in itself, though, and only useful for comparing different models.

Another example is the Deviance for logistic regression: $$D=-2\sum_{i=1}^n \ln(P(Y=1|x_i))$$ where $P(Y=1|x_i)$ is computed from a model fitted to the data. In order to interpret the value (e.g. as a "pseudo $R^2$"), however, some normalization is subsequently necessary.

$\endgroup$
4
  • $\begingroup$ All sound, naturally, but perhaps pitched at a quite different level compared with the OP's question. $\endgroup$
    – Nick Cox
    Commented May 6, 2022 at 9:37
  • $\begingroup$ @nick-cox Agreed. Shall I delete my answer, or does it have any value to someone? $\endgroup$
    – cdalitz
    Commented May 6, 2022 at 9:59
  • $\begingroup$ I'd leave it be. It's going to interest many readers. $\endgroup$
    – Nick Cox
    Commented May 6, 2022 at 11:14
  • $\begingroup$ ... precisely those readers likely to find my answer too elementary or trivial. $\endgroup$
    – Nick Cox
    Commented May 6, 2022 at 15:54
2
$\begingroup$

The summary statistics, like the ones that you mentioned, can be used for two purposes:

  • to summarize the data sample that you gathered,
  • you can use them as an estimate to infer something about the population the observations were sampled from.

The sum may be a useful quantity to calculate if you are interested in summarizing the data that you have. Sample sum would not be a good estimate of the population estimate, for example, if we are talking about non-negative numbers, their sum will increase with growing sample size, so the sum from a smaller sample would always be an underestimate. Notice that the other summary statistics that you mentioned (mean, mode, median, range, variance, etc) do not have this problem. If you would like to know what would be the sum of the population, you either need to collect the data for all of the population or have a statistical model that would extrapolate it from the sample, but the sample sum by itself won't help you to answer such question.

$\endgroup$
2
  • $\begingroup$ I wouldn't mention range in this way, as sample range on average will underestimate population range. That is, even supposing that the population has a finite range the sample range will be correct if and only if a sample includes both extremes; on average that won't happen and there will be a bias. That doesn't stop people in some fields using range! $\endgroup$
    – Nick Cox
    Commented May 6, 2022 at 9:40
  • $\begingroup$ @NickCox agree, but range in some cases can be a rough estimate, unlike the sum. $\endgroup$
    – Tim
    Commented May 6, 2022 at 9:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.