159 views

1 Answer

0 0 votes
Parameters for $P(Y=1)$
$Y$ is boolean: 2 possible values ( 0 or 1 ).
Estimate $P(Y=1)$.
$P(Y=0)$ is derived as $1-P(Y=1)$.
$1$ parameter for $P(Y=1)$.

Parameters for $P\left(X_1, X_2, X_3 \mid Y=1\right)$
$-X_1, X_2, X_3$ are boolean: $2^3=8$ combinations.
Probabilities must sum to 1 , so estimate $2^3-1$ parameters.
$7$ parameters for $P\left(X_1, X_2, X_3 \mid Y=1\right)$.
Parameters for $P\left(X_1, X_2, X_3 \mid Y=0\right)$
Same process as $P\left(X_1, X_2, X_3 \mid Y=1\right)$.

Estimate 7 parameters for $Y=0$.

$\text{Total parameters :}$

\begin{aligned}
& 1 \text { parameter for } P(Y=1) . \\
& 2^3-1 \text { parameters for } P\left(X_1, X_2, X_3 \mid Y=1\right), \\
& 2^3-1 \text { for } P\left(X_1, X_2, X_3 \mid Y=0\right) .
\end{aligned}

$1+2\left(2^3-1\right)=15$

$\text { Total: } 15 \text { parameters. }$
 
Answer:
Position:
Show:

Related questions

0 0 votes
1 1 answer
163
163 views
GO Classes asked Mar 19, 2025
163 views
Consider a naive Bayes classifier with 3 boolean input variables, $X_1, X_2$ and $X_3$, and one boolean output, $Y$.How many parameters must be estimated to train such a ...
0 0 votes
1 1 answer
126
126 views
GO Classes asked Mar 19, 2025
126 views
Suppose you have the following training set with three boolean input $x, y$ and $z$, and a boolean output $U$.\begin{array}{|c|c|c|c|}\hline x & y & z & U \\\hline \hline...
0 0 votes
1 1 answer
154
154 views
GO Classes asked Mar 19, 2025
154 views
\begin{array}{|c|c|c|}\hline A_1 & A_2 & \text { Class Label } Y \\\hline \text { True } & \text { True } & + \\\hline \text { True } & \text { True } & + \\\hline \text ...
0 0 votes
1 1 answer
152
152 views
GO Classes asked Mar 19, 2025
152 views
Suppose we are given the following dataset, where $A, B, C$ are input binary random variables, and $y$ is a binary output whose value we want to predict.\begin{array}{|c|...