How can you calculate an average in C from, for example, 20 past measured values?

So the measured values ​​should not be stored anywhere but should only be used to calculate an average – or to smooth the measurement result. The oldest measured value should then be eliminated in the next measurement. This involves a brightness measurement for a mini solar system. I programmed it so that if the brightness…

Mean task?

A ranking list contains 100 transplant patients with a unique ranking from 1 to 100. Ten of these patients come from one hospital. The mean rank of these patients is 11. What is the maximum numerical ranking of one of these 10 patients?

Under what condition is the mean of f in the interval [-a;a] zero?

That's a question in a math textbook. But I'm more concerned with when that's not the case. The formula for the mean of a function in the interval [a;b] is (1/(ba)) multiplied by the integral of the function on this interval. Since the difference between the two integral limits is zero, the second part of…

How can I calculate the mean in R if I have two variables?

I have a dataset that lists, among other things, gender and height. I know how to calculate the mean height, but I'm supposed to calculate the mean height for men. Can I get some kind of new dataset for this? I also need to determine the standard deviation, skewness, and excess of men's height. Thanks…

Is there a significant difference?

Hello, For my master's thesis, I would like to calculate whether the tested children show a significant improvement/deterioration in their values. For this, I conducted a pre- and post-measurement and obtained the following values. These are primarily for the categories "Number correct" and "PR number correct." The following information is provided in the standard value…