using Distributions, Turing, StatsPlots, Random, RDatasets
Students |
---|
Name | Id |
---|---|
Ploni Almoni | 123489589 |
John Smith | 923352302 |
In this assignment we explore hierarchical models for analysis of data consisting of multiple related groups. The assignment is based on the class material:
The assignment consists of two problems. Solve the problems in either Jupyter or Pluto notebook. In addition to computations, solutions must include graphical visualization and numerical characterization of the posterior.
Julia provides to R datasets via package RDatasets. We will use the warpbreaks dataset for this problem. You can load the dataset into data frame df
as follows:
df = RDatasets.dataset("datasets", "warpbreaks");
Infer the probability distribution of warp breaks for each of two wool types. Compare the results under separate and hierarchical models. Conduct two studies:
City of Norfolk provides access to employee salary data. Analyze the salary distributions
Compare the analysis under separate and hierarchical models. A small number of groups are very different from the rest, how do you propose to handle the difference in the hierarchical model?