<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>bayes | Sebastian Sauer Academic</title><link>https://sebastiansauer.github.io/sebastiansaueracademic/tag/bayes/</link><atom:link href="https://sebastiansauer.github.io/sebastiansaueracademic/tag/bayes/index.xml" rel="self" type="application/rss+xml"/><description>bayes</description><generator>Wowchemy (https://wowchemy.com)</generator><language>en-us</language><lastBuildDate>Mon, 01 Jan 2024 00:00:00 +0000</lastBuildDate><image><url>https://sebastiansauer.github.io/sebastiansaueracademic/media/icon_hufe30330db5c3dae5647fd2ef1714014b_368463_512x512_fill_lanczos_center_3.png</url><title>bayes</title><link>https://sebastiansauer.github.io/sebastiansaueracademic/tag/bayes/</link></image><item><title>Bayes:Start</title><link>https://sebastiansauer.github.io/sebastiansaueracademic/ebooks/bayes-start/</link><pubDate>Mon, 01 Jan 2024 00:00:00 +0000</pubDate><guid>https://sebastiansauer.github.io/sebastiansaueracademic/ebooks/bayes-start/</guid><description>&lt;/br>
&lt;button onclick="window.location.href='https://sebastiansauer.github.io/bayes-start/#skript-schnell';">
Hier geht's zum Skript "Bayes: Start! Inferenzstatistik mit Bayes"
&lt;/button>
&lt;/br>
&lt;h2 id="abstract">Abstract&lt;/h2>
&lt;p>Bayes-Start ist ein frei verfügbarer Einführungskurs in die Bayes-Statistik. Ziel ist, die grundlegende Logik von Bayes-Inferenz zu vermitteln und zu zeigen, wie man mit linearen Modellen viele typische Forschungsfragen beantworten kann. Ein wichtiger Baustein betrifft kausale Überlegungen, also die Frage, wie man kausale Forschungsfragen statistisch umsetzt und beurteilt. Als Software wird R verwendet (R Core Team, 2019) ; für Bayes-Modellierung wird das R-Paket rstanarm verwendet (Goodrich, Gabry, Ali, and Brilleman, 2020). Inhaltlich wird zum Teil auf Richard McElreath’s hervorragenden Lehrbuch, Statistical Rethinking aufgebaut (McElreath, 2020). Außerdem stellt Gelman’s et al. neues, ebenfalls sehr gutes Lehrbuch Regression and other Stories (Gelman, Hill, and Vehtari, 2021) eine Grundlage für die Inhalte dieses Kurses dar. Beide Bücher sind als Lektüre zu empfehlen.&lt;/p></description></item><item><title>Statistik1</title><link>https://sebastiansauer.github.io/sebastiansaueracademic/ebooks/statistik1/</link><pubDate>Wed, 01 Mar 2023 00:00:00 +0000</pubDate><guid>https://sebastiansauer.github.io/sebastiansaueracademic/ebooks/statistik1/</guid><description> &lt;button onclick="window.location.href='https://statistik1.netlify.app/';">
Hier geht's zum Buch "Statistik1"
&lt;/button>
&lt;h2 id="was-lerne-ich-hier-und-wozu-ist-das-gut">Was lerne ich hier und wozu ist das gut?&lt;/h2>
&lt;h3 id="was-lerne-ich-hier">Was lerne ich hier?&lt;/h3>
&lt;p>Sie lernen die Grundlagen der Datenanalyse mit einem Schwerpunkt auf Vorhersage.
Anders gesagt: Sie lernen, wie man aus Daten Vorhersagen ableitet. Zum Beispiel: Kommt ein Student zu Ihnen und sagt &amp;ldquo;Ich habe 42 Stunden für die Klausur gelernt, welche Note kann ich in der Klausur erwarten?&amp;rdquo;.
Darauf Ihre Antwort: &amp;ldquo;Auf Basis meiner Daten und meines Modells müsstest du eine 2.7 schreiben!&amp;rdquo;. (Darauf dis Studenti: &amp;ldquo;Hpmf.&amp;rdquo;).
Außerdem lernen Sie, wie man die Güte einer Vorhersage auf Stichhaltigkeit prüft.
Denn Vorhersagen kann man ja in jeder Eckkneipe oder beim Wahrsager bekommen.
Wir wollen aber belastbare Vorhersagen und zumindest wissen,
wie gut die Vorhersagen bisher waren.&lt;/p>
&lt;h3 id="warum-ist-das-wichtig">Warum ist das wichtig?&lt;/h3>
&lt;p>Wir wollen nicht auf Leuten vertrauen, die behaupten, sie wüssten, was für uns richtig und gut ist. Wir wollen selber die Fakten prüfen können.&lt;/p>
&lt;h3 id="wozu-brauche-ich-das-im-job">Wozu brauche ich das im Job?&lt;/h3>
&lt;p>Datenanalyse spielt bereits heute in vielen Berufen eine Rolle. Tendenz stark zunehmend.&lt;/p>
&lt;h3 id="wozu-brauche-ich-das-im-weiterem-studium">Wozu brauche ich das im weiterem Studium?&lt;/h3>
&lt;p>In Forschungsarbeiten (wie in empirischen Forschungsprojekten, etwa in der Abschlussarbeit) ist es üblich, statistische Ergebnisse hinsichtlich quantitativ zu analysieren.&lt;/p></description></item><item><title>Start:Bayes!</title><link>https://sebastiansauer.github.io/sebastiansaueracademic/courseware/start-bayes/</link><pubDate>Sat, 01 Oct 2022 00:00:00 +0000</pubDate><guid>https://sebastiansauer.github.io/sebastiansaueracademic/courseware/start-bayes/</guid><description>&lt;/br>
&lt;button onclick="window.location.href='https://sebastiansauer.github.io/bayes-start/#skript-schnell/';">
Hier geht's zum Skript "Start: Bayes! Inferenzstatistik mit Bayes"
&lt;/button>
&lt;/br>
&lt;h2 id="abstract">Abstract&lt;/h2>
&lt;p>Bayes-Start ist ein frei verfügbarer Einführungskurs in die Bayes-Statistik. Ziel ist, die grundlegende Logik von Bayes-Inferenz zu vermitteln und zu zeigen, wie man mit linearen Modellen viele typische Forschungsfragen beantworten kann. Ein wichtiger Baustein betrifft kausale Überlegungen, also die Frage, wie man kausale Forschungsfragen statistisch umsetzt und beurteilt. Als Software wird R verwendet (R Core Team, 2019) ; für Bayes-Modellierung wird das R-Paket rstanarm verwendet (Goodrich, Gabry, Ali, and Brilleman, 2020). Inhaltlich wird zum Teil auf Richard McElreath’s hervorragenden Lehrbuch, Statistical Rethinking aufgebaut (McElreath, 2020). Außerdem stellt Gelman’s et al. neues, ebenfalls sehr gutes Lehrbuch Regression and other Stories (Gelman, Hill, and Vehtari, 2021) eine Grundlage für die Inhalte dieses Kurses dar. Beide Bücher sind als Lektüre zu empfehlen.&lt;/p></description></item><item><title>Stats Nutshell</title><link>https://sebastiansauer.github.io/sebastiansaueracademic/courseware/stats-nutshell/</link><pubDate>Mon, 01 Aug 2022 00:00:00 +0000</pubDate><guid>https://sebastiansauer.github.io/sebastiansaueracademic/courseware/stats-nutshell/</guid><description>&lt;/br>
&lt;button onclick="window.location.href='https://sebastiansauer.github.io/stats-nutshell/';">
Statistics in a nutshell: Introduction to Statistical Modelling
&lt;/button>
&lt;/br>
&lt;p>Analyzing research data can broadly be classified in three parts: explorative data analysis, modeling (including inference), and visualization. Either part is pivotal in its own right, but it can be argued that modeling is at the core of the scientific endeavor. However, in practice, modeling, visualization, and data exploration is heavily intertwined, so that three parts may be recognized (as individual entities) but not usefully separated from each other. This idea provides the rationale of this course: Data exploration, data visualization and data modeling is discussed as an integrated framework.&lt;/p>
&lt;p>The focus is on practical data analysis; theoretical concepts are, where mentioned, second class citizens due to time constraints and the didactic aims of the course.&lt;/p>
&lt;p>&lt;a href="https://sebastiansauer.github.io/stats-nutshell/" target="_blank" rel="noopener">stats-nutshell&lt;/a>&lt;/p></description></item><item><title>What are the predictors of the party success of the Alternative fuer Deutschland (AfD) in the 2021 German federal elections?</title><link>https://sebastiansauer.github.io/sebastiansaueracademic/projects/afd-2021/</link><pubDate>Tue, 01 Mar 2022 00:00:00 +0000</pubDate><guid>https://sebastiansauer.github.io/sebastiansaueracademic/projects/afd-2021/</guid><description>&lt;h1 id="what-factors-fuel-the-afd-election-success">What factors fuel the AfD election success?&lt;/h1>
&lt;p>The party “Alternative fuer Deutschland” (AfD) is a right-wing to far-right political party in Germany. Founded in 2013, it that has managed to gain seats in all states parliaments as well as in the federal parliament within a short period of time. The AfD became the third-largest party in Germany after the 2017 federal elections. Such striking success is quite unique in German post-war politics. Consequently, AfD’s upsurge has sparked an intensive debate as to the why’s and hows of this success. Some explanations of AfD’s electoral success have been brought forward by scholars but also some “folk theories” circulate. In this study, we test some folk theories highlighting potential causes of AfD electoral success such as unemployment, migration rate, age, and east/west cultural diﬀerences. Our data are based on the German federal election results (2017), alongside with structural data on each German electoral district (n=299). Our analysis is novel insofar as a more rigorous Bayesian multilevel modeling is applied.&lt;/p>
&lt;h1 id="methods-bayesian-multilevel-regression">Methods: Bayesian multilevel regression&lt;/h1>
&lt;p>Sample. All data were obtained from the Bundeswahlleiter (2017). There were no missing values, and we conﬁrm that the data were not transformed in any other way than reported here. z-Values were used as model inputs.&lt;/p>
&lt;p>Hypotheses. Three factors were hypothesized to exert an eﬀect on the AfD votes: a) unemployment rate (positive), b) foreigner rate (positive), and c) East Germany (positive). All eﬀects are assumed linear.&lt;/p>
&lt;p>Design. The study is based on a cross-sectional, observational design thereby precluding strong causal conclusions. Predictors were selected according to widely circulating folk theories of AfD success.&lt;/p>
&lt;p>Analysis. Stan was used via the R packages rstan and rethinking (McElreath, 2017). For model estimation, Hamiltonian Markov Chain Monte Carlo (MCMC) with 2000 iterations, 2 chains, 1/2 burn-in time, was used. Information criteria (WAIC) served for model comparison. In an explorative matter, we included federal state as predictor and compared the model variations.&lt;/p>
&lt;h1 id="results-limited-support-for-proposed-model">Results: Limited support for proposed model&lt;/h1>
&lt;p>Interestingly, neither immigration (foreigner) rate nor unemployment rate played an important role. East Germany proved to be a more impactful predictor. However, federal state came out as the strongest predictor of AfD voting success. In sum, the multi level model state combined state, foreigner rate, and unemployment rate turned out to be best in class (cf. Table 1, model m15_stan). Figure 6 compares the (absolute) prediction errors between all models tested. The trace plot of the best model supported convergence of the model (not depicted). Figure 7 shows the mass intervals for the main coeﬃcients of the best model. A comparison between estimated and observed AfD votes per electoral district is shown in Figure 8.&lt;/p>
&lt;h1 id="conclusion-unknown-role-of-state-aspects">Conclusion: Unknown role of State aspects&lt;/h1>
&lt;p>It can only be speculated as to why the state played a pivotal role in these models. A state can be seen as a bundle of shared cultural values, local socioeconomic factors, the impact of the aging society, or the inﬂuence of local politicians, to name a few. To be clear, the present model is simplistic. It remains unknown which (causally) relevant factors have been missed out. Sadly, the ﬁeld lacks strong theories that explain the pathways of voting behavior, particularly for the rise of (right-wing) populist parties. Given the importance of political liberty, and in the light of the experiences (and horrors) of populism in the 20th century Europe, it remains a duty to shed light on the whys and hows of of societal and electoral will articulation.&lt;/p>
&lt;h1 id="further-work">Further work&lt;/h1>
&lt;p>Also check-out this &lt;a href="https://github.com/sebastiansauer/afd-personality" target="_blank" rel="noopener">related work on the possible impact of personality and voting for the AfD&lt;/a>.&lt;/p></description></item><item><title>Xaringan Template for the FOM University</title><link>https://sebastiansauer.github.io/sebastiansaueracademic/projects/xafom/</link><pubDate>Tue, 01 Mar 2022 00:00:00 +0000</pubDate><guid>https://sebastiansauer.github.io/sebastiansaueracademic/projects/xafom/</guid><description/></item><item><title>Vorhersagemodellierung (2021)</title><link>https://sebastiansauer.github.io/sebastiansaueracademic/courseware/qm1/</link><pubDate>Mon, 01 Mar 2021 00:00:00 +0000</pubDate><guid>https://sebastiansauer.github.io/sebastiansaueracademic/courseware/qm1/</guid><description>&lt;p>In diesem Modul lernen Sie das Handwerk der Prognose:
Auf Basis von Fakten (Daten) den (noch unbekannten) Wert einer Zielvariablen vorherzusagen.
Zum Beispiel wieviel Umsatz von einem Kunden mit einem bestimmten Profil im Schnitt zu erwarten ist.
Damit lernen Sie die Grundkompetenzen zum Berufsbild Data Scientist – ein angesagtes Berufsbild unserer Zeit.
Außerdem lernen Sie etwas Handwerkszeug der (quantitativen) Forschung;
der überwältigend große Teil der Forschung basiert auf Ideen, von denen Sie ein paar in diesem Kurs lernen.&lt;/p></description></item><item><title>Predictors of AfD party success</title><link>https://sebastiansauer.github.io/sebastiansaueracademic/talks/populism2/</link><pubDate>Sat, 01 Sep 2018 00:00:00 +0000</pubDate><guid>https://sebastiansauer.github.io/sebastiansaueracademic/talks/populism2/</guid><description>&lt;h2 id="abstract">Abstract&lt;/h2>
&lt;p>The party “Alternative fuer Deutschland” (AfD) is a right-wing to far-right political party in Germany. Founded in 2013, it that has managed to gain seats in all states parliaments as well as in the federal parliament within a short period of time. The AfD became the third-largest party in Germany after the 2017 federal elections. Such striking success is quite unique in German post-war politics. Consequently, AfD’s upsurge has sparked an intensive debate as to the why’s and hows of this success. Some explanations of AfD’s electoral success have been brought forward by scholars but also some “folk theories” circulate. In this study, we test some folk theories highlighting potential causes of AfD electoral success such as unemployment, migration rate, age, and east/west cultural diﬀerences. Our data are based on the German federal election results (2017), alongside with structural data on each German electoral district (n=299). Our analysis is novel insofar as a more rigorous Bayesian multilevel modeling is applied.&lt;/p></description></item></channel></rss>