-
Notifications
You must be signed in to change notification settings - Fork 0
/
Project 2 Task 2.Rmd
52 lines (30 loc) · 1.34 KB
/
Project 2 Task 2.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
title: "Project 2 Task 2"
author: "Brandon Ritchie"
date: "11/17/2021"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
In this project we will take the derivatives and partial derivatives of a few of these likelihood functions. All of these were done on a whiteboard and their images are attached.
## Likelihood Function 1
The first derivative of this function is as follows:
![](first_deriv_1.jpg)
The second derivative of this function is as follows:
![](second_deriv_1.jpg)
## Likelihood Function 4
This function is in 5 parts because there are two variables. As a result a partial and second partial is performed for both $a_1$ and $a_2$ as well as a partial of $a_1$ with respect to $a_2$.
The first partial with respect to $a_1$ is the following:
![](partial_a1_4.jpg)
The first partial with respect to $a_2$ is the following:
![](partial_a2_4.jpg)
The second partial with respect to $a_1$ is the following:
![](partial2_a1_4.jpg)
The second partial with respect to $a_2$ is the following:
![](partial2_a2_4.jpg)
And finally, the partial of $a_1$ with respect to the partial of $a_2$ is the following:
![](partial_a2a1.jpg)
## Likelihood Function 5
For this function both a first and second derivative were taken with repect to $a_1$. Both are given in the image below:
![](first_second_5.jpg)