[Archive!] Pure mathematics, physics, chemistry, etc.: brain-training problems not related to trade in any way - page 493

 
3 roubles adds up to 23 (the servant reclaimed a third from his master out of his profit). The invalids have 1 rouble each. 23+1+1=25 in total.
 
trol222:

An old riddle - don't judge too harshly if you've already done it.) Once upon a time there was a shoemaker. He was selling boots for 25 rubles per pair. Came to him as a disabled man without a right leg and asked to sell him one left boot instead of a pair of polusumma - for 12.50 rubles. The shoemaker took a long time, but took pity and agreed. After a while, another invalid without a left foot came to the same cobbler and asked him to sell him his right boot. The shoemaker agreed, because he still had an extra boot from that pair. He also sold a second cripple a boot for 12.50 rubles.

In the end, the shoemaker sold a pair of boots for 25 rubles, just as he wanted. After a while, he felt pity for the invalids and decided to give them a discount. He called his servant, gave him 5 rubles from the 25 rubles, and sent him to the two invalids, so that he would give them the same 5 rubles for both of them. The servant proved to be cunning and decided to keep 3 roubles out of the 5 roubles, leaving the remaining 2 roubles to the invalids.

In the end, disabled people are happy, they bought a boot for 12.50-1 = 11.50 rubles, so they brought profit cobbler 23 rubles. But the servant left 3 rubles. The total was 26 rubles, although in circulation were the same 25 rubles, then Where did the ruble come from?

The shoemaker had 20 roubles + the servant 3 roubles + the invalid 2 roubles = a total of 25 roubles.
 
f.t.:
3 roubles adds up to 23(the servant reclaimed a third from his master out of his profit). The invalids have 1 rouble each. 23+1+1=25 in total.
Shit, you should go to the president's administration! He's tired of looking for those triplets! :))
 

I suggest adding the following set of gimmicks:

input int      max=3000;
input int      func=1;
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
  {
  Print("//-------------------------------//");
  switch(func)
    {
     case 0 : for(int k=0,m=1;     (k+=m+=k)<=max;    Print("m==",m,"; k==",k)); break;
     case 1 : for(int k=1,m=1;     (k*=m+=1)<=max;    Print("k==",k)); break;
     case 2 : for(int k=1,m=1;     (k+=m+=2)<=max;    Print("k==",k)); break;
     case 3 : for(int k=1,g=1,m=0; (k+=g+=m+=6)<=max; Print("k==",k)); break;
    }
  }

In principle, any perversion is accepted, but preferably a compact one.

Attached is a ready-made script. Before running it, try to guess the result of working with each of the parameters. This is the most interesting part.

Files:
 

I guess this topic is best suited to the task below?

How to pick up an MM for the strategy below:

Given:

We know exactly the loss - risk, as this is the size of the bet, and we can choose it any way from 0 and up to the size of the depo.

The potential profit for the current bet is also known, but it is not a constant. For each following bet the profit is unknown in advance - it can be anything between 70% and 10000% of the bet size.

The probability that the bet will win is approximately known for the current bet, but for the following bets is unknown - it can be anything between 0.5 and 1.

Necessary: to find an adequate MM.

The bottom line is that I wrote a prog for sports betting. If the betting size is constant the program gives positive mathematical expectation. But all attempts to select the MM did not lead to anything good - bad drawdowns.

Installation is in the attached file. I checked it with Avast for absence of viruses. But the extra time with other antiviruses do not interfere with rechecking. Distributed free of charge. If you have problems, click on "Help" > "Help" - there is a concrete example.


Any thoughts on how to solve this problem?

For the reference for those who will understand the programme: fair betting odds are inversely proportional to probability. That is, k = 1 / p, where p is the probability of winning the bet, and k is the bookmaker's odds. I.e. if, for example, we assume the probability of winning to be 0.5 (flipping the right coin), then the odds must be at least 2. 2 is a martingale, and more than 2 will give us a positive expectation.

Files:
setup.zip  66 kb
 
Elementary, Watson. You have to take advantage of probability.
 
TheXpert:
It's elementary, Watson. You have to use probability.
What do you mean? Well, the probability is used in the program itself to get positive expected payoff. But it's positive only when the bet size is a constant. In other cases, there is no guarantee that the deposit will increase, but the risk increases immensely.


At a constant rate, the depo growth is very low, because the exact probability is unknown - the statistical sample is small and the confidence intervals are wide. If we increase the sample, there will be non-stationarity and the statistics will go down the drain altogether - previous data will be refuted in the future. The thing is, if any sports team starts to lose, the coach tries to change both the tactics and the composition of the team. Clearly, he will do this gradually, because he will not send the entire core squad to the bench, but will try to replace only those who are clearly playing worse than necessary and spoiling the overall game. If the team is winning, of course the coach will not adjust the squad and tactics drastically, but no one is immune to injury. Therefore, on a short sample, the statistics in sport are more or less stationary, and on a long sample, they are unstable.

 
The day before yesterday, Peter was 17 years old. Next year he will be 20 years old. How can that be?
 
Integer:
The day before yesterday, Peter was 17 years old. Next year he'll be 20. How can that be?

The joke comes to mind:

Two men are walking through a cemetery. Nothing to do but look at the monuments...and suddenly - an inscription on one of the slabs: "...born in 1935, died in 1986, lived 3 years....". Wow! - ...my friends were amazed... They read the inscription on next monument: "...born 1965, died 2001, lived 6 years....". Something's not right. The guys decided to ask the cemetery keeper for clarification... Well the keeper says: "What's unclear! Girls, villas, cars, quid - that's what "Lived" means!"

The men looked at each other and one said to the other: "Vasya! When I die, write on the monument: Born dead...".
 
I know of at least two possible cases :)
Reason: