-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,16 @@ | ||
# 202_unsold_2019 | ||
Maths projects from Epitech | ||
|
||
Description: | ||
Steven is a suit-seller in Mississippi. Once a year, he gets rid of his unsold stock, selling separately jackets | ||
and trousers, at $10, $20, $30, $40 and $50. He’d like to know how much each piece of clothing is likely to | ||
yield (expected value and variance). | ||
Steven gave his statistician friend a mission: to deduce from his past results the probability to sell a $x jacket | ||
and $y trousers together. It appears that the probability is defined by the following formula (a and b being | ||
integers greater than 50, depending on the economic climate): | ||
((a − x)(b − y)) / ((5a − 150)(5b − 150)) | ||
Let’s call X, Y and Z, respectively, the random variables that represent “the price of a sold jacket”, “the price | ||
of sold trousers” and “the price of a sold suit”. Given the values of a and b, your software must print: | ||
• an array summing up the joint law of (X, Y ), and the marginal laws of X and Y , | ||
• an array summing up the law of Z, | ||
• expected values and variances of X, Y and Z. |