Stats Fundamentals02
Stats Fundamentals02
Step 1: Open a browser of your choosing. (We have opted for Google Chrome in this
specific case, but any browser will work.)
Step3: Click on the search bar which says “Enter what you want to calculate or know
about.” bar. It will let you type in any mathematical formula you are interested in.
Step 4: Enter the precise formula you are interested in before pressing the “Enter” key
or clicking the compute button on the screen. (The one with the “=“ sign.)
365 DATA SCENCE 47
Step 1: We start by typing in the words “Integral of” into the search bar, like the image
on the right.
Step 2: Wolfram Alpha’s engine will likely recommend some of the most frequently
searched integrals. If the one you are looking for is included, simply select it from the
list. If not, proceed to the next step.
Step 3: Type in the equation, whose integral you want to solve. For instance, if the
function you are interested in is “𝑦 = 𝑥2”, you type in “x^2”.
Step 4: After we type in the appropriate function we press the “Enter” key.
365 DATA SCENCE 48
Now, let’s focus on the various notation we use for the different complex functions.
Euler’s Constant: To express Euler’s constant we simply type in the letter “e”.
Pi: If the function we want to use features π, we simply type in the word “pi”.
Natural Log: To express the natural log of a number, we just write the letters “ln”
followed by the number.
Trigonometric Functions: We simply type in the abbreviations for the given function
(e.g. sin, cos, tan, cot)
The expression below is equivalent to ∫ 𝑒𝑥𝜋𝑑𝑥. Note, we omit typing “dx” because it is
trivial when we only have one random
variable.
Step 1: Type in the integral like we explained earlier and press the “Enter” key:
Step 2: The software provides us with several outputs after computing the integral. We
focus on the first one which is called “Indefinite Integral”.
Step 3: The solution we get is another function which provides an output for any value
x we input into it.
Step 4: We might want to compute the values of this interval within a specific interval
from a to b. In such instances, we add “between a and b” at the end of the integral
before computing.
Step 5: If we have a well-defined range like this, we need to analyse the “Definite
Integral” section for our solution.
365 DATA SCENCE 50
We find the expected value of a function by finding the sum of the products for each
possible outcome and its chance of occurring.
Step 1: For continuous variables, this means using an integral going from negative
infinity to infinity. The chance of each outcome occurring is given by the PDF, 𝑓 𝑦 , so



Step 3: Thus, the expected value equals:
Step 4: Since sigma and pi are constant numbers, we can take them out of the
integral:
365 DATA SCENCE 51
If , then clearly .
Knowing this, so
Therefore, we can substitute and take the constant out of the integral, before
simplifying:
Step 6: We expand the expression within parenthesis and split the integral:
365 DATA SCENCE 52
Step 9: Using Calculus we just showed that for a variable 𝑦 which follows a Normal
To find the Variance of the distribution, we need to use the relationship between
Expected Value and Variance we already know, namely:
𝑉𝑎𝑟(𝑌)=𝐸(𝑌2)−𝐸(𝑌)2
Step 1: We already know the expected value, so we can plug in 𝜇2 for [𝐸 𝑌 ]2, hence:
Step 2: To compute the expected value for 𝑌2, we need to go over the same process
we did when calculating the expected value for 𝑌, so let’s quickly go over the obvious
simplifications.
365 DATA SCENCE 54
Step 3: We already evaluated two of the integrals when finding the expected value, so
let’s just use the results and simplify.
which means:
, equals 𝝈𝟐.
Copyright 2022 365 Data Science Ltd. Reproduction is forbidden unless authorized. All rights reserved.
Learn DATA SCIENCE
anytime, anywhere, at your own pace.
If you found this resource useful, check out our e-learning program. We have
everything you need to succeed in data science.
Learn the most sought-after data science skills from the best experts in the field!
Earn a verifiable certificate of achievement trusted by employers worldwide and
future proof your career.
$432 $172.80/year
Email: [email protected]