STARFISH SCHOOL
STARFISH SCHOOL
A Virtual Bootcamp for Astronomy Graduate Students
SESSION 2 EXERCISES
Version 3.0
Exercise 1
1. Write a function (in Python and R) that takes your height as input (L0) and computes your height L if you were travelling at v=0.3c.
You may need to know the following equations for Lorentz contraction:
= 0 () 1
() 1 - 22
Exercise 2
1. Generate 100 random numbers from a Gaussian distribution 2. Generate 100 000 random numbers from a Gaussian distribution and show that they are much better approximated by a
Gaussian distribution (i.e., plot a Gaussian curve). HINT: In R, look up ?rnorm
The following equation may be useful to you for a Gaussian distribution:
() = 1 -12-2 2
Group Exercise
1. In Python
a. Read in the data from the data file A provided b. Change the precision of the data file (reduce the floating point precision to 1 decimal place, or make them integers) c. Apply a 50% Gaussian scatter to the data points d. Make a plot of your data and save it to file B e. Save the data to a text file 2. In R
a. Read in that text file B that you saved in the step above b. Compute the summary statistics of the data c. Plot the data d. Plot the five number summary statistics (hint: look up ?boxplot) e. Read in the original data file A used in the step above f. Compare the summary statistics of the A data with the B data g. Make a plot and save it to file h. Save original data A to file with increased precision
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- random numbers
- python modules cbse class xi class xii
- random numbers random walk umass
- chapter 5 generating random numbers from distributions ksu
- chapter 7 random number generation western michigan university
- chapter 3 pseudo random numbers generators university of arizona
- random number generation rice university
- random number generators columbia university
- randomseq python command‒line random sequence generator
- random number generation washington university in st louis
Related searches
- high school freshman school supply list
- middle school back to school list
- school supplies for middle school 7th gr
- middle school summer school curriculum
- high school federal school codes
- high school back to school list
- online school for high school credit
- parkway school district school calendar
- school effectiveness and school improvement
- high school school supply list
- high school summer school classes
- private school public school comparison