<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://eqqon.com/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://eqqon.com/index.php?action=history&amp;feed=atom&amp;title=User%3AZelenka%2FStatistics%2Fexercises_25.05.2008</id>
		<title>User:Zelenka/Statistics/exercises 25.05.2008 - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://eqqon.com/index.php?action=history&amp;feed=atom&amp;title=User%3AZelenka%2FStatistics%2Fexercises_25.05.2008"/>
		<link rel="alternate" type="text/html" href="http://eqqon.com/index.php?title=User:Zelenka/Statistics/exercises_25.05.2008&amp;action=history"/>
		<updated>2026-04-10T00:13:31Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.16.0</generator>

	<entry>
		<id>http://eqqon.com/index.php?title=User:Zelenka/Statistics/exercises_25.05.2008&amp;diff=771&amp;oldid=prev</id>
		<title>Zelenka: /* 3. */</title>
		<link rel="alternate" type="text/html" href="http://eqqon.com/index.php?title=User:Zelenka/Statistics/exercises_25.05.2008&amp;diff=771&amp;oldid=prev"/>
				<updated>2008-05-24T22:17:28Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;3.&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 22:17, 24 May 2008&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;===&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;3.&lt;/del&gt;===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;===&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Abfrage von Tasten mit Fehler&lt;/ins&gt;===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;;Ist x1, . . . , xL eine Binärfolge der Länge L, so heißt die Teilfolge &amp;lt;math&amp;gt;x_{i+1}, . . . , x_{i+k}&amp;lt;/math&amp;gt; ein Lauf (engl. run) der Länge k, falls:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;;Ist x1, . . . , xL eine Binärfolge der Länge L, so heißt die Teilfolge &amp;lt;math&amp;gt;x_{i+1}, . . . , x_{i+k}&amp;lt;/math&amp;gt; ein Lauf (engl. run) der Länge k, falls:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;:(1) i = 0 oder &amp;lt;math&amp;gt;x_i \neq x_{i+1}&amp;lt;/math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;:(1) i = 0 oder &amp;lt;math&amp;gt;x_i \neq x_{i+1}&amp;lt;/math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikidb_eqqon_pub:diff:version:1.11a:oldid:770:newid:771 --&gt;
&lt;/table&gt;</summary>
		<author><name>Zelenka</name></author>	</entry>

	<entry>
		<id>http://eqqon.com/index.php?title=User:Zelenka/Statistics/exercises_25.05.2008&amp;diff=770&amp;oldid=prev</id>
		<title>Zelenka: New page: ===3.=== ;Ist x1, . . . , xL eine Binärfolge der Länge L, so heißt die Teilfolge &lt;math&gt;x_{i+1}, . . . , x_{i+k}&lt;/math&gt; ein Lauf (engl. run) der Länge k, falls: :(1) i = 0 oder &lt;math&gt;x_...</title>
		<link rel="alternate" type="text/html" href="http://eqqon.com/index.php?title=User:Zelenka/Statistics/exercises_25.05.2008&amp;diff=770&amp;oldid=prev"/>
				<updated>2008-05-24T22:16:48Z</updated>
		
		<summary type="html">&lt;p&gt;New page: ===3.=== ;Ist x1, . . . , xL eine Binärfolge der Länge L, so heißt die Teilfolge &amp;lt;math&amp;gt;x_{i+1}, . . . , x_{i+k}&amp;lt;/math&amp;gt; ein Lauf (engl. run) der Länge k, falls: :(1) i = 0 oder &amp;lt;math&amp;gt;x_...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===3.===&lt;br /&gt;
