log-in-p

Published

July 14, 2026

library(tidyverse)

Question

Rechnen Sie von Logits in Inv-Logits um!

Hinweise:

  • Runden Sie auf zwei Dezimalstellen.
  • Orientieren Sie sich am Vorgehen aus dem Unterricht.
logits <- -10:10
logits_sample <- sample(logits, 3)

Questionlist

  • 5
  • -8
  • 3

Solution

Die Umrechnungsformel lautet:

\[p = \frac{e^x}{1+e^x}\]

Beispiel für \(x=1\):

e <- 2.7178  # Eulersche Zahl, gerundet
(e^1) / ((1+e^1))
[1] 0.7310237

Oder man nutzt die “fertige” Funktion zum Umrechnen:

invlogit <- plogis

invlogit(1)
[1] 0.7310586
sol_a <- logits_sample[1] %>% invlogit() %>% round(2)
sol_b <- logits_sample[2] %>% invlogit() %>% round(2)
sol_c <- logits_sample[3] %>% invlogit() %>% round(2)

Aufgabenname: log-in-p

Solutionlist

  • 0.99
  • 0
  • 0.95

Meta-information

extype: cloze expoints: 1 exsolution: 0.99|0|0.95 exclozetype: num|num|num exname: log-in-p extol: 0.02