-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path015.tex
More file actions
115 lines (89 loc) · 4.37 KB
/
Copy path015.tex
File metadata and controls
115 lines (89 loc) · 4.37 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
\documentclass[]{article}
\usepackage{amsmath}
%opening
\title{Engineering Statistics Lectures XV and XV.2}
\author{Notes by Jonathan Bender}
\date{October 24, 2019; October 29, 2019}
\begin{document}
\maketitle
\begin{abstract}
Bell Labs -- Subsidiary of AT\&T, company invented many things ranging from the BJT to the general transistor to the telephone (Namesake -- Alexander Graham Bell) to the IC. Basically died at the late 70's AT\&T split.
\end{abstract}
\section{Reprisal of Joint Probability}
For three variables, $$P(X=x, Y=y) = \dfrac{J_x(x)J_y(y)J_z(x,y)}{\#\ of\ possible\ cases}$$
Where $J_x(x)$ refers to a joint probability element which concerns x. and $J_z(x,y)$ refers to a joint probability element which concerns z, a dependent variable upon x and y.
Generally, these are $_nC_r$ functions such that the sum of all n and the sum of all k in the numerator match that of the denominator.
\section{Marginal probabilities}
What if we want the chance that, regardless of y, x is fixed?
Well, good! We have a way of dealing with it!
$$P(x) = \sum_{j \in Y}P(x,j)$$
Where x is some fixed value and j iterates over the set of possible values for Y.
For three independent variables,
$$P(x) = \sum_{j \in Y}\sum_{k \in Z}P(x,j,k)$$
Where, as before, j and k iterate over Y and Z. Think of P(x) to be a lesser-dimensional slice of the relevant space (plane corresponds to line, space corresponds to plane, hyperspace corresponds to space, etc.).
\section{Means in multidimensional sets}
$$\mu_X = \frac{P(x)}{\|X\|} = \dfrac{\sum_{j \in Y}P(x,j)}{\#\ of\ terms\ in\ X} = avg(P(x))$$
Where P(x) is the marginal probability of x occurring.
\pagebreak
\section{Marathon I guess?}
Spoz that the fraction of guys that complete a marathon is X, and the fraction of women is Y. Historically-speaking, $f(X=x, Y=y) = Axy\ s.t.\ 0\leq y\leq x\leq 1$.
To get the probability between two values of x, we take the integral of the PDF f(x) between those two values.
To get the probability within two ranges of x and y respectively, we take the integral of a PDF f(x,y) within those ranges; the area under the surface.
\subsection{A. find A.}
\begin{align*}
\int\int Axy\ dxdy &= 1\ \forall (x,y)\ s.t.\ 0\leq y\leq x\leq 1\\
\to \int_{y=0}^{x=1} \int_{x=y}^{x=1} Axy\ dxdy &= 1 \\
\to \int_{x=0}^{x=1} \int_{y=0}^{y=x} Axy\ dydx &= 1 \\
\to \int_{x=0}^{x=1} \dfrac{A}{2}xy^2 |_{y=0}^{y=x}\ dy &= 1 \\
\to \int_{x=0}^{x=1} \dfrac{A}{2}x^3 dx &= 1 \\
\to \dfrac{A}{8}x^4 |_{x=0}^{x=1} &= 1 \\
\to \dfrac{A}{8} &= 1 \\
\to A &= 8 \\\\
\to f(x,y) &= 8xy
\end{align*}
\pagebreak
\subsection{B. Find g(x), h(y)}
Find g(x):
\begin{align*}
g(x) &= \int_{y=0}^{y=x}f(x,y)dy \\
\to g(x) &= 8\int_{y=0}^{y=x}xy\ dy \\
&= 4xy^2|_{y=0}^{y=x} \\\\
\to g(x) &= 4x^3
\end{align*}
Find h(y):
\begin{align*}
h(y) &= \int_{x=y}^{x=1}[f(x,y)]dx \\
\to h(y) &= \int_{x=y}^{x=1}[8xy]dx \\
&= 4x^2y|_{x=y}^{x=1} \\
&= 4y(1 - y^2) \\\\
\to h(y) &= 4y(1+y)(1-y)
\end{align*}
\pagebreak
\subsection{C. Find $\mu_X,\ \mu_Y$}
\begin{align*}
\mu_X &= \int_{x=0}^{x=1}xg(x)dx \\
&= \int_{x=0}^{x=1}4x^4dx \\
&= \frac{4}{5}x^5|_{0}^{1} \\\\
\to \mu_X &= \frac{4}{5}
\end{align*}
Find $\mu_Y$:
\begin{align*}
\mu_Y &= \int_{y=0}^{y=1}yh(y)dy \\
&= \int_{0}^{1} y * 4y(y-y^3)dy \\
&= \int_{0}^{1} 4(y^3 - y^5)dy \\
&= [y^4 - \frac{2}{3}y^6]_{y=0}^{y=1} \\\\
\to \mu_Y &= \frac{1}{3}
\end{align*}
\pagebreak
\subsection{D. What's P($0.1\leq X\leq 0.3,\ 0.2\leq Y\leq 0.4$)}
Find the probability by summing up the contents under the curve. However, Y is strictly bounded by X: $Y\leq X$!! However, the same rule follows: $Y\not\geq X$. So, the bound becomes: $$0.2\leq X\leq 0.3, 0.2\leq Y\leq 0.3$$
So, we take the integral as:
\begin{align*}
P(etc) &= \int_{x=0.2}^{x=0.3}\int_{y=0.2}^{y=0.3}f(x)dydx \\
&= \int_{x=0.2}^{x=0.3}\int_{y=0.2}^{y=0.3}8xydydx \\
&= \int_{x=0.2}^{x=0.3}[4xy^2]_{y=0.2}^{y=0.3}dx \\
&= \int_{x=0.2}^{x=0.3}4(\frac{9}{100}-\frac{4}{100})xdx \\
&= \frac{1}{5}*\frac{1}{2}[x^2]_{x=0.2}^{x=0.3} \\
&= \frac{1}{10}[\frac{9}{100} - \frac{4}{100}]
\end{align*}
\end{document}