I need help to draw a Directed Acyclic Graph of Bayesian Network along with probability of each node using TikZ package. Here is an example:

Table grid can be a full or partial as in above example.
I need help to draw a Directed Acyclic Graph of Bayesian Network along with probability of each node using TikZ package. Here is an example:

Table grid can be a full or partial as in above example.
I am in a good mood to provide you with a minimal working example (MWE) but in future questions, I advise you to provide one. (Summer break for teachers here :) See for instance: "Just do it for me" text building block
Here it is in tikz. You can do the rest for practice. See the pgfmanual. You can also type texdoc pgf in your terminal or command line.
Here are some explanations.
\node (<node name>) [<options>] {<text>};positioning library enables you to specify how far the location of nodes/coordinates relative to other nodes/coordinates. Reference: Package PGF Math Error: Unknown operator `o' or `of'arrows library allows you to use other types of arrows aside from the default of >.shapes library allows usage of shapes like ellipse for nodes.\documentclass[border=5, convert={density=150}]{standalone}
\usepackage{array}
\newcolumntype{C}{>{$}c<{$}}
\usepackage{tikz}
\usetikzlibrary{shapes, arrows}
\tikzset{
events/.style={ellipse, draw, align=center},
}
\begin{document}
\begin{tikzpicture}[node distance=2cm, >=stealth']
\node [events] (cloudy) {Cloudy};
\node [events, below left = of cloudy] (sprinkler) {Sprinkler};
\node [events, below right = of cloudy] (rain) {Rain};
\node [events, below right = of sprinkler] (wetgrass) {WetGrass};
\draw [->] (cloudy) -- (sprinkler);
\draw [->] (cloudy) -- (rain);
\draw [->] (rain) -- (wetgrass);
\draw [->] (sprinkler) -- (wetgrass);
\node [above = of cloudy] {
\begin{tabular}{CC}
\mathrm{P(C=F)} & \mathrm{P(C=T)}\\
\hline
0.5 & 0.5\\
\end{tabular}
};
\node [right = of rain, anchor=west] {
\begin{tabular}{c|CC}
C & \mathrm{P(C=F)} & \mathrm{P(C=T)}\\
\hline
F & 0.8 & 0.2\\
T & 0.2 & 0.8\\
\end{tabular}
};
\end{tikzpicture}
\end{document}

positioning. The syntax for positioning is …=… of …, see Package PGF Math Error: Unknown operator o or of. The … of=… syntax is actually deprecated, see Difference between "right of=" and "right=of" in PGF/TikZ.
– Qrrbrbirlbel
Feb 28 '13 at 13:27
tabularenvironment inside a tikz node, so you can integrate your tables in the tikz figure. It is all about node placement. Usepositioninglibrary. – JLDiaz Feb 27 '13 at 23:33tikz, then the code could be adapted to produce the required output. – Werner Feb 27 '13 at 23:43