using Distributions, Turing, StatsPlots, Random
Students |
---|
Name | Id |
---|---|
Ploni Almoni | 123489589 |
John Smith | 923352302 |
In this assignment we learn to use Julia and Turing.jl. The assignment is based on the class material:
The assignment consists of two problems. For each problem, you must present a solution
In addition to computations, solutions must include graphical visualization and numerical characterization of the posterior.
A black box contains four marbles. Each marble is either blue or white. In general, blue marbles are twice as frequent as white ones. One can only remove one marble from the box. A marble removed from the box can be put back. The following procedure is repeated three times:
Three marbles where observed: one blue and two whites.
Find the probability distribution of color combinations of the four marbles in the box.
Implement and explain your solution. Use as many code and markdown cells as you need.
Implement and explain your solution. Use as many code and markdown cells as you need.
A globe (a model of the Earth) has areas covered by water (W) colored in blue, and exposed land areas (L) in shades of green or brown. One tosses the globe in the air 10 times and touches a random area, resulting in the following sequence of observations: WLWWWLWLWL.
What portion of the Earth is covered by water?
Implement and explain your solution. Use as many code and markdown cells as you need.
Implement and explain your solution. Use as many code and markdown cells as you need.