Place your order now for a similar assignment and have exceptional work written by our team of experts, At affordable rates
For This or a Similar Paper Click To Order Now
Plese write the code in detail and explain each step taken and each equation and code used.
QUESTION 1
Write down the mean and standard deviation for a normal distribution and a Binomial distribution.
The probability that a student is accepted to a prestigious university is 0.25. If 5 students from the same school apply, what is the probability that at most 2 are accepted?
QUESTION 2
a. Define the terms: prior, likelihood, posterior in relation to Bayes Rule in terms of probability (use words).
b. Professor Dumbledore, studying the extinction of the elephant bird, discovers a new set of egg remnants in an unexplored valley in Madagascar. The remnants are radio carbon dated and found to have the following ages in years:
2141.22, 1781.15, 1523.37, 1816.90, 1932.29, 1541.21, 720.782, 1026.22, 1687.22, 2460.59
Professor Snape however did a previous study in the next valley where he found eggs that were on average 1200 years old, following a normal distribution with standard deviation of 300 years.
What is the mean and standard deviation of the age of elephant bird eggs based on this information? This is a Bayesian probability, you can use the analytical expressions form the notes to determine the posterior age of the elephant bird eggs. Describe all your steps.
QUESTION 3
The government wants to investigate graduate earnings, and so they collect information on graduate earnings (in £1000s) compared to the average UK salary as well as the number of years after they graduated . This data is found in DataAnalysis_datafile_2.dat.
Perform a straight line fit to the data, calculating, and reporting all the errors, and plotting the data where appropriate. Use the information provided in the course notes to determine the true error on the best fit parameters.