• Tidak ada hasil yang ditemukan

Artificial Intelligence

N/A
N/A
Protected

Academic year: 2023

Membagikan "Artificial Intelligence"

Copied!
14
0
0

Teks penuh

(1)

Artificial Intelligence

Presented By Shahriar Parvej Lecturer, CSE, DIU

(2)

Bayesian nets with continuous

variables

(3)

Bayesian nets with continuous variables

• Now we turn to the distributions for discrete variables with

continuous parents. Consider, for example, the Buys node in Figure 14.5. It seems reasonable to assume that the customer will buy if the cost is low and will not buy if it is high and that the probability of

buying varies smoothly in some intermediate region.

(4)

Probit and Logit

• Probit (probability unit)

• Φ(x) =

• Then the probability of Buys given Cost might be,

• P(buys | Cost =c) = Φ((−c + μ)/σ)

• An alternative to the probit model is the logit distribution (pronounced “low-jit”).

logistic function 1/(1 + )

• P(buys | Cost =c) =

(5)

Probit and Logit

(6)

EXACT INFERENCE IN BAYESIAN NETWORKS

• we might observe the event in which JohnCalls =true and

• MaryCalls =true. We could then ask for, say, the probability that a burglary has occurred:

P(Burglary | JohnCalls =true,MaryCalls =true) = {0.284, 0.716} .

(7)

Inference by enumeration

P(X | e) = α P(X, e) = α

P(B | j,m) = α P(B, j,m) = α

P(B | j,m) = α

P(B | j,m) = α (14.4)

• Using the numbers from Figure 14.2, we obtain P(b | j,m) =

α×0.00059224. The corresponding computation for ¬ b yields α×0.0014919; hence,

P(B | j,m) = α {0.00059224, 0.0014919} ≈ {0.284, 0.716} .

(8)

Inference by enumeration

(9)

Another Bayesian Network

(10)

The variable elimination algorithm

• Variable elimination works by evaluating expressions such as Equation (14.4) in right-to-left order (that is, bottom up in Figure 14.8).

Intermediate results are stored, and summations over each variable are done only for those portions of the expression that depend on the variable. Let us illustrate this process for the burglary network. We

evaluate the expression

P(B | j,m) = α

(11)

The variable elimination algorithm

f4(A) = = () and f5(A) = () = ()

f3(A,B,E) will be a 2×2×2 matrix, which is hard to show on the printed page. (The “first” element is given by P(a | b, e)=0.95 and the “last”

by P( ¬ a | ¬ b, ¬ e)=0.999.) In terms of factors, the query expression is written as

P(B | j,m) = α

(12)

The variable elimination algorithm

f6(B,E) =

= (f3(a,B,E)×f4(a)×f5(a)) + (f3( a,B,E)×f4( a)×f5( a)) .

Now we are left with the expression

P(B | j,m) = α f1(B)×

Next, we sum out E from the product of f2 and f6:

f7(B) =

= f2(e)×f6(B, e) + f2( e)×f6(B, e) .

This leaves the expression

P(B | j,m) = α f1(B)×f7(B)

(13)

Operations on factors

(14)

Operations on factors

• If all the variables are binary, then f1 and f2 have 2j+k and 2k+l

entries, respectively, and the pointwise product has 2j+k+l entries. For example, given two factors f1(A,B) and f2(B,C), the pointwise product f1 ×f2 =f3(A,B,C) has 21+1+1 =8 entries, as illustrated in Figure 14.10.

Notice that the factor resulting from a pointwise product can contain more variables than any of the factors being multiplied and that the size of a factor is exponential in the number of variables. This is where both space and time complexity arise in the variable elimination

algorithm.

Referensi

Dokumen terkait

Once the feature map is complete, the resulting activation values will be output to connected nodes in the next hidden layer for the next stage of processing.. The

The computer understands the picture and sees that 'a woman is throwing a frisbee in a park' DEEP LEARNING IN ACTION Figure 8: The evolution of picture understanding with deep

The notice must contain the particulars set out in section 5, namely it must a state that proceedings are being instituted in terms of section 41 of the PIE Act for an order for the

3.1.2 Proving Artificial Intelligence Crimes To locate and ensure evidence, the information expert and the research and investigation bodies must follow steps that include inspecting

Table 1: Variables and assumptions used to build the model and measure the system’s performance Dependent variables Independent variables Merchandise allocation policy Average

• In this case, the network gives the output that corresponds to a taught input pattern that is least different from the given pattern... The associated patterns are all black and all

SOj An ability to apply mathematical foundations, algorithmic principles, and computer science theory in the modeling and design of computer- based systems in a way that demonstrates

and may contain tree variables, such that given the tree in i as input, the output ii a single tree whose leaves read the following sen0ence the internal nodes of the resulting tree