###### Computing the covariance matrix from the correlation matrix and standard deviations

Problem Recall the definition of correlation matrix as normalized covariance matrix. Write a function genCovMatFromCorMat(CorMat, StdVec = None) that computes the covariance matrix from an input correlation matrix and, optionally - if available, the input vector of standard deviations.

###### Computing the Spearman rank correlation coefficient of a dataset

Problem Recall the globalLandTempHist.txt dataset that consisted of the global land temperature of Earth over the past 300 years. Also recall the Spearman correlation rank coefficient is merely the Pearson’s correlation coefficient of the ranks of two attributes in a...

###### Monte Carlo approximation of the number Pi using a full circle

Problem Suppose we did not know the value of $\pi$ and we wanted to estimate its value using Monte Carlo methods. One practical approach is to draw a square sides equal to $a = 2$, with its diagonal opposite corners...

###### Monte Carlo approximation of the area of heart

Problem A popular mathematical equation for 2D heart is the following, $f(x,y) = (x^2 + y^2 - 1)^3 - x^2 y^3 = 0$ Any $(x,y)$ values that result in $f(x,y) < 0$ represent the coordinates of a point that falls...

###### Parsing data from the World Wide Web

Consider the following web-page address https://cdslaborg.github.io/DataRepos_SwiftBat/index.html. This is a data table in HTML language containing data from the NASA Swift satellite. Each row in this table represents information about a Gamma-Ray Burst (GRB) detection that Swift has made in the...

###### Data transfer: Converting formatted input to Comma-Separated-Values (CSV) output

Problem Consider this formatted data file: data.in. Write a simple script named formatted2csv that takes two input arguments representing the input and output file names. Then, the script writes the same input float data to the output file data.out in...

###### Command line input option-value pairs

Problem Python Suppose we want to write a program that takes in three input parameters: the initial height ($y_0$) initHeight, the initial velocity ($v_0$) initVelocity, the time after which we want to know how much a projectile has moved in...

###### Python modules and packaging

Problem Consider the following codes that compute the Fibonacci sequence using two different methods: fib_recursive.py and fib_loop.py. Put these two functions in a folder named fib such that they can be imported as a Python package to your Python environment....

###### Visualization: The world population

Problem The following plot shows the worldwide population by countries and states. What kind of visualization is this plot?

###### Visualization: The world population (refined)

Problem The following plot is a refined map of the worldwide population. What kind of visualization and map is this plot? Select all that apply. Robinson map, Interrupted Goode Homolosine map, Cartesian Longitude and Latitude map, Cartogram Heat map, Winkel...