Monday, June 15, 2009

Mga Assignment Ito!

FOR THE OPERSEA:


Quantitative Analysis

  • provides data-driven analytical services for a range of business challenges, specializing in statistical models for site selection decisions.
  • can assist by applying advanced statistical analysis techniques to help you get more from your data, as well as external data sources.


Decision Theory Method is an axiomatic system that contains at least one action axiom.

Stages in Decision Theory Method

  1. Formulation is the first and often most challenging stage in using formal decision methods (and in decision analysis in particular). The objective of the formulation stage is to develop a formal model of the given decision.

  1. Evaluation is the second and most algorithmic stage in using formal decision methods. The objective of the evaluation stage is to produce a formal recommendation (and its associated sensitivities) from a formal model of the decision situation.

  1. Formal Decision Methods third and last stage. The objective of the appraisal stage is for the decision maker to develop insight into the decision and determine a clear course of action. Much of the insight developed in this stage results from exploring the implications of the formal decision model developed during the formulation stage (i.e., from mining the model). Central to these implications is the formal recommendation for action calculated during the evaluation stage. Other implications include various forms of sensitivity of the recommendation to selected variables in the model. Additional insight is obtained by exposing key aspects of the reasoning that led to the formal decision model (i.e., by justifying the model). Possible actions following the appraisal stage include implementing the recommended course of action, revising the formal model and reevaluating it, or abandoning the analysis and doing something else.

Justifying a decision model is the action of exploring and explaining the reasoning that led to the formulation of a particular decision model.

Mining a decision model is the action of extracting information (e.g., sensitivity, value of information, and value of control) from a given decision model.


Decision Tree (or tree diagram) is a decision support tool that uses a tree-like graph or model of decisions and their possible consequences, including chance event outcomes, resource costs, and utility. Decision trees are commonly used in operations research, specifically in decision analysis, to help identify a strategy most likely to reach a goal. Another use of decision trees is as a descriptive means for calculating conditional probabilities.


Example of Decision Tree:



A decision Tree consists of 3 types of nodes:

1. Decision nodes - commonly represented by squares
2. Chance nodes - represented by circles

3. End nodes - represented by triangles



Forecasting is the process of estimation in unknown situations. Prediction is a similar, but more general term. Both can refer to estimation of time series, cross-sectional or longitudinal data. Usage can differ between areas of application: for example in hydrology, the terms "forecast" and "forecasting" are sometimes reserved for estimates of values at certain specific future times, while the term "prediction" is used for more general estimates, such as the number of times floods will occur over a long period. Risk and uncertainty are central to forecasting and prediction.


Forecasting Procedures

Determine the purpose and time: level of details, resources (manpower, computing times, etc), level of accuracy

Establish a time horizon

Select a forecasting technique

Collect and analyze the data, and prepare the forecast, identify any assumptions

Monitor the forecast

Linear programming

Mathematical modeling technique useful for guiding quantitative decisions in business, industrial engineering, and to a lesser extent the social and physical sciences. Solving a linear programming problem can be reduced to finding the optimum value (see optimization) of a linear equation (called an objective function), subject to a set of constraints expressed as inequalities. The number of inequalities and variables depends on the complexity of the problem, whose solution is found by solving the system of inequalities like a system of equations. The extensive use of linear programming during World War II to deal with transportation, scheduling and allocations of resources under constraints like cost and priority gave the subject an impetus that carried it into the postwar era. The number of equations and variables needed to model real-life situations accurately is large, and the solution process can be time-consuming even with computers.






FOR THE ADDBASE:

Stored Procedure is a subroutine available to applications accessing a relational database system. Stored procedures (sometimes called a proc, sproc, StoPro, or SP) are actually stored in the database data dictionary.

Typical uses for stored procedures include data validation (integrated into the database) or access control mechanisms. Furthermore, stored procedures are used to consolidate and centralize logic that was originally implemented in applications. Large or complex processing that might require the execution of several SQL statements is moved into stored procedures, and all applications call the procedures only.


Cursor (computers)

In computing, a cursor is an indicator used to show the position on a computer monitor or other display device that will respond to input from a text input or pointing device. The text cursor may be referred to as a caret in some cases. This term came about from older Unix systems that used the caret symbol as a text insertion indicator. The mouse cursor may be referred to as a mouse pointer, owing to its arrow shape on some systems.


