0% found this document useful (0 votes)
10 views6 pages

DSAI Admission Level Check 2025-26 M1

The document outlines the admission level check for the MSc Data Science and Artificial Intelligence program, emphasizing the importance of self-assessment in programming, algorithms, statistics, and probability through specific exercises. It includes various exercises in linear algebra, probability and statistics, and Python programming, requiring candidates to complete and submit their solutions in PDF format. The document stresses the need for candidates to independently solve the exercises to gauge their readiness for the program.

Uploaded by

adnan jamil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views6 pages

DSAI Admission Level Check 2025-26 M1

The document outlines the admission level check for the MSc Data Science and Artificial Intelligence program, emphasizing the importance of self-assessment in programming, algorithms, statistics, and probability through specific exercises. It includes various exercises in linear algebra, probability and statistics, and Python programming, requiring candidates to complete and submit their solutions in PDF format. The document stresses the need for candidates to independently solve the exercises to gauge their readiness for the program.

Uploaded by

adnan jamil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

MSc Data Science and Artificial Intelligence admission level check

M1 intake

The MSc Data Science and Artificial Intelligence (DSAI) is a master's degree of excellence, requiring
a solid grounding in programming, algorithms, statistics and probability.

To self-assess your level in these subjects, please complete the exercises on Python and
Statistics. We recommend that you take the time to do these exercises, and above all that
you do them yourself, without any help or use of Chat GPT.

If you struggle to complete these exercises, it may indicate that following the MSc DSAI program
will be challenging and may lead to difficulties in succeeding. Therefore, please take this
assessment seriously and submit your solutions within this document in a single PDF format.
You fill find the exercices in the following pages.

EXERCISES IN LINEAR ALGEBRA

How did you find the exercices ?

Please tick a box.

Very easy Easy Medium Hard Very hard

Comment if any :

EXERCISES IN PROBABILITY AND STATISTICS

How did you find the exercices

Please tick a box.

Very easy Easy Medium Hard Very hard

Comment if any :
EXERCISES IN PYTHON PROGRAMMING

How did you find the exercices ?

Please tick a box.

Very easy Easy Medium Hard Very hard

Comment if any :
Admission MSc DSAI
Michel RIVEILL
December 2024

1 Linear algebra
Exercise I. We consider the following system of linear equations:

2x1 + 3x2 + x3
 =8
4x1 + 7x2 + 5x3 = 20

−2x2 + 2x3 = 0.

1. Write this system as Ax = b, where A is a matrix and x and b are vectors.


2. Solve for x. How many solutions do you find?

Exercise II. Let us consider the matrix


 
1 −1 0
A = −1 2 −1 .
0 −1 1

1. Show that the eigenvalues of A are 0, 1, and 3.


2. For each eigenvalue, find an eigenvector.
3. Is A diagonalizable? If yes, write it down.

2 Probability and Statistics


You can find the table needed to solve the exercises here: https://engineer
ing.purdue.edu/\textasciitildereibman/ece302/normal_cdf.pdf

Exercise III. Let X be a discrete random variable with the following proba-
bility distribution function:

P (X = 1) = 0.2, P (X = 2) = 0.3, P (X = 3) = 0.4, P (X = 4) = 0.1

Calculate the mean and variance of X.

1
Exercise IV. Let three independant real value random variables X1 , X2 et
X3 with E[X1 ] = 2, E[X2 ] = 3, E[X3 ] = 0, V [X1 ] = 1, V [X2 ] = 2, V [X3 ] = 3 :
1. Compute E[2X1 + 3]
2. Compute V [2X1 + 3]

3. Give the correlation matrix of the random vector (X1 , X2 , X3 )


4. Compute E[X1 + X2 + X3 ]
5. Compute V [X1 + X2 + X3 ]
6. Compute E X1 +X32 +X3
 

7. Compute V X1 +X32 +X3


 

Exercise V. Let X a random variable following a standard normal distribu-


tion, and let consider Y = X 2
1. Let y ≥ 0, what is the condition on X to have Y ≤ y ?
√ √
2. Show that FY (y) := P (Y ≤ y) = P (− y ≤ X ≤ y), where FY is the
cumulative distribution function (cdf) of the random variable Y .
√ √
3. Let FX the cdf of X, prove that FY (y) = FX ( y) − FX (− y) for y ≥ 0
4. Using FX (−x) = 1 − FX (x) (property of the cdf of normal distribution)

