BA quiz 2( 4-7)
BA quiz 2( 4-7)
Latent Demand
refers to demand for a good or service that consumers cannot satisfy for
three main reasons. First, the consumer does not have enough money to
buy the item. Second, the item is not available. Third, the consumer does
Consumer Surplus
they're paying less for something than what they were willing to pay.
Properties
Non-negative
Continuous
Differentiable
Downward sloping
is the slope
Satiating Price
Elasticity
D(p) = D0 − m ∗ p
D0
m
PS =
D0
ε=
m∗p
D0−m∗p
Revenue
D(p) = Cp
R = p ∗ D = Cp
Assignments:
The price of an envelop was Rs. 3/ piece yesterday and Aditya bought 10 envelopes. Today, the price
is Rs. 3.75/ piece and Aditya is willing to buy only 8 envelopes. What is the elasticity of Aditya’s
demand?
Ans:
% change in price
Ans:
% change in fee
20
X = 1770
Week 7
Logistic regression is a supervised machine learning algorithm that accomplishes binary classification
tasks by predicting the probability of an outcome, event, or observation.
A Confusion Matrix is a table used to evaluate the performance of a classification model. It consists
of four key terms:
Actual /
Predicted 1 (Positive) Predicted 0 (Negative)
Predicted
Actual 1 True Positive (TP) → Model correctly False Negative (FN) → Model incorrectly
(Positive) predicted 1 predicted 0
Actual 0 False Positive (FP) → Model incorrectly True Negative (TN) → Model correctly
(Negative) predicted 1 predicted 0
Where:
• True Positives (TP): Cases where the actual value is 1, and the model predicts 1.
• False Positives (FP): Cases where the actual value is 0, but the model predicts 1.
• True Negatives (TN): Cases where the actual value is 0, and the model predicts 0.
• False Negatives (FN): Cases where the actual value is 1, but the model predicts 0.
Accuracy=TP+TN / TP+FP+TN+FN
2. Precision: The proportion of correctly predicted positive cases out of all predicted positive
cases.
Precision=TP / TP+FP
3. Recall (Sensitivity): The proportion of correctly predicted positive cases out of all actual
positive cases.
Recall=TP / TP+FN
I will now process the dataset to compute these values. Let me run the calculations.
If we increase the threshold (say to 0.6, 0.7, etc.), the model will classify fewer instances as positive
because it will require higher confidence to classify as 1.
• True Positives (TP) will decrease because some previously classified 1s will now be classified
as 0.
As a result:
• At higher thresholds, accuracy may drop as too many true positives are misclassified as
negatives.
This means that 50% of the predicted negatives (0's) are actually correct.
This means that 50% of the actual negatives (0's) were correctly predicted.
This means that 44% of the predicted positives (1's) are actually correct.
This means that 44% of the actual positives (1's) were correctly predicted.
Very
0.9 Very Low Almost Zero Very High Very High Very
High
Week - 8
• It helps determine how well a business unit utilizes its resources to generate outputs.
• Efficiency can be measured using graphical methods or optimization techniques like DEA.
2. Efficiency Comparison - Graphical Method
• A graphical approach is useful when dealing with a small number of inputs and outputs.
• The efficiency frontier is drawn using the most efficient units, and others are compared to it.
• It compares multiple decision-making units (DMUs) with the same inputs and outputs.
• A unit with a score of 1 (or 100%) is efficient, while others need improvement.
4. Data Envelopment Analysis - Example with One Output and Two Inputs
• DEA identifies which business units use resources most efficiently to generate revenue.
4o
You said:
ChatGPT said:
Sure! Here are a few example problems related to Measuring Efficiency & Data Envelopment
Analysis (DEA):
A 100,000 50,000 ?
B 80,000 40,000 ?
Formula:
Efficiency=OutputInput\text{Efficiency} = \frac{\text{Output}}{\text{Input}}Efficiency=InputOutput
Solution
100,00050,000=2.0\frac{100,000}{50,000} = 2.050,000100,000=2.0
80,00040,000=2.0\frac{80,000}{40,000} = 2.040,00080,000=2.0
Conclusion:
Both units are equally efficient since their efficiency ratio is the same.
Store Sales Revenue ($) Employees (Input 1) Advertising ($) (Input 2) Efficiency Score
X 500,000 50 30,000 ?
Y 400,000 45 20,000 ?
Z 600,000 60 40,000 ?
Solution Using DEA: We calculate efficiency by comparing each store's output with its weighted
inputs using the formula:
Conclusion:
Store Y is the most efficient,
while Store Z is the least
efficient.
Example 3: Data
Envelopment Analysis (DEA)
with Efficiency Scores
Factory Output (Products) Workers (Input 1) Energy (kWh) (Input 2) DEA Efficiency Score
Using DEA software or a linear programming solver, we would compute the efficiency score for each
factory and compare it to the most efficient factory (score = 1).
A logistics company wants to maximize efficiency based on the number of deliveries made and fuel
consumption.
Truck ID Deliveries Made (Output) Fuel Used (Liters) (Input) Efficiency Score
T1 200 50 ?
T2 180 45 ?
T3 250 70 ?
Efficiency=OutputInput\text{Efficiency} = \frac{\text{Output}}{\text{Input}}Efficiency=InputOutput
20050=4.0\frac{200}{50} = 4.050200=4.0
18045=4.0\frac{180}{45} = 4.045180=4.0
25070=3.57\frac{250}{70} = 3.5770250=3.57
Conclusion:
Week – 6
MLR models the relationship between a dependent variable and multiple independent variables:
✔ Used in house price prediction, sales forecasting, and medical research.
Graphical Representation:
VIF Representation:
P=3.2+(−1.7×Age)+(1.4×Income)
After applying the sigmoid function, let's assume:
• CID01: ~0.08
• CID02: ~0.17
• CID03: ~0.89
• CID04: ~0.76
• CID05: ~0.12
Table 1 table 2
TP 1 1
FP 0 1
Actual \ Predicted Predicted Positive (P1) Predicted Negative (P0)
TN 0 0 Actual Positive True Positive (TP) = 1 False Negative (FN) = 0
FN 1 0 (A1)
Actual Negative False Positive (FP) = 0 True Negative (TN) = 1
(A0)
Defaulter = 1
Non defaulter = 0
Threshold = 0.8
TP = A1 , P1 = 1 , P > 0.8
FP = A1 , P1 = 1 , P > 0.8
FN = A1 , P1 = 1 , P > 0.8
TN = A1 , P1 = 1 , P > 0.8
Actual Positive 0 2
(A1)
Actual Negative 1 2
(A0)
Threshold = 0.5
Actual Positive 0 2
(A1)
Actual Negative 1 2
(A0)