Embedded SQL is a method of combining the computing power of a programming language and the database manipulation capabilities of SQL. Embedded SQL statements are SQL statements written inline with the program source code of the host language. The embedded SQL statements are parsed by an embedded SQL preprocessor and replaced by host-language calls to a code library. The output from the preprocessor is then compiled by the host compiler. This allows programmers to embed SQL statements in programs written in any number of languages such as: C/C++, COBOL and Fortran.


Database Trigger is procedural code that is automatically executed in response to certain events on a particular table in a database. Triggers can restrict access to specific data, perform logging, or audit data modifications.

There are two classes of triggers, they are either "row triggers" or "statement triggers". Row triggers define an action for every row of a table, while statement triggers occur only once per INSERT, UPDATE, or DELETE statement. Triggers cannot be used to audit data retrieval via SELECT statements.

Each class can be of several types. There are "BEFORE triggers" and "AFTER triggers" which identifies the time of execution of the trigger. There is also an "INSTEAD OF trigger" which is code that gets executed instead of the triggering statement.

There are typically three triggering events that cause triggers to 'fire':

  • INSERT event (as a new record is being inserted into the database).
  • UPDATE event (as a record is being changed).
  • DELETE event (as a record is being deleted).

Sunday, February 15, 2009

assignment in THEODBS



SELECT DISTINCT [it.name] as Item i.name as Ingredients
From madewith as mw, ingredients as i, items as it
Where (mw.itemid = it.itemid)
And (mw.ingredientid = i.ingredientid)
And ((quantity * 3) > inventory);

Sunday, February 1, 2009

the ONE


Option Explicit

Private Sub Combo1_Click()Dim q As StringDim rscustoms As New ADODB.Recordset
If Combo1.ListCount > 0 Or Combo1.Text > "" Then q = Combo1.Text rscustoms.Open "select * from items where name='" & q & "'", DataEnvironment1.Connection1, 1, 3 If rscustoms.RecordCount > 0 Then Label1.Caption = rscustoms.Fields("itemid") End If End IfEnd Sub
Private Sub Command1_Click()Dim rs As ADODB.RecordsetSet rs = New ADODB.RecordsetDim y As StringDim q As StringIf Text1.Text = "" Then MsgBox "Please type the quantity!", vbExclamation, "System Info" Text1 = "" Text1.SetFocusElseList2.AddItem (List1.Text)List3.AddItem (Text1.Text)q = List1.Textrs.Open "select * from ingredients where name='" & q & "'", DataEnvironment1.Connection1, 1, 3If rs.RecordCount > 0 Then Label2.Caption = rs.Fields("ingredientid") End If List4.AddItem (Label2.Caption)Text1.Text = ""Command1.Enabled = FalseList1.SetFocusEnd If
End Sub
Private Sub Command2_Click()List2.ClearList3.ClearCommand2.Enabled = FalseEnd Sub
Private Sub Command3_Click()Dim rsu As ADODB.RecordsetSet rsu = New ADODB.Recordset
If Label1.Caption = "" Then MsgBox "Please choose a item", vbInformation Combo1.SetFocus Exit Sub End If rsu.Open "select * from madewith", DataEnvironment1.Connection1, 1, 3 Do Until List2.Text = "" rsu.Fields("itemid") = Label1.Caption rsu.Fields("ingredientid") = List4.Text rsu.Fields("quantity") = List3.Text rsu.Update rsu.MoveNext Loop rsu.Close MsgBox "Save!", vbInformation, "Recipe Setup" List2.ClearText1.Text = ""List3.ClearText1.SetFocusCombo1.Text = ""List4.Clear
End Sub
Private Sub Command4_Click()List2.ClearText1.Text = ""List3.ClearText1.SetFocusCombo1.Text = ""List4.ClearEnd Sub
Private Sub Form_Load()Dim rs As ADODB.Recordset
Command1.Enabled = FalseCommand2.Enabled = FalseSet rs = DataEnvironment1.rsCommand1rs.Open
Do Until rs.EOFList1.AddItem rs!Namers.MoveNextLoopSet rs = Nothing
End Sub
Private Sub List1_Click()
Command1.Enabled = TrueCommand2.Enabled = FalseText1.SetFocus
End Sub
Private Sub List2_Click()Command2.Enabled = TrueEnd Sub