<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:base="https://nickler.ninja/">
  <title>Category: R | nickler&#39;s</title>
  <link href="https://nickler.ninja/categories/r/atom.xml" rel="self"/>
  <link href="https://nickler.ninja/"/>
  <updated>2013-10-14T23:35:00+00:00</updated>
  <id>https://jonasnick.github.io/</id>
  <author>
    <name>Jonas Nick</name>
  </author>
  <generator uri="https://www.getzola.org/">Zola</generator>
  <entry>
    <title type="html">Reading Noun-Noun Compounds</title>
    <link href="https://nickler.ninja/blog/2013/10/14/reading-noun-noun-compounds/"/>
    <updated>2013-10-14T23:35:00+00:00</updated>
    <id>https://jonasnick.github.io/blog/2013/10/14/reading-noun-noun-compounds</id>
    <content type="html">&lt;h3 id=&quot;early-influences-of-compound-frequency-and-semantic-transparency&quot;&gt;Early Influences of Compound Frequency and Semantic Transparency&lt;/h3&gt;
&lt;p&gt;My bachelor thesis in Cognitive Science.
Unfortunately, I am currently not allowed to release the data nor the analysis scripts,
because the dataset is still under active research.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Abstract&lt;/em&gt;:
This thesis evaluates psycholinguistic theories about the cognitive processing of
words. Consequently, the time-course of compound reading is analyzed using
generalized additive models in a dataset of eye movements. The theories to be
contrasted are sublexical (Taft and Forster, 1975), supralexical (Giraudo and
Grainger, 2001) vs. dual route processing (Schreuder and Baayen, 1995) and
form-then-meaning (e.g. Rastle and Davis, 2008) vs. form-and-meaning (e.g.
Feldman et al., 2009) processing.&lt;/p&gt;
&lt;p&gt;As the goal is to find the best model given various predictors, some general
mechanisms of eye movements will be demonstrated, e.g. the position
in the line has substantial effects, single fixations last longer, are on shorter
words, more in the center of the word and influenced differently by frequency
measures.&lt;/p&gt;
&lt;p&gt;Inspired by Kuperman et al. (2009) it is shown that already the early eye
fixations on words are guided by first constituent and compound frequency,
providing evidence for parallel dual route models.&lt;/p&gt;
&lt;p&gt;Similar to Baayen et al. (2013), Latent Semantic Analysis (LSA) similarity
scores (Landauer and Dumais, 1997) permit investigating the time point of
semantic processing. The effect of LSA similarity not only shows up in the
earliest word fixations, but the data reveals that semantics plays a role even
before a word is fixated. In particular, the fixation position in the word is
more to the right, when the semantic transparency, i.e. the similarity between
compound and second constituent is high. This evidence of parafoveal semantic
processing challenges opposing findings obtained with the eye-contingent
boundary paradigm (Rayner et al., 1986). In the framework of naive
discriminative learning (Baayen et al., 2011), the effect of transparency on fixation
position reflects optimization of the landing position for accessing the orthographic
information that is most discriminative for the compound.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Keywords&lt;/em&gt;:
reading, eye-movements, compounds, semantic similarity, morphological
processing, generalized additive model&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;/papers/readingCompounds.pdf&quot;&gt;&lt;center&gt;&lt;strong&gt;Read PDF&lt;/strong&gt;&lt;/center&gt;&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title type="html">Influence of Reputation on Gricean Maxims</title>
    <link href="https://nickler.ninja/blog/2013/10/14/influence-of-reputation-on-gricean-maxims/"/>
    <updated>2013-10-14T01:04:00+00:00</updated>
    <id>https://jonasnick.github.io/blog/2013/10/14/influence-of-reputation-on-gricean-maxims</id>
    <content type="html">&lt;p&gt;As part of the course “Game Theory and Pragmatics” by &lt;a rel=&quot;external&quot; href=&quot;http://www.sfs.uni-tuebingen.de/~jquinley/&quot;&gt;Jason Quinley&lt;/a&gt; at the &lt;a rel=&quot;external&quot; href=&quot;http://www.sfs.uni-tuebingen.de/en/chairs.html&quot;&gt;Institute of Linguistics&lt;/a&gt;, I wanted to explore the influence of reputation on obeying the Gricean Maxims using data from the Q&amp;amp;A website Stackoverflow.&lt;/p&gt;
