Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

this is python problem. I need to make standard deviation by using math library. math library is only thing I can be used in this

image text in transcribedthis is python problem. I need to make standard deviation by using math library.

math library is only thing I can be used in this problem and this is what I done so far,

I have errors, and I don't know how to fix it.

can someone help me?

Hint: the sqrt() function from the math library might be helpful for this. If you use a seperate file you need to load the library as we did in Part 1 to read in the data. The import looks like this: [41]: your code goes here import math temperature vector = a mean = float (sum(a)) / len (a) v-sum(pow(x - mean),2) for x in (a len (a) standard_deviation-math.sqrt(v) In File "", line 5 v sum(pow(x mean ) ,2) for x in (a) / len (a) = - SyntaxError: invalid syntax

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

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions