MC0074 Sem3 Smu 2011
MC0074 Sem3 Smu 2011
MC0074 Sem3 Smu 2011
Ans:
Let E be the event of drawing one brass, one steel, one aluminum washer, then the number of element
in E=n(E)=the number of ways in which 3 steel washer can be drawn out of 86 steel washers
=86x85x84/3x2x1
2. Discuss and define the Correlation coefficient with the suitable example.
Ans:
Correlation coefficient
Correlation is one of the most widely used statistical techniques. Whenever two variable are so
related that a change in one variable result in a direct or inverse change in the other and also
greater the magnitude of change in one variable corresponds to greater the magnitude of change
in the other, then the variable are said to be correlated or the relationship between the variables is
known as correlation.
We have been concerned with associating parameters such as E(x) and V(X) with the distribution
of one-dimensional random variable. If we have a two-dimensional random variable (X,Y), an
analogous problem is encountered.
Definition
Let (X, Y) be a two-dimensional random variable. We define ρxy, the correlation coefficient,
between X and Y, as follows:
ρxy =
Example
Suppose that the two-dimensional random variable (X, Y) is uniformly distributed over the
triangular region
f(x, y) = 2, (x, y) R,
= 0, elsewhere.
g(x) =
2 (1 – x), 0 x 1
h(y) =
= 2y, 0 y 1
Therefore
E(X) = , E(Y) =
E(X2) = , E(Y2) =
E(XY) =
Hence
MC0074 – Statistical and Numerical methods using C++
Book ID: B0812
ρxy = =
3. If x is normally distributed with zero mean and unit variance, find the expectation
2
and variance of σ .
Ans:
Solution
If mean is zero and variance is unit, then putting m=0 and ,the above equation reduced to
Expectation of x2 i.e.
= (i)
MC0074 – Statistical and Numerical methods using C++
Book ID: B0812
Putting
Hence
=1 (ii)
MC0074 – Statistical and Numerical methods using C++
Book ID: B0812
=3
Variance of x2 =
= 3-(1)2
=2
MC0074 – Statistical and Numerical methods using C++
Book ID: B0812
4. The sales in a particular department store for the last five years is given in the
following table
Ans:
We have
p =
2 3 4
yn = 5, yn = 1, yn = 2, yn = 5
y1979 = 57 + (-1.5) 5 +
MC0074 – Statistical and Numerical methods using C++
Book ID: B0812
y1979 = 50.1172
Frequency 17 10 11 15 8
Ans:
Here we have
N=61 Sum=75.408
Log G =
= 1/61(75.408)
= 1.236197
MC0074 – Statistical and Numerical methods using C++
Book ID: B0812
= 16.28
x 0 1 2 3 4
y 1 12 27 10 30
0
Ans:
sum(X) = 0+1+2+3+4 = 10
sum(X²) = 0²+1²+2²+3²+4² = 30
sum(Y) = 10+12+27+10+30 = 89
sum(Y²) = 10²+12²+27²+10²+30² = 1973
sum(XY) = 0.10 + 1.12 + 2.27 + 3.10 + 4.30 = 10.89
n =5
Xbar = sumX / n = 10 / 5 = 2
Ybar = sumY / n = 89 / 5 = 17.8
Equation is y = mx + c
Ybar = m.Xbar + c
17.8 =-16.711(2) + c
c = 17.8 +33.422 = 51.222
MC0074 – Statistical and Numerical methods using C++
Book ID: B0812
Set 2
Consider a sequence of independent Bernoulli trials and let the discrete random variable
Yi denote the result of the ith trial, so that the event [Yi =1] denotes a success on the ith
trial and the event[Yi = 0] denotes a failure on the ith trial. Further assume that the
probability of success on the ith trial, P[Yi = 1], is p, which is independent of the index i.
then {Yi|i=1,2…n} is a discrete state, discrete parameter, stochastic process, which is
stationary in the strict sence. Since the Yi’s are mutually independent, the above process
is an independent process known as the Bernoulli process. Since Yi is a Bernoulli random
variable, we recall that
E[Yi] = p
E[Yi2] = p
Var[Yi] = p(1-p)
based on the Bernoulli process, we may form another stochastic process by considering
process, since
E[Sn]=np
Var[Sn]=np(1-p)
and
GSn(z) = (1-p+pz)n
Define the discrete random variable T1, called the first order interarrival time, to be the
E(T1)=1/p
Var(T1) = 1-p/p2
and
[GT1(z) = zp/1-z(1-p)]
Similarly
[GTr(z) =[ zp/1-z(1-p)]r]
2
2. If 3 is approximated by 0.667, find the absolute and relative errors?
Ans –
An error is usually quantified in two different but related ways. One is known as absolute error
and the other is called relative error.
Let us suppose that true value of a data item is denoted by xt and its approximate value is
denoted by xa. Then, they are related as follows:
Error = xt - xa
The error may be negative or positive depending on the values of xt and xa. In error analysis,
what is important is the magnitude of the error and not the sign and, therefore, we normally
consider what is known as absolute error which is denoted by
MC0074 – Statistical and Numerical methods using C++
Book ID: B0812
ea = | xt – xa |
In general absolute error is the numerical difference between the true value of a quantity and its
approximate value.
In many cases, absolute error may not reflect its influence correctly as it does not take into
account the order of magnitude of the value. In view of this, the concept of relative error is
introduced which is nothing but the normalized absolute error. The relative error is defined as
er =
2
δ2
(1) 1 + δ2 μ2 =
( ) 1+
2
(2) E1/2 =
( μ+ δ2 )
δ2 δ2
(3)
Δ= +δ 1+
2 4 √ ( )
Ans:
=
Therefore
1+
Also
= (2)
1 + δ2 μ2 =
(2) Now
= +
=
=
= E – 1
Thus we get
=
Here
MC0074 – Statistical and Numerical methods using C++
Book ID: B0812
p=
y=
(1)
y = 2x2 + x + 1.28
Ans –
First Let x0 be 1 and x1 be 3
F(x0) = x3 – 4x -9
=1– 4– 9
= -12 < 0
F(x1) =27 – 12 – 9
=6> 0
= -9 < 0
Therefore, the root lies between 2 and 3
X3
= (x1+x2)/2
=(3+2)/2
= 2.5
F(x3) = 15.625 – 10 – 9
= - 3.375 < 0
Therefore, the root lies between 2.5 and 3
X4
= (x1+x3)/2
= 2.75
MC0074 – Statistical and Numerical methods using C++
Book ID: B0812
∫ 1+dxx2
6. Evaluate 0 using Trapezoidal rule with h = 0.2. Hence determine the value of π.
Ans:
,
The trapezoidal rule uses trapezoids to approximate the curve on a subinterval. The area of a trapezoid
is the width times the average height, given by the sum of the function values at the endpoints, divided
by two.
Therefore:
The integrand is the derivative of the inverse tangent function. In particular, if we integrate from 0 to 1,
the answer is pi/4 . Consequently we can use this integral to approximate pi.
MC0074 – Statistical and Numerical methods using C++
Book ID: B0812