Computational Intelligence: Methods and Applications Lecture 31 Combinatorial reasoning, or learning from partial observations. Włodzisław Duch Dept. of.

Slides:



Advertisements
Similar presentations
25-Mar-17 Circuit Examples [Title of the course]
Advertisements

Voltage and Current Division
Section 2.1 Solving Linear Equations
Overview Discuss Test 1 Review RC Circuits
Thévenin’s and Norton’s Theorems including Dependent Sources
Lecture Ten Physics 100 Fall 2012  Series and Parallel Circuits.
ECE 3336 Introduction to Circuits & Electronics
Fundamentals of Circuits: Direct Current (DC)
Start of Presentation Mathematical Modeling of Physical Systems © Prof. Dr. François E. Cellier Electrical CircuitsI This lecture discusses the mathematical.
Circuit Analysis III Section 06.
True or False? The electrons in a circuit move in the same direction as the current. The current through a component is directly proportional to the voltage.
Physics 1402: Lecture 11 Today’s Agenda Announcements: –Lectures posted on: –HW assignments, solutions.
ADDITIONAL ANALYSIS TECHNIQUES LEARNING GOALS REVIEW LINEARITY The property has two equivalent definitions. We show and application of homogeneity APPLY.
Mathematics Substitution 1 When you have a certain number of valid equations for a problem, with the same number of unknown variables in them, it is often.
Physics 6B Electric Current And DC Circuit Examples Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
Lecture 3. Boolean Algebra, Logic Gates
Lecture - 2 Basic circuit laws
Chapter 3 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1) Connect the Battery Which is the correct way to light the lightbulb with the battery? 4) all are correct 5) none are correct 1) 2) 3)
LINEAR CIRCUIT ANALYSIS
Basic Electronics II Series and Parallel Circuits.
Chapter 28A - Direct Current Circuits
Introduction l Example: Suppose we measure the current (I) and resistance (R) of a resistor. u Ohm's law relates V and I: V = IR u If we know the uncertainties.
EENG 2610: Circuit Analysis Class 4: Nodal Analysis
Do Now: An appliance uses 450 kJ of energy over 1 hour when connected with a p.d. of 120-V. What is the resistance of the appliance? W = V 2 t/R R = V.
Series Circuits Lecture No.4 Mehran U.E.T Khairpur.
Series-Parallel Combination Circuits
1 DC ELECTRICAL CIRCUITS COMBINATION SERIES PARALLEL CIRCUITS.
Lesson#23 Topic: Simple Circuits Objectives: (After this class I will be able to) 1. Explain the difference between wiring light bulbs in series and in.
a b  R C I I R  R I I r V Yesterday Ohm’s Law V=IR Ohm’s law isn’t a true law but a good approximation for typical electrical circuit materials Resistivity.
ELECTRICAL CIRCUIT ANALYSIS
EENG 2009 FS 2006 Part 5: Nodal Analysis 146 EENG 2009 Part 5. Nodal Analysis 5.1 Nodes and Node Voltages 5.2 Nodal Analysis By Example 5.3 Supernodes.
FUNDAMENTALS OF ELECTRIC CIRCUITS EE 318 Dr. ARVIND TIWARI B1-S DEPARTMENT OF ELECTRICAL ENGINEERING, COLLEGE OF.
R Kass/SP07 P416 Lecture 4 1 Propagation of Errors ( Chapter 3, Taylor ) Introduction Example: Suppose we measure the current (I) and resistance (R) of.
1 ENGG 1015 Tutorial Circuit Analysis 5 Nov Learning Objectives  Analysis circuits through circuit laws (Ohm’s Law, KCL and KVL) News  HW1 deadline (5.
IV–3 Energy of Magnetic Field Main Topics Transformers Energy of Magnetic Field Energy Density of Magnetic Field An RC Circuit.
Copyright © Cengage Learning. All rights reserved. 4 Quadratic Functions.
Differential Equations 7. Direction Fields and Euler's Method 7.2.
Circuits. V = IR Voltage is electric potential. It is measured in volts (V). I is current. This is the flow rate of electrical charge. It is measured.
Physics 1202: Lecture 8 Today’s Agenda Announcements: –Lectures posted on: –HW assignments, solutions.
IT253: Computer Organization Lecture 7: Logic and Gates: Digital Design Tonga Institute of Higher Education.
Computational Intelligence: Methods and Applications Lecture 23 Logistic discrimination and support vectors Włodzisław Duch Dept. of Informatics, UMK Google:
DIFFERENTIAL EQUATIONS 10. DIFFERENTIAL EQUATIONS Unfortunately, it’s impossible to solve most differential equations in the sense of obtaining an explicit.
Automated Reasoning Early AI explored how to automated several reasoning tasks – these were solved by what we might call weak problem solving methods as.
1 Electronics Parallel Resistive Circuits Part 2 Copyright © Texas Education Agency, All rights reserved.
1. solve equations with variables on both sides. 2. solve equations containing grouping symbols. Objectives The student will be able to:
Topic 6.5. Solve Systems by Substitution Objectives: Solve Systems of Equations using Substitution Standards: Functions, Algebra, Patterns. Connections.
State Equations BIOE Processes A process transforms input to output States are variables internal to the process that determine how this transformation.
Computational Intelligence: Methods and Applications Lecture 15 Model selection and tradeoffs. Włodzisław Duch Dept. of Informatics, UMK Google: W Duch.
Computational Intelligence: Methods and Applications Lecture 26 Density estimation, Expectation Maximization. Włodzisław Duch Dept. of Informatics, UMK.
Series and Parallel Circuits SNC1D. Series and Parallel Circuits Key Question: How do series and parallel circuits work?
Section 6.2 Solving Linear Equations Math in Our World.
Physics 212 Lecture 10 Kirchhoff’s Rules.
Source Transformations
1) Connect the Battery Which is the correct way to light the lightbulb with the battery? 4) all are correct 5) none are correct 1) 2) 3)
The student will be able to:
1) Connect the Battery Which is the correct way to light the lightbulb with the battery? 4) all are correct 5) none are correct 1) 2) 3)
Solving Systems of Equations in Two Variables; Applications
5 Systems of Linear Equations and Matrices
Electrical Circuits & Ohm’s Law
Resistors and Ohm’s Law
Devil physics The baddest class on campus IB Physics
Copyright © Cengage Learning. All rights reserved.
ECE 2202 Circuit Analysis II
Lecture 4 Propagation of errors
Lecture 03 - Thévenin and Norton Equivalent Circuits
SECTION 2-4 : SOLVING EQUATIONS WITH THE VARIABLE ON BOTH SIDES
Resistance in Series and Parallel
Differential Equations
ADDITIONAL ANALYSIS TECHNIQUES
Presentation transcript:

