# Tagged Questions

The sum of several numbers divided by their count nicely summarizes the overall size of the numbers involved in a single value.

62 views

### Derivation of Running(Online) Variance's formula

I need to know the dimostration of Running Variance's formula: $$\sigma_n^2 =\frac{(n-1)\sigma_{n-1}^{2}+(x_n-\overline{x}_{n-1})\cdot(x_n-\overline{x}_{n})}{n}$$
63 views

### Are the $L^p$ norms ordered by $p$?

A question left over from this post is: Are the $L^p$ norms ordered by $p$ like the power means are?
103 views

### Catastrophic Cancellation

I need some informations about algorithms to solve the problem of Catastrophic Cancellation, or in general to calculate mean and variance of a data stream. For example about Donald Knuth's algorithm ...
853 views

### Intuition on why the average minimizes the euclidean distance

I saw that there was a question with a very similar (if not identical) flavour to my question, but the answer was derived from derivative, the method that I already knew solved this problem. I feel ...
229 views

### Maximum and minimum of weighted sum

For $w_i\ge 0$ and some constants $\alpha_i , i=1,...,n$, what is the maximum and minimum of $\sum_{i=1}^{n}\alpha_i w_i$ subjected to $\sum_{i=1}^{n}w_i=1$? Intuitively, I put all weight on the ...
251 views

### Average number of people required to find a pair with same birthday

I have to find the expected number of people required to find a pair with same birthday. This is what I tried: Assume that there are $M$ possible birthdays, then following the definition for expected ...
270 views

### How to compute the mean average exponent of the naturals? What is the limit for large numbers?

With a friend I was trying to get an understanding for why the expected gap between primes is logarithmic. With that motivation I tried to express the average exponent of numbers. By average ...
1k views

### Is there a scientific way to assign weights to historical data?

This is a common question I usually face while processing historical data. I have year on year data of an event for the past N years.I would like to assign weights to the data of these N years so that ...
250 views

### Average percentage formula

I have something like: Price Quantity Tax (%) 2.2 34 8 1.3 29 7 And so on... After that I get something like: ...
76 views

### Have averages, need variance

I have a large spreadsheet, generated by a colleague, that contains the results of $E$ experiments. For each experiment, he calculated the average of $M$ measurements. I need the calculate the ...
67 views

### Get N values between 0 and 1 AND control spacing of results.

So I need to get N number of values between 0 and 1. The values should be evenly spaced. Thats easy... However, I also want another variable X that will shift the resulting values closer to 0 or 1. ...
170 views

### Most accurate mean for grouped/ranged data

I've got data in a range and frequency format e.g 0-5 : 3, 6-10 : 70 etc up to 31-35. How do I get the most accurate mean for such data?
37 views

### Getting the average of a serie of values

I am trying to smooth out a serie of values that represents tempo values, depicted in blue. The data comes from a tempo detection algorithm that as you might have guessed is not the best in town, the ...
86 views

### Averages in series

I have a series of numbers: $1,2,3$ I'm calculating a simple average between, them $(2)$. Now, I'm deleting the series and have no information regarding how many elements there were in the series or ...
58 views

### Proper Weighted Average

If I have a 3x3 matrix of information where the row totals describe the total goods produced by a particular company and the column totals provide the total for a particular type of good for all ...
943 views

### CAGR, log of negative numbers

I am trying to calculate the Compound Annual Growth Rate (CAGR) of a number of companies using the Geometric mean of the annual growth of their EPS. Some of the EPS values are negative(loss making) ...
122 views

2k views

### 3 trams are coming every 10, 15 and 15 minutes. On average, how long do I have to wait for any tram to come?

3 trams are coming to the stop every 10, 15 and 15 minutes. On average, how long do I have to wait for any tram to come? It's a practical problem, not some kind of a riddle for which I have a ...
57 views

### What is the name of this “generalized sum”?

I'm looking for the name of this quite basic function: $X=\sqrt[\alpha]{\sum_i{x_i^\alpha}}$ ($\alpha\in\mathbb R$) It's a kind of "generalized sum": $\alpha=1$ : $X=\sum_i{x_i}$ $\alpha\to\infty$ ...
188 views

### Weighted mean from a set of average and standard deviation pairs

I'm trying to replicate some math a professor did related to Twitter sentiment analysis. Basically, there is a sentiment dictionary, called ANEW, that contains a mean and standard deviation for 3 ...
114 views

### Deal or No Deal: Arithmetic, Median or Geomtric mean?

I'm trying to decide which type of mean is best to use when playing Deal or No Deal (in terms of comparing it with the Banker's offer). I realise the standard answer would be the arithmetic mean, but ...
178 views

### $x$ is equal to at least $51$ of $a_1,\frac{a_1+a_2}{2},\ldots,\frac{a_1+a_2+\ldots+a_{100}}{100}$. Prove that $2$ of $a_1,\ldots,a_{100}$ are equal.

If $x$ is equal to at least $51$ number of the array $a_1, \frac{a_1+a_2}{2},\ldots,\frac{a_1+a_2+\ldots+a_{100}}{100}$, prove that $2$ numbers of the array $a_1,a_2\ldots,a_{100}$ are equal. That's ...
43 views

### What formula would you use to cast an average of several numbers into a smaller range?

Say I have four numbers ranging in value from 15-95. If I want to, for a simple example, say that if the average of the four numbers is 15 (lowest possible value), that would relate to 2 on a scale of ...
5k views

### formula for converting a very long number to a fraction

What is the average (arithmetic mean) of 8, 7, 7, 5, 3, 2, and 2? the answer is $4\frac{6}{7}$. The sum of numbers is 34 and when you divide by 7 it's 4.8571428..... How can I get the fraction of ...
300 views

### Prove inequality of generalized means

Consider the generalized (power) mean of positive numbers $a_1, \dotsc, a_n$ $$M_p(a_1, \dotsc, a_n)=\left(\frac{a_1^p + \dotsb + a_n^p}{n}\right)^{1/p}\qquad p\in \mathbb{R}$$ where for $p=0$ we use ...
124 views

### Correct way to get average price

probably a basic question for a lot of you guys, but it was a subject of a friendly debate at my work earlier - needless to say none of the involved were accountants. In short, we are thinking about ...
378 views

### What does the $L^p$ norm tend to as $p\to 0$?

This is something I was thinking about, so I'm going to post it as a question and post my own answer. I hope that anyone who wants will comment, correct me if I'm wrong, and add their own knowledge ...
148 views

### Should you average or add together daily bank balanace averages?

I work in the finance field and I am looking at average balances on bank statements balances. When I have more than 1 bank statement I need to reflect the overall average balance between the accounts....
632 views

### Sum of weighted squared distances is minimized by the weighted average?

Let $x_1, \ldots, x_n \in \mathbb{R}^d$ denote $n$ points in $d$-dimensional Euclidean space, and $w_1, \ldots, w_n \in \mathbb{R}_{\geq 0}$ any non-negative weights. In some paper I came across the ...
3k views

83 views

### Average of percentage of 2 numbers.

If I have 24081 items sold at 45% off. and 11386 items sold at 60% off. What is the average percent off for all items sold? Thanks for your help in advance! Craig (This is not homework :) )
99 views

### Vote “0-10” dignity.

I have this problem very difficult for me to solve. I have a company and some employees. Each of them expresses an opinion on some apples of varying quality. The vote can be: ...
976 views

### Normalizing data to a given value.

I would like compare the data by normalizing it to a given value. for example: [20,30,40,50,60,70] How do I normalize the given set of elements to its first value, ...