# Questions tagged [mean]

The arithmetic mean (or simply the mean or average when the context is clear) is the central tendency of a collection of numbers. The mean is calculated as the sum of the numbers divided by the size of the collection.

3,513 questions
Filter by
Sorted by
Tagged with
16views

### Python Get Average of Multiple Nested Dictionaries [closed]

I have a list of dictionaries. Each dictionary by itself can have nested levels, but the keys will always be the same. I'm trying to find the best way to get the mean of these values. Example List of ...
15views

### R - create summary table of means and counts by group for multiple columns

I have data which I want to group by one column and then summarise with means and counts by group for multiple columns. Some example data (my data has more columns and groups to be summarised): df <...
40views

### Dplyr: using summarise across to take mean of columns only if row value > 0

I have a dataframe of gene expression scores (cells x genes). I also have the cluster that each cell belongs to in stored as a column. I want to calculate the mean expression values per cluster for a ...
19views

### Split a CSV in three parts and calculating the mean

I have a file containing: Time 60Ni 61Ni 62Ni 63Cu 64Ni 65Cu 66Zn 0. 9....
1vote
22views

### Mean and Standard deviation of interpolated datasets (R)

I have 8 data sets that I have interpolated so the x axis spacing is the same but they are different lengths ranging from 800-1200 points. What I would like to do is then calculate the mean of each y ...
21views

### average of dataframe rows based on condition

data = {'a': [1, -1, -1, 1, -1, 1, -1, 1], 'b': [-2, 2, -2,2, -2, 2, 2,-2], 'c': [-1, 1, -1,-1, -1, 1,-1,1], 'Price': [138, 186, 124, 200,4, 6,5, 5]} ...
1vote
16views

### Mean / avg angle calculation and error of incoming values

Note: i have alteady looked over this thread and helped me the mean angle. I have a stream of angles in [0, 360) based on I am computing the mean angle in a calibrating step of the code. Let's say ...
12views

### Visualize the average rentals & returns per hour made by only subscribers during weekdays only (Mon-Friday) for the most frequently used stations

I had been working on the Citi Bike NYC dataset for Aug 2019, with Python as part of a technical exam that I submitted yesterday. However, one of the questions was to visualize the average rentals &...
46views

### Digits after the decimal point are gone after returning from another function

I'm a new beginner for programming and recently I am doing some homework in the Schools. The content of the homework is calculate the mean value of a set of data. Below is my code. I found out that ...
1vote
71views

### Generating Statistics Summary from a ggplot in R

I'm an R novice and working on project with script provided by my professor and I'm having trouble getting an accurate mean for my data that matches the box plot that I created. The mean in this plot ...
37views

### Calculate mean after new recording

I´m reading some excel files where I want to calculate the mean of the column 'Duration' but I want to see the change in mean after recording 1, 2, 3 and so on. So for the below table it would be: ...
1vote
58views

### Is there a reproducible way of making a table of means from an existing table

I am a beginner at R so please bear with me. A toy-example of my problem would be somewhat like this - Fruits Number 1_Fruit_A 18 2_Fruit_A 20 3_Fruit_A 24 1_Fruit_B 50 2_Fruit_B 63 3_Fruit_B ...
1vote
28views

### Dataframe with metrics per row and stimuli average per column. How to do it?

I have a very trivial problem but I don't know well the Pandas library and I don't know how to operate. I have a dataframe where there is the Id of the subjects, and some metrics (A, B, C) repeated ...
14views

### Finding the average of data storage in a list of masked array

I need to take an average of a bunch of data in different netcdf files, that contain the following dimensions: TOTAL(TSTEP, LAY, ROW, COL) TSTEP is the number of days in a year. So basically i took ...