Questions tagged [multinomial]

The multinomial distribution provides a probability distribution over three or more possible outcomes. It generalizes the more fundamental binomial distribution (two outcomes).

In probability theory, the multinomial distribution generalizes the binomial distribution to three or more outcomes.

Suppose two chess players had played numerous games, from which we estimate that Player A would win with probability 0.40, Player B would win with probability 0.35, and the probability that the game ends in a draw is 0.25. The multinomial distribution can be used to answer questions like:

  1. If these two chess players played 12 games, what is the expected number of wins, losses, and draws for player A?
  2. If these two chess players play 3 games, what is the probability that A wins one, B, wins one, and they draw on the other?

Binary classification/prediction methods (such as logistic regression) can also be generalized for multinomial outcomes (i.e., three or more class labels). Multinomial logistic regression is also sometimes called a maximum entropy (MaxEnt) model.

421 questions
0
votes
1 answer

How to specify a priori correlation between samples drawn randomly from two multinomial distributions?

Consider the following game: in each trial, you are presented with x red and y blue dots. You have to decide whether there are more red than blue dots. For each trial, the minimum number of dots in a given color is 10, the maximum is 50. Red and…
user1363251
  • 421
  • 1
  • 11
  • 24
0
votes
1 answer

How to test the multicollinearity using r

I'am trying to do a multinomial logistic regression with categorical dependent variable using r, so before starting the logistic regression I want to check multicollinearity with all independents variables expressed as dichotomous and ordinal. so…
Asma
  • 51
  • 2
  • 5
0
votes
0 answers

Naive Bayes Classification: Understanding example correctly?

I am currently looking into the multinomial model for Naive Bayes classification, and have come across the following example: I think I understand everything, but I have developed the following reasoning I would like confirmed: For a given class…
0
votes
1 answer

multinomial regression error: 'relevel' only for factors

I have the following data: Class Batch Parity EB 0 2 2 842.8302684 0 2 3 1435.313822 0 2 3 615.32252 1 3 2 428.0919074 1 3 3 629.6284765 1 3 2 428.0919074 . . . . . . . . I am running the…
hieu
  • 135
  • 3
  • 11
0
votes
1 answer

Need help, I stuck when install (VGAM) and how to use mlogit. I don't understand from that pdf example

I need help for my problems. I have 2 problems. I can't install library (VGAM) on my RStudio. Have any idea for another regression logistic ordinal package or have solution for my problem? I Stuck for the first step when used mlogit. I have…
Yip
  • 1
  • 1
0
votes
0 answers

Julia: Multinomial Regression with time series lagged values

I need to do some multinomial regression in Julia. In R I get the following result: library(nnet) data <- read.table("Dropbox/scripts/timeseries.txt",header=TRUE) multinom(y~X1+X2,data) # weights: 12 (6 variable) initial value 10985.024274 iter …
bdeonovic
  • 4,130
  • 7
  • 40
  • 70
0
votes
1 answer

Why I get more coefficients than I had features using multinom() in R?

I have a data set containing about 20 samples and 4 features.enter image description here I wanted to create a model using multinom(). But this function returns about 50 coefficients with strange names. >model <- multinom(types ~ LD1+LD2+LD3+LD4,…
Mivanova
  • 3
  • 1
0
votes
1 answer

how to get the exact observations analyzed in multinom() in R, or how to make fitted() produce a fit on entire data including NAs

My question is similar to another older question "How to get the number of observations included in a model created using the function multinom in R?" but what I want to look for are the exact observations, not the number of observations, analyzed…
Jenny Shu
  • 47
  • 2
  • 4
  • 12
0
votes
1 answer

multinom() in R: can I use for prediction on other dataset?

I have run a multinom() model, then how can I use these model on other dataset? For example I want to fit this model to another dataset and generate predicted probabilities for that dataset, like mnrval() did in Matlab--- it takes the model…
Jenny Shu
  • 47
  • 2
  • 4
  • 12
0
votes
2 answers

How does multinom() treat NA values by default?

When I am running multinom(), say Y ~ X1 + X2 + X3, if for one particular row X1 is NA (i.e. missing), but Y, X2 and X3 all have a value, would this entire row be thrown out (like it does in SAS)? How are missing values treated in multinom()?
Jenny Shu
  • 47
  • 2
  • 4
  • 12
0
votes
0 answers

can I run multinomial logistic regression in R with data on SQL server?

I have a very large dataset on MS SQL server management studio. Now I want to run a multinomial logistic regression (call it MLR) on R using that dataset, but I cannot sqlFetch or sqlQuery the data first (because it is too large). Is it possible to…
0
votes
1 answer

h2o random forest calculating MSE for multinomial classification

Why is h2o.randomforest calculating MSE on Out of bag sample and while training for a multinomail classification problem? I have done binary classification also using h2o.randomforest, there it used to calculate AUC on out of bag sample and while…
user3664020
  • 2,980
  • 6
  • 24
  • 45
0
votes
0 answers

Why am I getting an error when trying to predict the results of a multinomial regression in R?

I am trying to perform a multinomial regression to estimate the impact of the oil price over an oil producer company's stock price direction. my dependent variable is "Up", "Down", or "Neutral" depending on the direction the price had given the…
Juan Trujillo
  • 55
  • 1
  • 2
  • 6
0
votes
1 answer

How can I pass a weight decay argument to mlogit()?

How can I specify weight decay in a model fit by the mlogit? The multinom() function of nnet allows you to specify weight decay for the model that is being fit, and mlogit uses this function behind the scenes to fit its models so I imagine that it…
Johan Larsson
  • 3,496
  • 18
  • 34
0
votes
1 answer

Trying to estimate Scale Multinomial logit model in R using gmnl package.

I am new to R, and I am trying to estimate a discrete choice model from my data. I got stuck in the process of estimating my model and would appreciate your helps. I am using 'gmnl' package to estimate the S-MNL (Scale Multinomial Logit). There are…
maryam
  • 1
  • 3