<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://fginfo.tech-lab.ch/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://fginfo.tech-lab.ch/feed.php">
        <title>https://fginfo.ksbg.ch Fachgruppe Informatik der KSBG - lehrkraefte:snr:informatik:glf22:python:simulationen</title>
        <description></description>
        <link>https://fginfo.tech-lab.ch/</link>
        <image rdf:resource="https://fginfo.tech-lab.ch/lib/exe/fetch.php?media=wiki:dokuwiki.svg" />
       <dc:date>2026-04-05T13:53:51+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://fginfo.tech-lab.ch/doku.php?id=lehrkraefte:snr:informatik:glf22:python:simulationen:erwartungswerte-mathematisch&amp;rev=1674569832&amp;do=diff"/>
                <rdf:li rdf:resource="https://fginfo.tech-lab.ch/doku.php?id=lehrkraefte:snr:informatik:glf22:python:simulationen:ziegenproblem&amp;rev=1674569528&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://fginfo.tech-lab.ch/lib/exe/fetch.php?media=wiki:dokuwiki.svg">
        <title>https://fginfo.ksbg.ch Fachgruppe Informatik der KSBG</title>
        <link>https://fginfo.tech-lab.ch/</link>
        <url>https://fginfo.tech-lab.ch/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
    </image>
    <item rdf:about="https://fginfo.tech-lab.ch/doku.php?id=lehrkraefte:snr:informatik:glf22:python:simulationen:erwartungswerte-mathematisch&amp;rev=1674569832&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-01-24T14:17:12+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>erwartungswerte-mathematisch</title>
        <link>https://fginfo.tech-lab.ch/doku.php?id=lehrkraefte:snr:informatik:glf22:python:simulationen:erwartungswerte-mathematisch&amp;rev=1674569832&amp;do=diff</link>
        <description>Wie lange muss man im Durschnitt würfeln, bis zwei Sechser direkt hintereinander kommen?

Unsere Argumentation beruht auf dem folgenden Diagramm, das wir im Folgenden erklären.



Wir unterscheiden drei Zustände (im Diagramm eingerahmt):

	*  Zustand $\frac 56$$E$$F$$E$$F$$\frac 16$$F$$\frac 56$$E$$E$$$\frac 16 (1+F) + \frac 56 (1+E)$$$\frac 16$$(1+F)$$\frac 56$$(1+E)$$$E=\frac 16 (1+F) + \frac 56 (1+E)$$$\frac 16$$\frac 56$$E$$$F=\frac 16 (1+0) + \frac 56 (1+E)$$$$E=\frac 16 (1+F) + \frac 56 (1…</description>
    </item>
    <item rdf:about="https://fginfo.tech-lab.ch/doku.php?id=lehrkraefte:snr:informatik:glf22:python:simulationen:ziegenproblem&amp;rev=1674569528&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-01-24T14:12:08+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ziegenproblem</title>
        <link>https://fginfo.tech-lab.ch/doku.php?id=lehrkraefte:snr:informatik:glf22:python:simulationen:ziegenproblem&amp;rev=1674569528&amp;do=diff</link>
        <description>Simulation des Ziegenproblems

Das folgende Programm simuliert das Ziegenproblem bzw. genauer das “Monty-Hall-Standard-Problem” (siehe Abschnitt Weiteres).


from random import *
ANZAHL_SIMULATIONEN = 1000000
anzahl_gewinne_bei_wechselstrategie = 0
anzahl_gewinne_bei_verbleibstrategie = 0
for simulationsnummer in range(ANZAHL_SIMULATIONEN):
    auto = randrange(1, 4)
    kandidat = randrange(1, 4)
    if kandidat == auto:
        anzahl_gewinne_bei_verbleibstrategie = anzahl_gewinne_bei_verbleib…</description>
    </item>
</rdf:RDF>