Computational Intelligence: Methods and Applications Lecture 31 Combinatorial reasoning, or learning from partial observations. Włodzisław Duch Dept. of Informatics, UMK Google: W Duch

Learning from partial observations: intuitive thinking A simple question in basic electronics: for a circuit on the picture, if R 2 increases, and R 1 and V t are constant, what will happen with current I, and voltages V 1, V 2 ? Trained student can answer such questions without making explicit calculations, AI expert system needs to write and solve equations by making many transformations. How do we reason in such case? R 2 increases so the total resistance should be higher, so the current I should decrease, and therefore V 1 will also decrease, and to keep the total voltage V t constant V 2 should increase. No reference to equations. We use intuition based on experience, partial observations of local changes. What is intuition? Just “look and see”?

Expert system approach One way to answer the question would be to create an expert system with knowledge of basic laws of physics, able to analyze equation, transform them and solve them. A lot of programming and not easy. Symbolic algebra packages (like Mathematica) may solve the problem in this way once we formulate it. What useful knowledge do we have? Equations for partial relations: Ohm’s law: V=I*R, may be applied to each resistor and total R: V t =I*R t, V 1 =I*R 1, and V 2 =I*R 2 Kirchoff’s law: V t =V 1 +V 2 Adding resistances: R t =R 1 +R 2 Task: given information about R 2, R 1 and V t find I, and voltages V 1, V 2 Calculate first R t, then I=V t /R t, then V 1, and V 2. But: change of the problem => new transformations needed.

