Professional Documents
Culture Documents
MCA Question Bank
MCA Question Bank
First, we’ll create a pandas DataFrame that contains the following three
variables:
-836b = -566
b = 566/836
b = 283/418
b = 0.677
10a + 62(0.677) = 72
10a + 41.974 = 72
10a = 72 – 41.974
10a = 30.026
a = 30.026/10
a = 3.0026
y = a + bx
y = 3.0026 + 0.677x
EXAMPLE :-
7. TPR,FPR,FNR,TNR
import numpy as np
point1 = np.array((1, 2, 3))
point2 = np.array((1, 1, 1))
dist = np.linalg.norm(point1 - point2)
print(dist)
Q 11 :- RMSE in Python ?
Ans :- RSME (Root mean square error) calculates the transformation
between values predicted by a model and actual values.
Using RSME, we can easily measure the efficiency of the model.
a. ( ⁄ ) b. ( ⁄ ) c. ( ⁄ )
Ans :- let A denote the event that the selected individual has a Visa credit
card and B be the analogous event for a MasterCard
( ) 0.5, ( ) 0.5 and ( ) 0.25.
( )
a. ( ⁄ ) ( )
( ) ( ) ( )
b. ( ⁄ ) ( ) ( )
( ) ( ) ( )
c. ( ⁄ ) ( ) ( )
( ( )
d. ( ⁄ ) ( )
= ( )
= = 0.67
( ) ( )
What is ( ⁄ )?
Ans :- Let A denote the event that the next component brought in for
repair is an audio component
and
Let B be the event that the next component is a compact disc player
P(A) = 0.6 and P(B) = 0.05
( )
( ⁄ ) =
( )
a. What is the probability that the next customer will regular gas and fill the
tank?
b. What is the probability that the next customer will request plus gas and fill
the tank?
c. What is the probability that the next customer will request premium gas and
fill the tank?
( ⁄ )
( ⁄ )
( ⁄ )
(a) The probability that next customer will require regular gas and fill
the tank is ( ) ( ) ( ⁄ )
(b) The probability that next customer will require plus gas and fill the tank
is ( ) ( ) ( ⁄ )
c) The probability that next customer will require premium gas and fill the
tank is ( ) ( ) ( ⁄ )
What is the probability that the next customer fills the tank?
( )
( )
Also given with conditional probabilities of full gas tank
( ⁄ )
( ⁄ )
( ⁄ )
( ) ( ) ( ⁄ ) ( ) ( ⁄ ) ( ) ( ⁄ )
( ) ( ) ( )
What is the probability that the next customer fills the tank?
Ans :- Probabilities of customers using regular gas
( )
Probabilities of customers using plus gas
( )
Probabilities of customers using premium gas
( )
Also given with conditional probabilities of full gas tank
( ⁄ )
( ⁄ )
( ⁄ )
( ) ( ) ( ⁄ ) ( ) ( ⁄ ) ( ) ( ⁄ )
( ) ( ) ( )
Technical Saurabh