photo

Vin Sen Lee


Active since 2016

Followers: 0   Following: 0

Statistics

Feeds

View by

Question


Consider a loop of string with unit length. Take n cuts independently and randomly along the string, what is the expected length of the smallest and the largest piece?
This is what I did. The probability is (1+(1-n)x)^n So, expected value of x is it integral for x varies from 0 to 1/n wh...

mer än 8 år ago | 1 answer | 0

1

answer

0

answers

Question


Write a program to produce the probability density function of binomial distribution
i.e. a function that only returns 2 possible values(0 and 1). The probability of returning 0 is p, the probability returning 1 ...

mer än 8 år ago | 1 answer | 0

1

answer

Question


Write a function so that, when given a natural number N, the function returns the value max  n ∈ N : 12 + 22 + · · · + n 2 ≤ N
Write a function so that, when given a natural number N, the function returns the value max  n ∈ N : 12 + 22 + · · · + n 2 ...

mer än 8 år ago | 4 answers | 0

4

answers

Question


Write a program to produce the probability density function of binomial distribution, i.e. a function that only returns 2 possible values(0 and 1). The probability of returning 0 is p, the probability returning 1 is q. where p + q = 1.
Write a program to produce the probability density function of binomial distribution, i.e. a function that only returns 2 possi...

mer än 8 år ago | 0 answers | 0

0

answers