&lt;p&gt;Pragmatics is a subfield in linguistics, defined as “dealing with the origins, uses, and effects of signs within the total behavior of the interpreters of signs” (&lt;a rel=&quot;external&quot; href=&quot;http://psycnet.apa.org/psycinfo/1946-02822-000&quot;&gt;Morris, 1946&lt;/a&gt;).
Pragmatics tries to explain why a simple sentence like “It’s raining.” has a lot of different interpretations, for example(&lt;a rel=&quot;external&quot; href=&quot;http://staff.science.uva.nl/~mfranke/Papers/Franke_PhD_thesis.pdf&quot;&gt;Franke, 2009&lt;/a&gt;):&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The speaker advises we should take an umbrella.&lt;/li&gt;
&lt;li&gt;The speaker declares the picnic cancelled.&lt;/li&gt;
&lt;li&gt;The speaker is sick of living in amsterdam.&lt;/li&gt;
&lt;/ul&gt;
&lt;span id=&quot;continue-reading&quot;&gt;&lt;/span&gt;
&lt;p&gt;Herbert Grice introduced certain assumptions (&lt;a rel=&quot;external&quot; href=&quot;http://books.google.ch/books?id=73zw8IG7mtcC&amp;amp;lpg=PA270&amp;amp;ots=b59dMg5U5W&amp;amp;dq=grice%20logic%20and%20conversation&amp;amp;lr&amp;amp;pg=PA270#v=onepage&amp;amp;q=grice%20logic%20and%20conversation&amp;amp;f=false&quot;&gt;Grice, 1975&lt;/a&gt;) that people rely on when making pragmatic inferences in normal circumstances. He formulated the &lt;em&gt;Cooperative Principle&lt;/em&gt;: “Make your contribution such as its required, at the stage at which it occurs, by the accepted purpose or direction of the talk exchange in which your engaged.”. Using this principle, he derived four &lt;em&gt;Maxims of Conversation&lt;/em&gt;, presented as guidelines:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Maxim of Quality: Do not say what you believe to be false. Do not say that for which you lack evidance.&lt;/li&gt;
&lt;li&gt;Maxim of Quantity: Make your contribution as informative as is required for the current purpose of the exchange.&lt;/li&gt;
&lt;li&gt;Maxim of Relation: Be relevant.&lt;/li&gt;
&lt;li&gt;Maxim of Manner: Avoid ambiguity. Be brief and orderly.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Grice showed that hearers can systematically interpret utterances and infer additional information that goes beyond the semantic meaning of the uttered sentence, based on the assumption that the speaker obeys the Maxims.&lt;/p&gt;
&lt;p&gt;The data for studying the influence of reputation on the maxims stems from the question and answer website &lt;a rel=&quot;external&quot; href=&quot;https://stackoverflow.com&quot;&gt;Stackoverflow&lt;/a&gt; (SO).
Users of the site pose programming related ques tions which others try to answer. They are encouraged to vote on the usefulness
of a question or an answer, thereby directly affecting others reputation score.
Because SO is collaboratively edited website, reputation directly determines the
privileges of a user, ranging from voting down and editing to voting on closing
or deleting questions and answers. Thus, reputation on SO is among other thing
a measure of how much the community trusts a user.
Stackoverflow provides &lt;a rel=&quot;external&quot; href=&quot;http://blog.stackoverflow.com/2009/06/stack-overflow-creative-commons-data-dump/&quot;&gt;monthly data dumps&lt;/a&gt;.&lt;/p&gt;
&lt;div class=&quot;text-image&quot;&gt;
&lt;img src=&quot;/InfluenceRepGrice/analyseDataset-reputationDensityPlain.png&quot;&gt;
&lt;div&gt;Figure 1&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;In Figure 1 we see that there are a lot of users with low reputation, higher reputation
is getting more and more uncommon. The dashed line represents the mean.
This can be explained in part by the fact that users start out with a reputation score of one.
It looks like the distribution is following a power law, which is strengthened by Figure 2 showing that the distribution is
approximately log-normal, when users with reputation scores equal to one are excluded.&lt;/p&gt;
&lt;div class=&quot;text-image&quot;&gt;
&lt;img src=&quot;/InfluenceRepGrice/analyseDataset-reputationDensityLog.png&quot;&gt;
&lt;div&gt;Figure 2&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;In the following we will measure the effect of reputation by focussing on whether a question was closed or left open.
This classification task was posted on &lt;a rel=&quot;external&quot; href=&quot;http://www.kaggle.com/c/predict-closed-questions-on-stack-overflow&quot;&gt;kaggle&lt;/a&gt;.&lt;/p&gt;
&lt;div class=&quot;text-image&quot;&gt;
&lt;img src=&quot;/InfluenceRepGrice/analyseDataset-reputationBoxplot.png&quot;&gt;
&lt;div&gt;Figure 3&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;When investigating the density of reputations given the question was closed or left open
we can see that closed questions are posed mainly by users with low reputation
(Figure 3). One interpretation is that a user with low reputation belongs
to one of two different user categories, whose members have an incentive to
choosing low effort. Those are users who have low reputation because they are
not trustful and new users who discount the future immensely because they have
a single specific question.
The inverse argument, that questions posed by users with higher reputation
have a lower probability of ending up closed is strengthened
using a logistic regression model with reputation being the only predicting variable.
This model was estimated using a dataset of 50% closed questions, whereas normally about 6% of questions end up closed.
The decision boundary is where the model estimates a 50%
probability of a closed question – it lies at a reputation of 491.
The result is that reputation is a significant influence and this model alone has an accuracy of 59.44% on test data.&lt;/p&gt;
&lt;p&gt;When closing a question a moderator specifies a &lt;a rel=&quot;external&quot; href=&quot;http://stackoverflow.com/faq#close&quot;&gt;reason&lt;/a&gt; for doing so, namely off topic, not constructive, not a real question, or too localized.
&lt;strong&gt;Interestingly, there seems to be a relation between the Gricean Maxims and the reasons for closing a question.&lt;/strong&gt;
Questions labeled &lt;em&gt;off topic&lt;/em&gt; (not related to programming) and &lt;em&gt;too localized&lt;/em&gt;
(unlikely to help future visitors) clearly violate the maxim of relevance. &lt;em&gt;Not a
real question&lt;/em&gt; are those that are ambiguous, vague, incomplete, overly broad, or
rhetorical, hence the maxims of manner and quantity are both violated.
The maxim of quality is violated by questions labeled &lt;em&gt;not constructive&lt;/em&gt; because they are not supported by facts.
Rather, it would solicit debate, since there is no true answer.&lt;/p&gt;
&lt;div class=&quot;text-image&quot;&gt;
&lt;img src=&quot;/InfluenceRepGrice/analyseDataset-reputationMaximsDensity.png&quot;&gt;
&lt;div&gt;Figure 4&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Figure 4 reveals that reputation influences which maxims are violated.
Most questions that are incomplete are posed by low reputation users, while
controversial questions are posed by high reputation users.
In other words, violations of the maxim of quality are more likely from users with high reputation,
whereas the opposite is true for the maxim of quantity and manner.
Not shown is that questions that are labeled &lt;em&gt;too localized&lt;/em&gt; are in a similar reputation range like &lt;em&gt;not a real question&lt;/em&gt;,
and &lt;em&gt;off topic&lt;/em&gt; questions do not differ much from open questions.&lt;/p&gt;
&lt;p&gt;In conclusion, even though we trust high reputation people, they are not precise about truth.
This is by no means a bad thing, as long as we take this characteristic into account when interpreting their intent.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;a rel=&quot;external&quot; href=&quot;https://github.com/jonasnick/Gricean-Classifier&quot;&gt;Code of the analysis&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title type="html">Regressionsmodelle und Parameterschätzverfahren</title>
    <link href="https://nickler.ninja/blog/2013/03/15/regressionsmodelle-und-parameterschatzverfahren/"/>
    <updated>2013-03-15T17:26:00+00:00</updated>
    <id>https://jonasnick.github.io/blog/2013/03/15/regressionsmodelle-und-parameterschatzverfahren</id>
    <content type="html">&lt;p&gt;&lt;img src=&quot;/images/regressionPresentation-linearFit.png&quot; width=&quot;500&quot;&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;/papers/regression.pdf&quot;&gt;Eine Einführung&lt;/a&gt;, die als Ausarbeitung für das Seminar “Maschinelles Lernen” an der Universität Tübingen entstanden ist. Die Grundlagen linearer, nichtlinearer, logistischer und Bayes Regression werden behandelt, sowie Verfahren zur Schätzung der Modellparameter aus statistischen Annahmen vorgestellt.
Anschließend wird die logistische Regression auf den Titanic Datensatz angewandt und unter anderem gezeigt, dass das Motto “Frauen und Kinder zuerst” bei der Katastrophe zutraf.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Every plot is produced using the open source statistic software &lt;a rel=&quot;external&quot; href=&quot;http://www.r-project.org/&quot;&gt;R&lt;/a&gt; inside the $\LaTeX$ file (Sweave). Code is &lt;a rel=&quot;external&quot; href=&quot;https://github.com/jonasnick/regression/blob/master/ausarbeitung/ausarbeitung.Rnw&quot;&gt;here&lt;/a&gt;.&lt;/strong&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Charakteristisch für überwachtes maschinelles Lernen, zu der auch die Regression gehört, ist das Beschreiben der Beziehung von Zielvariable und erklärender Variable aus vorliegenden Daten, also Realisierungen von Zufallsvariablen.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;Das Regressionsmodell stellt $y$ durch die Summe einer Hypothese von $x$ und einem Fehlerterm $\epsilon$ dar.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;$$
y = h(x) + \epsilon
$$&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;a href=&quot;/papers/regression.pdf&quot;&gt;&lt;center&gt;&lt;strong&gt;PDF weiterlesen&lt;/strong&gt;&lt;/center&gt;&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
</feed>
