473,396 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Problem Wahrscheinlichkeitsrechnung bei Programmierung Fussballmanager

Hi,

ich programmiere gerade zum Spaß und zum Lernen von C++ eine recht simple
Simulation eines Fussballspiels.

Die Logik arbeitet momentan so:

[TPS] = Konstanter Schnittwert Tore/Spiel

jede Minute fällt mit [TPS]/90 Wahrscheinlichkeit ein Tor.
Dieses Tor wird mit x Wahrscheinlichkeit Team 1 und mit 1-x
Wahrscheinlichkeit Team 2 zugesprochen.

Momentan 50:50 für beide Teams.

Ich würde jetzt gerne eine Miteinberechnung eines Wertes für Teamstärke in
die Logik mit einbauen.

Ich habe da bereits einige Ideen jedoch würde ich diese gern auch
mathematisch überprüfen können nur ist dafür mein Wissen in der
Wahrscheinlichkeitsrechnung nicht mehr wirklich gut genug.

Vielleicht kann mir jemand helfen und mir eine Formel nennen, und wenn
möglich auch erklären, mit der ich folgendes berechnen könnte:

Auf der Basis des oben genannten Systems, also TPS/90% ein Tor pro Minute X%
an Team1 100%-x% an Team2.
Mit welcher Wahrscheinlichkeit gewinnt nun Team1, mit welcher Team2 und mit
welcher wird Unentschieden gespielt.
Und wie ändert sich diese Verteilung bei änderung von X

Einen ersten Ansatz den ich habe, der aber scheinbar falsch ist:

Wahrscheinlichkeit dafür dass Team1 genau zwei Tore schießt und gewinnt:

X = Wahrscheinlichkeit TorFürTeam1/Minute (hier 2,855/90 * 50% = 0,01585)
Y = Wahrscheinlichkeit KeinTor/Minute (hier 1-(X+Z) = 0,9682778)
Z = Wahrscheinlichkeit TorFürTeam2/Minute(hier 2,855/90 * (100%-50%) =
0,01585)

In 2 von 90 Minuten muß Team1 ein Tor schießen

=> X^2

In 87 von 90 Minuten darf kein Tor fallen, da sonst Team1 mehr als zwei Tore
hat oder nicht mehr gewinnt

=> Y^87

In der übrigen 1 von 90 Minuten darf ein Tor für Team2 fallen oder keins
Fallen, solange keins mehr für Team1 fällt
was wieder die genau zwei Tore überschreiten würde

=> Z^1
Gesamtwahrscheinlichkeit für Sieg mit genau 2 Toren = X^2 * Y^87 * Z^1

Da muß was dran falsch sein, da mir die Wahrscheinlichkeit die dabei
rauskommt um einiges zu niedrig erscheint.

(hier 0,09%)
Wäre schön wenn mir jemand sagen könnte was an dem Ansatz falsch ist und am
besten gleich ne Formel für das gesamte Problem aufzeigt und bisschen
erklärt.

Bevor die Frage kommt.. nein ich studiere nicht, das ist ein privates
Projekt zum Spaß.

Danke

Aug 4 '05 #1
1 3370
Andreas Schmitt sade:
Hi,


Stellen Sie Ihre Frage in diesem deutschen newsgroup anstatt.

de.comp.lang.iso-c++

Tobias
--
IMPORTANT: The contents of this email and attachments are confidential
and may be subject to legal privilege and/or protected by copyright.
Copying or communicating any part of it to others is prohibited and may
be unlawful.
Aug 4 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Bruce Davis | last post by:
I'm having a problem on windows (both 2000 and XP) with a multi-threaded tkinter gui application. The problem appears to be a deadlock condition when a child thread pops up a Pmw dialog window in...
11
by: Kostatus | last post by:
I have a virtual function in a base class, which is then overwritten by a function of the same name in a publically derived class. When I call the function using a pointer to the derived class...
0
by: Refky Wahib | last post by:
Hi I need Technical Support I finished a Great project using .Net and SQL Server and .Net Mobile Control My Business case is to implement this Program to accept about 1 Million concurrent...
9
by: Sudesh Sawant | last post by:
Hello, We have an application which communicates using remoting. There is a server which is a Windows Service. The server exposes an object which is a singleton. The client is a Web Application...
117
by: Peter Olcott | last post by:
www.halting-problem.com
17
by: Jon Slaughter | last post by:
I'm having a little trouble understanding what the slicing problem is. In B.S.'s C++ PL3rdEd he says "Becayse the Employee copy functions do not know anything about Managers, only the Employee...
0
by: James Griffiths | last post by:
Here is a report I've written about a printing problem that is being experienced by a particular company for whom I had developed a A97 system. After upgrading to Win XP and AXP, some printing...
18
by: Ian Stanley | last post by:
Hi, Continuing my strcat segmentation fault posting- I have a problem which occurs when appending two sting literals using strcat. I have tried to fix it by writing my own function that does the...
8
by: rdrink | last post by:
I am just getting into pysqlite (with a fair amount of Python and MySQL experience behind me) and have coded a simple test case to try to get the hang of things... yet have run into a 'stock...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.