Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using Python 3.Thanks. my_list=[[0 , 1, 4, 17, 67, 76, 51, 28, 3, 1, 0, 0],[0, 1, 8, 28, 69, 129 , 83, 55, 19,

Using Python 3.Thanks.

my_list=[[0 , 1, 4, 17, 67, 76, 51, 28, 3, 1, 0, 0],[0, 1, 8, 28, 69, 129 , 83, 55, 19, 4, 0, 0],[0, 0, 0, 0, 8, 86, 55, 0, 0, 0, 0, 0],[0, 1, 10, 24, 43, 64, 58, 58, 26, 12, 0, 0],[0, 0, 2, 15, 56, 116 , 51, 8, 0, 0, 0, 0]]

the result I want is:

[0, 0.6, 4.8, 16.8, 48.6, 94.2, 59.6, 29.8, 9.6, 3.4, 0, 0]

Notice: It is 0 not 0.0image text in transcribed

Here, for example, the third number 4.8 is the mean of each third position in their list.

4.8 =(4+8+0+10+2)/5

You can see the result i want is the mean of each number in their particular position in these lists.

We will define the alert thresholds using the mean and the standard deviation of the case counts for each month. Note you can use the mean() and stdev() function in the statistics library to calculate the mean and standard deviation. >>> import statistics >>> x = [2,3,5,3,4] >>> m statistics.mean(x) >>> sd = statistics.stdev(x) >>print (m) 3.4 >>> print (sd) 1.140175425099138

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Time Series Databases New Ways To Store And Access Data

Authors: Ted Dunning, Ellen Friedman

1st Edition

1491914726, 978-1491914724

More Books

Students also viewed these Databases questions

Question

How do formal workplaces differ from informal workplaces?

Answered: 1 week ago

Question

PR 3 - 3 A adjusting entries

Answered: 1 week ago

Question

Find the derivative of y= cos cos (x + 2x)

Answered: 1 week ago