;Ist x1, . . . , xL eine Binärfolge der Länge L, so heißt die Teilfolge &amp;lt;math&amp;gt;x_{i+1}, . . . , x_{i+k}&amp;lt;/math&amp;gt; ein Lauf (engl. run) der Länge k, falls:&lt;br /&gt;
:(1) i = 0 oder &amp;lt;math&amp;gt;x_i \neq x_{i+1}&amp;lt;/math&amp;gt;&lt;br /&gt;
:(2) &amp;lt;math&amp;gt;x_{i+1} = ... = x_{i+k}&amp;lt;/math&amp;gt;&lt;br /&gt;
:(3) &amp;lt;math&amp;gt;i + k = L&amp;lt;/math&amp;gt; oder &amp;lt;math&amp;gt;x_{i+k} \neq x_{i+k+1}&amp;lt;/math&amp;gt;&lt;br /&gt;
Ist beispielsweise L = 10 und lautet die Binärfolge:&lt;br /&gt;
:::0 0 1 0 0 0 1 1 0 0&lt;br /&gt;
so gibt es 5 Läufe mit den Längen 2, 1, 3, 2, 2.&lt;br /&gt;
&lt;br /&gt;
Die Abfrage einer Tastatur ist manchmal fehlerhaft. Die Fehlerwahrscheinlichkeit ist Gleichförmig verteilt. Wie hoch ist die Wahrscheinlichkeit einer Fehlfunktion wenn man die Tastatur 2 mal abfragt und dabei das gleiche bitmuster aller 184 Tasten einlesen muss?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 #Bestimmung der Zahl der Läufe für Binärfolge x&lt;br /&gt;
 RunNumber &amp;lt;- function(x) {&lt;br /&gt;
 n &amp;lt;- length(x)&lt;br /&gt;
 z &amp;lt;- x&lt;br /&gt;
 z[n+1] &amp;lt;- ifelse(x[n]==0, 1, 0)&lt;br /&gt;
 y &amp;lt;- abs(diff(z))&lt;br /&gt;
 Index1 &amp;lt;- c(1:n)&lt;br /&gt;
 Index &amp;lt;- c(0,Index1[y==1])&lt;br /&gt;
 Number &amp;lt;- length(diff(Index))&lt;br /&gt;
 return(Number) }&lt;br /&gt;
 &lt;br /&gt;
 #Simulation&lt;br /&gt;
 N &amp;lt;- 500&lt;br /&gt;
 L &amp;lt;- 60&lt;br /&gt;
 x &amp;lt;- matrix(rbinom(N*L, 1, 1/2), nrow=N)&lt;br /&gt;
 NumberRuns &amp;lt;- apply(x, 1, RunNumber)&lt;br /&gt;
 &lt;br /&gt;
 #Häufigkeitstabelle&lt;br /&gt;
 tab1 &amp;lt;- table(NumberRuns)&lt;br /&gt;
 mr &amp;lt;- as.numeric(names(tab1))&lt;br /&gt;
 n1 &amp;lt;- min(mr)&lt;br /&gt;
 n2 &amp;lt;- max(mr)&lt;br /&gt;
 nk &amp;lt;- numeric(n2-n1+1)&lt;br /&gt;
 nk[mr-n1+1] &amp;lt;- tab1&lt;br /&gt;
 names(nk) &amp;lt;- n1:n2&lt;br /&gt;
 par(mfrow=c(2,1))&lt;br /&gt;
 &lt;br /&gt;
 #Stabdiagramm&lt;br /&gt;
 barplot(nk/N, axis.lty=1, space=1, xlab=&amp;quot;Anzahl der Läufe&amp;quot;,&lt;br /&gt;
 main=paste(&amp;quot;L = &amp;quot;, L, &amp;quot; Nsim = &amp;quot;, N), col=&amp;quot;orange2&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 #Summenkurve&lt;br /&gt;
 plot(ecdf(NumberRuns), verticals=TRUE, do.points=FALSE,&lt;br /&gt;
 xlab=&amp;quot;Anzahl der Läufe&amp;quot;, ylab=&amp;quot;Kum. rel. Häufigk.&amp;quot;,&lt;br /&gt;
 main=&amp;quot;Summenkurve&amp;quot;)&lt;br /&gt;
 par(mfrow=c(1,1))&lt;/div&gt;</summary>
		<author><name>Zelenka</name></author>	</entry>

	</feed>