Latex Assignment 1
Latex Assignment 1
18
Bongu Ashish(23BDS014)
Ishan Srivastava(23BDS023) Latex Assignment 1
Taran Jain(23BDS062) https://www.overleaf.com/read/hnhznbgjtzdsc96585(Read- 2024-09-15
Shaik Izhaar Ahmed(23BDS053)
Only link to the project)
Shivansh Shukla(23BDS054)
1 First Chapter
The problem is to match the entertainment offerings with the preferences of passengers while
considering budget, venue, and contractual constraints. The aim is to maximize passenger
satisfaction by providing entertainment that caters to a wide range of tastes.
To solve this, we can gather real-time data on passenger preferences and attendance, then
adjust the entertainment schedule dynamically to maximize satisfaction while adhering to
the constraints.
Fourth Task
1.3.2 Objective
Fifth Subtask
1.3.3 Constraints
• Budget constraint: The total cost of entertainment must not exceed the budget B:
Xm
Cj ≤ B
j=1
2.1 Introduction
This document outlines the process for recoding monthly percentage changes of the Dow
Jones Industrial Average (DJIA) and visualizing the distribution of these changes.
15
10
10
5
0
e
ve
e
ve
ve
Category
tiv
tiv
iv
iti
iti
iti
at
ga
ga
s
os
s
eg
po
po
ne
ne
lp
ln
e
um
al
e
rg
al
rg
Sm
iu
La
Sm
i
La
ed
ed
M
M
2
2.4 Commentary
The shape of the column chart reveals the distribution of percentage changes. Observing the
chart, we can identify whether changes are more frequently small or large, and whether
there is a predominant trend in the data.
3
3.4.1 Revenue by Product Family
30,000
Revenue
20,000
2
0
k
ck
ld
Product Family
in
ho
a
Dr
Sn
se
ou
H
3.4.2 Revenue by Product Department (Drilled Down from Drink)
2.5
20,000
2
Revenue
1.5
0.5
0
s
es
Product Department
ge
ag
ra
r
ve
ve
Be
Be
ic
lic
ol
o
oh
oh
c
lc
Al
-A
on
N
4
3.4.3 Revenue by Product Category (Drilled Down from Alcoholic Beverages)
0.8
0.6
0.4
0.2
0
er
e
Product Category
in
Be
W
3.4.4 Revenue by Product Type (Drilled Down from Beer)
6,000
Revenue
4,000
2,000
0
r
A
Product Type
ge
IP
La
3.5 Conclusion
By drilling down through hierarchical data, managers can gain detailed insights into reve-
nues. The provided plots illustrate the revenue distribution at different levels of the product
hierarchy with enhanced visual appeal.
5
4 Fourth Chapter
4.1 Yankees vs Phillies Best-of-Three and Best-of-Five Series (Page 164 Problem 37
Problem Overview
We are given the following:
• The Yankees have a probability of winning at home PY = 0.55,
• The Phillies have a probability of winning at home PP = 0.53,
• The games are independent of each other,
• The series is a best-of-three (parts a, b, and c) and best-of-five (part d).
• Yankees win in three games (lose the second game but win first and third): This
occurs with probability:
P (YNY) = PY × PP × PY = 0.55 × 0.53 × 0.55 = 0.1604
• Yankees win in three games (lose the first game but win second and third): This
occurs with probability:
P (NYY) = (1 − PY ) × PP × PY = 0.45 × 0.53 × 0.55 = 0.1312
Thus, the total probability that the Yankees win the series is:
P (Yankees win) = P (YY) + P (YNY) + P (NYY) = 0.2585 + 0.1604 + 0.1312 = 0.5501
6
Yankees’ Chances in Best-of-Three Series
0.3
0.26
0.2
Probability
0.16
0.13
0.1
0
YY YNY NYY
Outcome
Thus, the probability mass function (PMF) for your net winnings is:
P (W = 100) = 0.55, P (W = −105) = 0.45
The expected value of your net winnings is:
E[W ] = 100 × 0.55 + (−105) × 0.45 = 55 − 47.25 = 7.75
The variance of W is:
Var(W ) = (100 − 7.75)2 × 0.55 + (−105 − 7.75)2 × 0.45
Var(W ) = (92.25)2 × 0.55 + (−112.75)2 × 0.45
Var(W ) = 8462.06 × 0.55 + 12713.56 × 0.45 = 4654.13 + 5721.10 = 10375.23
Thus, the standard deviation is:
√
σW = 10375.23 ≈ 101.86
The expected value ($7.75) indicates this betting strategy is favorable to you.
7
Distribution of Net Winnings
0.6
0.55
0.45
0.4
Probability
0.2
0
100 -105
Net Winnings
We need:
250
0.80 · X > 250 =⇒ X > = 312.50
0.80
We standardize X:
X −µ 312.50 − 350
Z=
= = −0.375
σ 100
The probability of defaulting and having a write-off greater than $250 is:
6.2 (b) Mean and Standard Deviation of Customers with Write-Off Greater Than $250
Let N = 500 be the number of customers.
Let pwrite-off be the probability of write-off greater than $250. This is:
pwrite-off = P (X > 312.50) = 1 − Φ(−0.375)
8
Normal Distribution of Credit Charges
·10−2
4
Normal Distribution
Area for X > 312.50
3
Probability Density
0
200 250 300 350 400 450 500
Credit Charges ($)
Abbildung 3: Normal Distribution of Credit Charges with Highlighted Area for X > 312.50.
6
Probability
−5 0 5 10 15 20 25 30 35 40 45 50 55
Number of Customers with Write-Off ¿ $250
Abbildung 4: Normal Approximation for the Number of Customers with Write-Off Greater Than $250.
9
We calculate:
25 − Mean
P (Y ≥ 25) ≈ 1 − Φ
Standard Deviation
−5 0 5 10 15 20 25 30 35 40 45 50 55
Number of Customers with Write-Off ¿ $250
Abbildung 5: Normal Approximation for At Least 25 Customers with Write-Off Greater Than $250.
6.4 (d) Simulation of Bad Debt from 500 Customers with No Recovery
To simulate the total amount of bad debt with no recovery:
• **Binomial Calculation**: Calculate the total amount based on the number of defaults.
• **Normal Calculation**: Approximate the total amount using the normal distribution.
Binomial Calculation:
Total Bad Debt = Number of Defaults × 350
Normal Calculation:
p
Total Bad Debt = Normal(500 × 0.07 × 350, 500 × 0.07 × (1 − 0.07) × 350)
10