{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Assignment 4: Roundup\n", "\n", "Students|\n", "-------|\n", "\n", "Name | Id\n", "------------|----------\n", "Ploni Almoni|123489589\n", "John Smith |923352302\n", "\n", "The purpose of this assignment is to let you experiment with models\n", "and probabilistic programming frameworks we introduced in class.\n", "\n", "This assignment contains two questions. For each question, you are\n", "given a data set and asked to perform an analysis on the data. The\n", "analysis should include all usual steps, as we learned during the\n", "course:\n", "\n", "1. Initial data exploration\n", "2. Specification of the initial model\n", "3. Inference of the posterior\n", "4. Predictive posterior checks and sensitivity analysis\n", "5. Expansion of the model and evaluation of the expanded model\n", "\n", "**You are not allowed to use Turing in this assignment**. Rather, you may use any probabilistic programming framework demonstrated or mentioned in class\n", "(Infergo, Stan, Pyro, Anglican, Turing,jl, Gen.jl, ...)." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Problem 1: Unsupervised exploration of Iris dataset\n", "\n", "[Iris flower data set](https://en.wikipedia.org/wiki/Iris_flower_data_set)\n", "contains measurements of features of three related specifes of Iris flowers.\n", "How well do the features separate species? Your model should use only the\n", "features, not the species labels, for inference. However, you may use species\n", "labels to assess the informativeness of the features to identify a species.\n", "For your convenience, the [data set](04iris.csv) is provided." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Problem 2. Reedfrog survival \n", "\n", "\n", "In class, we explored the data set for reedfrog survival experiment. We developed a simple hierarchical model based on the number of aquarium only, as well as a cross-classified model taking predation into account. \n", "\n", "1. Implement a linear regression model for the problem. Use population size, aquarium size, and predation as the explanatory variables, and the number of surviving reedfrogs as predicted variable.\n", "2. Check, compare, and evaluate the 3 models:\n", " * hierarchical model from lecture 5, based on aquarium only.\n", " * cross-classified hierarchical model from lecture 6, based on aquarium and predation.\n", " * regression model you have developed. " ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "julia 1.6.0", "language": "julia", "name": "julia-1.6" }, "language_info": { "file_extension": ".jl", "mimetype": "application/julia", "name": "julia", "version": "1.6.0" } }, "nbformat": 4, "nbformat_minor": 5 }