Given the following training set for classification problem into two classes “fraud” and “normal”. There are two attributes A1 and A2 taking values 0 or 1. What is the estimated apriori probability P(fraud)of the class fraud?
A1
A2
Class
1
0
fraud
1
1
fraud
1
1
fraud
1
0
normal
1
1
fraud
0
0
normal
0
0
normal
0
0
normal
1
1
normal
1
0
normal
A. 0.2
B. 0.4
C. 0.6
D. 0.8
Answers
Answer:
Database (Data) Tier − At this tier, the database resides along with its query processing languages. We also have the relations that define the data and their constraints at this level.
Application (Middle) Tier − At this tier reside the application server and the programs that access the database. For a user, this application tier presents an abstracted view of the database. End-users are unaware of any existence of the database beyond the application. At the other end, the database tier is not aware of any other user beyond the application tier. Hence, the application layer sits in the middle and acts as a mediator between the end-user and the database.
User (Presentation) Tier − End-users operate on this tier and they know nothing about any existence of the database beyond this layer. At this layer, multiple views of the database can be provided by the application. All views are generated by applications that reside in the application tier.