deduce that FY (y) = 2FX ( y) − 1

5. Using the cdf of the N (0; 1) deduce P (Y < 3) and P (Y < 5)


6. What is the link between fY (y), the probability distribution function (pdf)
of Y and FY (y) ? (give the formula)
′ √ √
7. Deduce that fY (y) = √1y FX ( y) = √1y fX ( y) for all y ≥ 0 with fX the
pdf of an N (0; 1).
 2
1 x
8. We remind that fX (x) = √ exp − ∀x ∈ R. Thus deduce fY
2π 2

Exercise VI. Let assumed that X1 , · · · , Xn are n independent and identically


2
Pnfrom a normal distribution N (µ, σ ).
distributed random variables
1
Let denote by X̄n = n i=1 Xi

1. Compute E[X̄n ]
2. Compute V [X̄n ]
3. Give the distribution of X̄n

2
3 Python programming
Exercise VII. It is commonly said that one human year is equivalent to 7
dog years. However this simple conversion fails to recognize that dogs reach
adulthood in approximately two years. As a result, some people believe that it
is better to count each of the first two human years as 10.5 dog years, and then
count each additional human year as 4 dog years.
Write a program that implements the conversion from human years to dog
years described in the previous paragraph. Ensure that your program works
correctly for conversions of less than two human years and for conversions of
two or more human years. Your program should display an appropriate error
message if the user enters a negative number.

Exercise VIII. A univariate quadratic function has the form f (x) = ax2 +
bx + c, where a, b and c are constants, and a is non-zero. The roots of a
quadratic function can be found by finding the values of x that satisfy the
quadratic equation ax2 + bx + c = 0. A quadratic function may have 0, 1 or 2
real roots. These roots can be computed using the quadratic formula:

−b ± b2 − 4ac
root =
2a
The portion of the expression under the square root sign is called the dis-
criminant. If the discriminant is negative then the quadratic equation does not
have any real roots. If the discriminant is 0, then the equation has one real root.
Otherwise the equation has two real roots, and the expression must be evaluated
twice, once using a plus sign, and once using a minus sign, when computing the
numerator.
Write a program that computes the real roots of a quadratic function. Your
program should begin by prompting the user for the values of a, b and c. Then
it should display a message indicating the number of real roots, along with the
values of the real roots (if any).

Exercise IX. The edit distance between two strings is a measure of their simi-
larity—the smaller the edit distance, the more similar the strings are with regard
to the minimum number of insert, delete and substitute operations needed to
transform one string into the other.
Consider the strings kitten and sitting. The first string can be transformed
into the second string with the following operations: Substitute the k with an
s, substitute the e with an i, and insert a g at the end of the string. This is the
smallest number of operations that can be performed to transform kitten into
sitting. As a result, the edit distance is 3.
Write a recursive function that computes the edit distance between two
strings. Use the following algorithm:

Let s and t be the strings

3
If the length of s is 0 then
Return the length of t
Else if the length of t is 0 then
Return the length of s
Else
Set cost to 0
If the last character in s does not equal the last character in t then
Set cost to 1
Set d1 equal to the edit distance between all characters \
except the last one in s, and all characters in t, plus 1
Set d2 equal to the edit distance between all characters in s, \
and all characters except the last one in t, plus 1
Set d3 equal to the edit distance between all characters \
except the last one in s, and all characters \
except the last one in t, plus cost
Return the minimum of d1, d2 and d3

Use your recursive function to write a program that reads two strings from
the user and displays the edit distance between them.

Exercise X. Follow the steps:


• Create a class, Triangle. Its init () method should take self, angle1,
angle2, and angle3 as arguments. Make sure to set these appropriately
in the body of the init () method.
• Create a variable named number of sides and set it equal to 3.
• Create a method named check angles. The sum of a triangle’s three
angles is It should return True if the sum of self.angle1, self.angle2,
and self.angle3 is equal 180, and False otherwise.
• Create a variable named my triangle and set it equal to a new instance
of your Triangle class. Pass it three angles that sum to 180 (e.g. 90, 30,
60).
• Print out my triangle.number of sides and print out my triangle.check angles().

You might also like