Challenge

Basics of ML & AL Week 2 Challenge

Basics of ML & AL :

Q1) Calculate all 4 business moments using pen and paper for the below data set?

Answer:

Business moment-1

Business moment-2

Business moment-3

Business moment-4

Q2)What is the significance of expected value when simple mean (Sum of all observations/number of observations) is already in place?

It is true that simple mean is sufficient enough for having an idea about the data by computing with it's formula (Sum of all observations/number of observations). But, by foregoing this computation we assume that the possibility of each event happening is equal and hence we directly compute them by summing them and taking their average. But, what if the occurance of all the events arent given? Assume we have 4 events possibly to occur namely A B and C. So we aren given with their number of occurance in difinite numbers say, A happens for 4 times, B happens for 8 times and so on. For this scenario simple mean itself is enough. But, whatif instead of their number of occurance, their probability is given? Take for example, possibility of A to occur is 0.48, possibility of B to occur is 0.31 and for C 0.21. This would get us to a point where we need to consider the weight of the event. As given in the example above, the probability of A is more than B and C. That means when we correlate this with its occurance, we can infer that the mean or the ideal possibility of the event to occur would be closest to that of A and farther from C(Holding the least probability) Imagine having more random variables and complex probability values. That is when the significance of expected mean value overcomes the simple mean value. As explained in the previous question, instead of summing the probability, we should consider the weight of each event before averaging them.

Note: The sum of the probabilities should always be 1.

Q3)Having skewness in the curve considered to be bad in the analysis?

One cannot determine whether having skewness is a good thing or not. Because different types of skewness depicts the data according to the domain of its application.

In the image given above two different types of skewness has been showed. In the left skewed graph, an example of this type of graph would time at which most of the school closes. Many schools close around 3pm – 5pm. So the median value would be close to the right side of the graph if we were to plot from 10 am to 7pm in the x-axis.

Similarly, for the right skewed graph, an example would be that of a vehicle speed going on a road in the city traffic. Most people would drive with a speed of 30-40 km/hr where the x-axis ranges from 0-100 km/hr range.

So, according to the given data, the skewness makes sense for that particular data and not every graph could be symmetrical on both sides for a real time dataset.

Q4)Evaluate the probabilities for continuous normal distribution with given mean = 680 and standard deviation = 31

a) P(X<711)

b) P(X>740)

c) P(600

d) P(X=720)

To evaluate the probability value for continuous normal distribution, we calculate the z-score with the given mean and standard variation for each of the data point given by the formula,

Z-score = (X – mean) / standard deviation.

Then the z values are looked into the corresponding z-table to identify the probability less than or equal to that value.

For the given data points we have,

1. P(X<711)

The z-score of this would be = (711-680)/31 = 1.

Hence, it is one standard deviation away from the mean in the positive x axis.

In the z-table, the probability value for z = +1 is 0.8413 which is 84.13%.

 2. P(X>740)

The z-score of this would be = (740-680)/31 = 1.93.

Hence, it is 1.9 times the standard deviation away from the mean in the positive x axis.

In the z-table, the probability value for z = +1.93 is 0.9732.

But it is asked for probability greater than 740. Hence, we get the value until 740 and subtract from 1.

So, the final probability value = 1 - 0.9732 = 0.0268 or 2.68%.

 3. P(600

In this case, we need to find the value of probability at X<720 and X<600 and subtract both values.

When X = 720, z = 1.29 and probability value is 0.9015

When X = 600, z = -2.58 and probability value is 0.00494

Final probability value = 0.9015 – 0.00494 = 0.89656 or 89.656%.

 4. P(X=720)

This question can be approached with 2 methods:

Method 1:

The above formula is the equation for normal distrinution. If we compute our values in the formula, answer would be

0.029 which is approximately 0

Method 2:

P(Z = 1.29) = P(1.29 < Z < 1.29) 

Since, our primary aim is to compute the area of the curve whether it is to the left or right depends on its position and if it is greater or lesser.

Hence, being a single line the area enclosed by it is Zero. 

P(Z = 1.29) = P(Z < 1.29) - P(Z < 1.29)

P(Z = 1.29) = 0.9032 - 0.9032

P(Z = 1.29) = 0.

5)Explain the curve on the right side?

 The graph given below shows the normal distribution of the data points by plotting the z-values with their corresponding probability values.

Here, the mean of this observation data is always 0 and the standard deviation is 1.

It gives us the percentage of data falling under every 1, 2 and 3 standard deviation from the mean value.

In this figure, 68.2% of data falls from z values -1 to +1, 95.4% from -2 to +2 and 99.6% from -3 to +3.

An example application of this graph would be the results of IQ test of people living in a city.

It can be noted that not everyone would have gotten the highest IQ or the lowest. Most of the range would be around the mean value which is depicted by this graph. Another example would be marks obtained in a test. It can be observed that people who score centum and people who scored a zero would be very less. More students’ marks would be around the average class mark.

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.