Qualitative physics What is the basic relation that we know? Partial observation: A=f(B,C), either A=B*C, or A=B+C, and also A -1 =B -1 +C -1 for parallel resistors. How is the change of A correlated with changes of B and C? In all cases A grows if B and C grow: there are 13 such true facts: (A,B,C) =    where  means growing, staying constant and decreasing. There are 14 false facts: (A,B,C) =   

Feature space representation True facts are represented by local maxima of PDF, with more data for  than for  situation. Amazing, but all 3-term formulas have identical representation in the feature space! 13 facts are true and 14 false. Functional representation may be created using small Gaussians: F(X)=F(A,B,C)=exp  X   ... exp  X    + exp  X    (13 terms) In the electric circuit example 7 variables are given, and all 5 laws that are applicable should be fulfilled. How many facts are true in 7-D space? There are 3 7 =2187 possibilities:  to . Only 111 combinations are consistent with all 5 laws!

Determining the truth intuitively True facts correspond to inputs with non-zero PDFs. Since 5 facts are true a product must be non-zero: There are 3 7 =2187 input combinations, but only 5% (111) of them are true, that is consistent with all constraints. More constraints, more complex cases => less possibilities … Here going from 3 to 7 variables gives reduction from 48% to 5%. After learning qualitative properties of F(A,B,C) relations, without any symbol manipulation just check if F(X)>0 to find true facts! This is easy to do if you already know X, but how to calculate F(X) if some factors X i are unknown?

Reasoning as search in the feature space Question: knowing that R 2 =+, R 1 =0 and V t =0, how to determine changes in the remaining variables? Find the values of the remaining variables that give F(V t =0,V 1,V 2,R t,R 1 =0,R 2 =+,I) > 0 There may be just one set of such missing values, or many sets –in the case when nothing is known there are 111 such sets. Human reasoning here is: assume that X 1 has some particular value, is it possible? If there is no immediate reason that is not possible, assume now that X 2 has some value. Check F(X) and some factors that have values for all variables may already give 0, so try another value for X 2. For example, take the next unknown variable V 1 and assume that the unknown variable V 1 = , check: is it possible?

Search example Since F(V t =0,V 1,V 2,R t = ,R 1 =0,R 2 =+,I)=0, then one of the laws is not fulfilled, so R t =  is not possible. It does not matter which law, the system “intuitively” answers: impossible! Is V 1 =+ possible? Yes. Try different values and create a search tree: Is this how you reason? We are usually a bit smarter: use heuristics! V 1  V 2  R t  I     V 1  are all possible; if V 1  then V 2  are not possible, so V 2  is the only possibility; if V 1  then V 2  and if V 1  then V 2  This search tree has only one solution. In general many solutions may be found.

Useful heuristics If a variable that we have considered first may take any value than it is not very informative. Use variables that have greatest constraints! If for some variable no value is possible than there is no solution. A program based on this ideas may answer any question related to variable changes, and feasibility of constraints, for example, find all 111 possible situations that agree with all laws of physics. Note that constraints may be soft! F(X) will measure overall agreement. R t =+ I=I= V1=V1= V2=V2= If a variable takes only one value the search is greatly simplified: in our example R t is the best variable since it may only grow; then I may only decrease, and that leads to a unique solution for two variables, V 1 and V 2. R 2 =+, R 1 =0 and V t =0,

Learning from partial observations If laws are know they may be presented as functions F m (X i1..X ik ) that constraint possible solutions. If not, look for maxima of PDF in different subspaces and learn where these functions are approximately true. All relations should be true at the same time, therefore we should take a product of all these functions and search for the maxima. Use heuristic search, starting from most informative variables. There may be several equivalent global maxima, and many smaller maxima that violate some constraints. Each maximum corresponds to one possible solution. This may be used for approximate constrained optimization or a search of acceptable subsets of feature values, etc. Note: this is not yet in the textbooks, the only paper about it is: Duch W & Diercksen GHF (1995) Feature Space Mapping as a universal adaptive system. Computer Physics Communications 87: