TU Wien:Statistik und Wahrscheinlichkeitstheorie UE (Levajkovic)/Übungen 2023W/HW03.1

Aus VoWi
Zur Navigation springen Zur Suche springen
Multiple-choice exams

Nik takes an exam in Statitstics and Probability Theory that contains 20 multiple-choice questions. Each question has four possible options and only one of the four options is correct. He knows the answer to ten questions, but he has no idea about the other ten questions so he chooses answers randomly. His score on the exam is the total number of answers he answered correctly.

(a) Find the probability mass function of .

(b) Compute the probability .

Dieses Beispiel ist als solved markiert. Ist dies falsch oder ungenau? Aktualisiere den Lösungsstatus (Details: Vorlage:Beispiel)


Lösungsvorschlag von Lessi[Bearbeiten | Quelltext bearbeiten]

--Lessi 2024-02-07T13:04:11Z

a)[Bearbeiten | Quelltext bearbeiten]

is the number of correct answers on the exam, with 10 being certainly correct and 10 chosen randomly with a probability of guessing correct being . Therefore . This means for the pm that we need to shift to accommodate for getting less than 10 correct answers being an impossible event:

val <- 0:20

p <- function(x) {
  dbinom(x - 10, 10, 1/4)
}

plot(p(val), type='h', xlab='correct questions', ylab='probability')


b)[Bearbeiten | Quelltext bearbeiten]

F <- function(x) {
  pbinom(x - 10, 10, 1/4)
}

plot(F(val), type='s', xlab='correct questions', ylab='probability')

# Probability of getting more than 16 correct answers
1 - F(15)
1 - pbinom(5, 10, 1/4) # checking with a "unshifted" distribution