This course requires basic understanding of linear algebra, statistics, and programming. This (ungraded) quiz lets you (and us) assess whether you have a good basis for taking this course. If you are comfortable with the following questions (the questions are supposed to be trivial for I590 students), you will not have too much difficulty. If you find the following questions challenging, you may need to put lots of efforts throughout your course. Of course we will do our best to help you if you are willing to learn.

  1. $\vec{a} = \begin{bmatrix} 1 \\ 3 \\ 4 \end{bmatrix}$ and $\vec{b} = \begin{bmatrix} -1 \\ 0 \\ 1 \end{bmatrix}$. Calculate $\left| \vec{a} \right| $, $\vec{a} \cdot \vec{b}$, and $\vec{a} + \vec{b}$.

  2. $A = \begin{bmatrix}3 & 1 & 0\\2 & 1 & 5\end{bmatrix}$, calculate $A A^\top$.

  3. What is the definition and characteristics of eigenvector and eigenvalue?

  4. What is the definition of mean, median, and standard deviation?

  5. What would be the result of the following Python code? Run the code and check whether the result is the same as yours.

     alist = [1,2,3]
     anotherlist = alist
     anotherlist[0] = 5
     print(alist)
  6. What is the result of the following Python code? Run the code and check whether the result is the same as yours.

     print("5" + "10")
     print(10*"5")
  7. Write a function using any language to calculate the mean, median, and standard deviation of a given list.

  8. You got salary data of the Acme Corporation. They are just numbers, not associated with names of the employees. Which Python data structure (among list, dictionary, and set) will you use to store this numbers? Justify your answer.

  9. What are the differences of list and dictionary? Explain when one should use one versus the other. Show some use case examples where using list is much more efficient than dictionary and vice versa.

  10. In your script myscript.py, you want to use a function donothing() defined in a module called usefulfunctions. How can you import this module (assuming it's installed or in the same directory) and use this function?