Giter Club home page Giter Club logo

202unsold's Introduction

202unsold

Time: 2 weeks

Team: 2

Language: Python

The project

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

USAGE:

>> ./202unsold -h
USAGE
	./202unsold a b

DESCRIPTION
	a	constant computed from the past results
	b	constant computed from the past results

Author Corentin COUTRET-ROZET and PATRICIA MONFA-MATAS

202unsold's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.