instruction stringlengths 9 38.7k |
|---|
I have a dataset where there are 100 features for a each data point, along with a "year" class ranging from 1965 to 2010. I have 1000 data points for each "year" class. I want to cluster the data point based on the 100 features, not including the "year" associated with it, but I want the year class to act as rules for ... |
So I am doing a project where I have to find a method that uses a lot of both categorical and numerical variables collected from surveys to predict a child's "discretized" GPA values.
For example, the x-variables include yes/no/don't know responses to questions such as "I often get nervous about taking tests", and nume... |
Suppose we have the following causal relationships (I put $=$ but they can be $\leftarrow$ for causality).
$$\tag{1}
Z=\alpha_0 + \alpha_1 c + \epsilon_z
$$
$$\tag{2}X = \beta_0 + \beta_1 \sqrt[3]{Z} + \epsilon_x$$
$$\tag{3}
Y = \gamma_0 + \gamma_1 X + c
$$
with $\epsilon_z,\epsilon_x,c$ all independent of eachother an... |
I have longitudinal data on several countries, looking at GDP and CO2 Emissions. In ggplot2, it is easy to make the software do something HLM-ish by plotting relationships separately for every country:
ggplot(dat, aes(x=CO2.Emissions, y=GDP, color=as.factor(Country))) +
geom_point(shape=20) +
geom_smooth(meth... |
I would like to calculate the following expectation:
$$E \left[\sin(\pi U )\sum_{k=1}^\infty \frac {1}{(2k+U)(2k+1+U)}\right]$$
where $U$ is uniformly distributed on the interval $[0,1]$.
I want to show that it is equal to:
$ \int_{1}^{\infty}\frac{\sin(2\pi x)}{x}dx $
|
Given an i.i.d. sequence $(\theta_{n}^{i})_{n,i\in\mathbb{N}}$ with binomial distribution $\mathcal{B}_{3,\frac{1}{3}}$ we define the Markov Chain
$$X_{n+1}:= \sum_{i=0}^{X_{n}}\theta_{n}^{i}\:\:\: \mbox{mod }5.$$
Question: Calculate the transition matrix.
Motivation of the question: In stochastic processes it is very... |
Let $X$, $Y$ be two independent random variables from $U(0,1)$. Then find $P[Y>(X-1/2)^2]$.
I initially tried drawing the figure but that seemed complicated. I then took expectation on both sides and got $P[E(Y)>V(X)]$. Am I right?
|
I am continuing the prepare for an exam by reviewing handouts from an old statistics course I took. The handout came with a set of solutions prepared by the instructor, but I suspect that one of the answers is wrong. If the answer the instructor provided isn't wrong, then I must be missing something, so I'd like to a... |
I'm trying to solve a problem for my data structures class and am having problem computing the expectation for this scenario. I have wrote the question to be as independed from CS as possible
I have a two tables $t_1$, $t_2$ each of size $N/2$ cells. Suppose I have two truely random functions $h_1$ that maps keys to ra... |
How one can prove that Objective Function of Maximum Margin Classifier(MMC) is Convex in LP or QP?
I've searched through the internet where derivation of objective function is provided and it says we know that f is convex but how it is convex? like in this link (http://svr-www.eng.cam.ac.uk/~kkc21/thesis_main/node12.ht... |
I have imbalanced dataset and I want to perform undersampling. I have 2000 instances out of which 150 are positive and 1850 are negative. I have performed undersampling i.e., I have randomly selected 150 -ve instances. Now, I have total 300 instances. After applying machine learning classifiers on these 300 instances... |
I have this data set.
I have 4 individuos, Y binary dependent variable.
I want calculate (prediction) the probability of sale of the car d (?%), in the years 2001, 2002, 2003.
The variables macroeconomics is for each city, but for some the values it is the same, I want than the model capture this relation and can pred... |
I am trying to find the posterior mode of a log likelihood in order to implement maximum a posteriori. The parameter I am trying to estimate is actually a vector. I can find the first and second derivative analytically.
Now when I come to implement the Newton-Raphson scheme, the Hessian is not positive definite, and th... |
Running a linear mixed effects model in R (lme4) using "lmer" function. Missing values are coded as "NA". Missing values are from the DV and some predictor variables also. By default how are these missing data treated when I run the model?
|
I'm interpreting the coefficients of a regression with all categorical variables and all but one make sense, in that I was expecting the association/direction from my descriptive statistics. I know that the regression controls for other variables, but one coefficient makes no sense - in other words the opposite to what... |
This might be a silly question at first nut nonetheless a valid one.
Is the exponential distribution with parameter $\theta$ actually a subexponential distribution. For an exponential pdf
$$ f_X(x) = \theta e^{-\theta x} $$
They key is to prove that
$$ E\left[ e^{s\left( X-\mu \right)} \right] =\frac{\theta e^{-s/\the... |
I'm reading Rasmussen's GPML text and I am having trouble understanding the likelihood function and the underlying function itself.
For C classes, it first treats the latent function as
$$f = (f^1_1, \dots, f_n^1, f^2_1, \dots, f_n^2, \dots, f_1^C, \dots, f_n^C)$$
prior as:
$$f\tilde{} N(0,K)$$
Likelihood as:
$$p(y_i... |
I was learning about GAN's and how it can be used for creating images of cat, dog, mouse and bird. This is how I think in supervised learning system we train the features and labels to generate images.
cat,dog,mouse, bird = 0,1,2,3
X Y
1 dog.jpg
3 bird.jpg
0 cat.jpg
0 cat1.jpg
. .
. .
train(X,Y)
after trainin... |
I'm quite a newb at statistics and interpolation, and I cannot understand how to interpret the error estimation computed by Kriging.
For example, I performed kriging on temperature values (Celsius degrees) and I plotted this heatmap with the error estimation results, which I understand is kriging variance (right?).
Wh... |
Here is an algorithm for clustering that calls Clara. I did not understand the final step. I mean step 3, 4.
For i ¼ 1 to 5, repeat the following steps:
Draw a sample of 40+2k objects randomly from the entire data set,2 and call Algorithm PAM to find k medoids of the sample.
For each object Oj in the entire data set... |
What is advice of when to use one-vs-all logit or multinomial logit regressions? Most importantly, which one has a higher prediction power? Can one test hypothesis and estimate confidence intervals in one-vs-all approach?
I came from economics and I have just recently started to dive into Machine Learning. I noticed th... |
Currently, I have a likelihood function in the following form:
$$L(\lambda|\mathbf{x})=\prod_{i=1}^{n}(x_i+(-1)^{x_i}e^{-\lambda})$$
with $x_i$ taking on values of $0$ or $1$, $\lambda>0$.
I have tried taking $log$ and differentiating the likelihood function, but have been unable of finding the maximum likelihood estim... |
I have traffic data from cars on a roadside view for 3 weeks Each line of data sets consists of Day, Time, and Track number of cars for 3 weeks. I want to make a forecast for the 4th week using these data and using the ARIMA model
Here is an example of my data
Time Data
2008-05-19-00 110
2008-05-19-01 25
2... |
I am working with deep learning algorithms like CNN and RNN.I always wonder what is the best way to input wave form type data in to the deep learning algo. I know there are methods like wavelet or mel coefficient. But those things are man made things so like SIFT features in image processing.I'v seen some people take s... |
I was reading the following blog post :
http://epchan.blogspot.in/2013/01/the-pseudo-science-of-hypothesis-testing.html
Basically the author is discussing about using hypothesis testing to evaluate trading strategies, and writes:
You know the drill: the researchers first come up with a supposedly excellent strategy. I... |
Is there a way to perform cross-validation obeying the time ordering of data in a problem where we are learning over a rolling fit - e.g. when fitting a predictive model in the history of football matches - so as to not use future examples in the parameter selection part of the training?
|
From course notes, I see that when working with a quantitative variable, we can standardize the sample mean to have a normal distribution (as per the central limit theorem) as long as the sample size is "large". As a result, the distribution of the sample means is normally distribution (whether we are working with $\si... |
what effect varying $\sigma_{f}^2$ and $l^2$ has on a Gaussian process model with the following kernel? $\sigma_{f}^2 exp(-\frac{1}{2}\sum_{d=1}^{D}\frac{(x_{d}^{(m)}-x_{d}^{(n)})^2}{l^2})$. I do not see the connection between the parameters and the results. Thank you very much.
|
Trying to interpret these graphs in order to understand if this model meets the assumptions for multiple linear regression.
Any thoughts?
|
Let
$$Y_n=e^{\frac{-1}{n}\sum_{i=1}^nX_i}$$
with $X_1,...,X_n$ being $n$ i.i.d. Poisson random variables.
In order to find the distribution of $Y_n$ as $n\to\infty$, I first calculate
$$P(Y_n\le y)=P(e^{\frac{-1}{n}\sum_{i=1}^nX_i}\le y)=P(\ln{y^{-n}}\le \sum_{i=1}^nX_i)$$
Since $\sum_{i=1}^nX_i$ is Poisson distributed... |
In making a document classifier with scikit-learn, I could easily do so with a straightforward Naive Bayes (NB) classifier like MultinomialNB.
However, I also have numeric features related to these documents, which might hold greater or equal importance to the text itself. Let's suppose that a Random Forest classifier ... |
I'm wondering the role of a MCMC algorithm. Is it to marginalize the likelihood function and the prior in order to get the posterior distribution?
$$ P(A \mid B) = \frac{P(B \mid A) \, P(A)}{P(B)} $$
Since usually, the ${P(B)} $ is difficult to estimate, is the algorithm replacing the marginal by providing random prop... |
I have some data set and need to use a few classification methods to make prediction. I first need to pre-process the data set.
France is administratively divided in regions (13), and regions are divided in departments (96). Then at a smaller level you have towns.
My data set contains quite a few predictors, including ... |
For Bayes' rule, $P(a|x)=\frac{P(x|a)P(a)}{P(x)}=\frac{P(x|a)P(a)}{P(x|a)P(a)+P(x|a^c)P(a^c)}$, if we have $P(x|a)$ and $P(a)$ are discrete (e.g. both equal to 0.5), and $P(x|a^c)$ is continuous (e.g uniform(0,1)), could I just set $P(x|a^c)=1$? If not, how could calculate $P(a|x)$?
|
Does it make sense to express a list of p-values as a ROC curve?
Suppose we have $N$ independent null hypotheses tested, with $p_i $ the corresponding $p$-values. For convenience, we assume that the null hypotheses are ordered from smaller to larger $p_i $. Let us also define $\bar p_i = 1-p_{N-i}$. We can build a cla... |
My task is 'unemployment forecasting'. I have data with monthly ammount of unemployed.
First as I do was : simple exp smoothing, holt's method, Holt-Winters method, ARMA model. All this models take only 1 series and build prediction based only on historical data.
Now I need to forecast unemployment using such data as ... |
An easy example: I have 2 persons. I want to assign them randomized to one of two groups (1 and 2). But at the end the groups need to have the same size - which means 1 person per group.
I don't know how to realize this concaptualy.
In R I am using
library(random)
randomNumbers(n=2, min=1, max=2, col=1)
This could be ... |
I have a dataset with more 15 independent variables trying explain a binary outcome. The results seemed dubious and the confidence interval profiling failed by providing lower bounds of the confint larger than the upper bounds-- I found the variable creating this mess which is a four category variable. Furthermore, I u... |
I'm doing a question on cox proportional hazard models that at the very last step leaps from hazards to probabilities, and I'm not sure how it does this. I've paraphrased it below to keep it simple, but I'm confident I've not changed any important details.
The question is what what I'd consider a fairly standard cox pr... |
I have done a clustering in R using the Mclustpackage with a data set with 17 attributes and 2000 observations. the Mclustpackage is using EM algorithm to do the clustering.
Is there any good way to visualize my clustering?
My first thought is PCA.
|
Let $X\sim\chi_m^2$ and $Y\sim\chi_n^2$ be two independent variables. How to calculate or estimate the expectation of $\sqrt{aX+bY}$, where $a,b>0$?
|
I am building a question answering system that given a legal document attempts to answer questions related to the document. For example a tenancy agreement is given to the system and the user asks questions about the agreement.
I am splitting the legal document into small segments and try to find the most similar segme... |
About 18 % of the patients in a study are females. Is that enough for us to use Gender as a factor?
More generally, how does one decide whether there are enough observations such that the factor should be included?
What if it was only 10 %? 5 ? 2?
|
I'm going through elementary literature on measure theory from Shreve (Vol II) and having a hard interpreting the meaning of $\mathbb{E}[X|\mathcal{F(t)}]$ where $X$ is a random variable and $\mathcal{F(t)}$ is the sigma-algebra at time $t$.
Usually in non-measure theoretic definition of conditional probability $\mathb... |
I came across a question like this and I try it to solve it by 2 different methods. However, these 2 methods don't yield the same answer. So, I'd like to ask you what am I missing. I'm clearly doing something wrong.
First method
This is equal to the probabilities of getting a sum of 0, 1, 2 and 3.
Let P(1) = 0.48 and P... |
Is it possible to estimate variance of $Y$ if we don't know PMF of $X$? More over does it exist? To make question clear, let's assume some array of time stamps differences $ts_{diff} = ts(n) - ts(n-1)$. we can estimate mean and variance of these differences. But now we want to estimate Y = 1/X - frequency and it's mean... |
When creating a new, $j$th learner using AdaBoost, the model for defining the weight of an example is:
$$w_{j}^i = e^{-y_ih_{j-1}^i}$$
These weights are created in order that the new learner will focus on previously misclassified examples.
How does multiplying the actual and expected outputs substitute for a loss funct... |
There is negative correlation between two variables that I am studying but spss does not show it as a significant correlation (p values are coming out to be greater than .2). So the question is
How do i interpret this insignificant correlations?
|
I'm doing survival analysis using medical record, so the design is non-prospective. Is it alright to do so and is there any specifics I should concern?
Suppose we are focusing on how long it takes for a new tumor to recur after surgery. According to the guideline, patients should come back for reexamination in every 3... |
I want to see whether the number of animals in a paddock has any effect on distance walked per day by the animals.
I have data on the distance an animal walks (per day) against the number of animals in a paddock.
[The distances are not independent (i.e how far one animal walks significantly affects how far all the ot... |
I am working hard on a problem of Boolean model. In a example of Boolean model, points are scattered in the plane according to a homogeneous Poisson process of intensity λ. On each of these points a disc of fixed radius r is placed.
My question is: What is the probability if a new disc of radius rh is placed without a... |
For simplicity I will only discuss binary classification. If $p_k(x) = P(X \mid Y = k)$ for $k = 0,1$, then Bayes classifier $h$ minimizes the risk $P(h(x) \neq Y)$. It is well known that
$$h(x) = 1\{ \frac{p_1(x)}{p_0(x)} > \frac{1 - \pi_1}{\pi_1} \},$$
where $\pi_1 = p_0(x)$. Bayes classifier seems to naturally fit ... |
How does one derive the Bayesian average (https://en.wikipedia.org/wiki/Bayesian_average). As I understand it, this should derivable from the prior probability distribution for $\bar{x}$ and the likelihood function of a sample given a particular $\bar{x}$. However, I'm not able to figure out what prior and likelihood l... |
I have a relatively big (50000 rows) dataset with 165 columns. The response variable is integer varying in the interval (200-900). The predictors are mixed integers and categorical variables.
I try to decide what is the best method to apply for prediction since I need very low absolute error. Also the method is necess... |
I'm trying to understand what is the right way to create density functions for time variables (e.g., hour).
When I'm building a density function for hour, I'm getting values which exceeds 0 and 24 (which has no meaning in my case, where I want to check the probabilty that new data point where "taken" from my distributi... |
I have a difficulty grasping the intuitive meaning of drawing independent Random Variable out of a Probability Distribution. A probability distribution assigns probabilities to discrete outcomes or probability densities to continuous outcomes commonly represented by a Random Variable.
Therefore it seems that when I ... |
I wasn't able to find this question in SE, possibly as I am new to ML:
When deciding on an activation function, why is RELU preferred over a function such as ln(1 + exp(x))? The former has zero sensitivity for negative values and so one might get a "dead" neuron. With ln(1 + exp(x)) at least one wouldn't step into a f... |
In a two-way ANOVA, what exactly does a non-significant interaction mean? e.g. variables A and B both have significant main effects but there is no significant interaction effect.
Does this mean that performance on variable A is not related to performance on variable B?
|
I have a data set with the variables: y,n,date,x1,x2,x3.
I'm trying to predict y through x1,x2,x3 - categorical variables.
I'm building a linear regression model in python.
I'm interested in using weights:
n - number of observation per row
date - give more weight to more recent data (will use some power function here... |
If we were performing a forecasting exercise and found predictability (or Stambaugh Bias), what are a few approaches we could take to checking the robustness of our findings?
|
I'm a bit confused about the visualization of the weights of a feed forward neural network as provided in this example from scikit-learn. The network has an architecture of [784 x 50 x 10] (MNIST dataset), so n_hidden = 50 (there are 50 hidden units). Each of the hidden units is a column of the weight matrix W_1 (with ... |
I want to tune my neural network and find the some good lambda and eta values. I can do exhaustive grid search to find the best combo. However Bergstra in this http://www.jmlr.org/papers/volume13/bergstra12a/bergstra12a.pdf proposes random search.
How am I supposed to do this?
Heres is how i think of it:
generate 100 r... |
Let $X$ and $Y$ be two independent non-negative random variables such that $E[X] = E[Y] = \mu$ but $\operatorname{Var}[X] < \operatorname{Var}[Y]$. Can we use only these two moments to show that for $z>\mu$,
$$
\operatorname{Pr}(X > z) < \operatorname{Pr}(Y > z).
$$
If not, can we show a counterexample or weaker claim... |
I have a computer generated data and when I plot the raw data, I see the following plot.
As a quick and dirty method, I applied linear model to this data and when I plot the predicted vs residual, I got expanding flannel plot which shows that the variance is not random. Therefore, I used BoxCoxTran method in caret pa... |
Research context:
(1) What's the effect of a binary X1 (gender) on a continuous Y (index for consumption of femine-gendered goods), controlling for demographics. (2) Is this relationship moderated by continuous X2, X3, X4 (gender salience, perceived differences between genders, amount of close friends from other gende... |
I'll begin with my two question and all the related information (description of the research and the data and full output) will follow.
When i execute model1 (glmm with random intercept only for subjects): predictor (suppBin) and outcome (DtlsBinUp) and pre-intervention variables, it results with significance . when I... |
Suppose I have dataset(518 observations):
df$SalesPrice df$SqFeet df$Garage df$Year df$Quality df$Style df$Lot
360.000 3.032 2 1972 2 1 22.221
340.000 2.058 2 1976 2 1 22.912
250.000 1.780 2 1980 2 ... |
It is well known that if a generic autoregressive process of $n$ order, $AR(n)$, has a gaussian white noise error term ("innovations"), then it is gaussian too.
So I presume that if the error term is not gaussian, neither the process necessary is.
Anyway, in a paper I'm reading, it is said that $AR(n)$ must be gaussian... |
I was reading the wikipedia article on local martingales and it states the following theorem
Let $W_t$ be standard Brownian motion and let $f:[0,\infty)\times\mathbb{R}\rightarrow\mathbb{R}$ such that f is twice continuously differentiable.
If $M_t=f(t,W_t)$ it is a local martingale if and only if it satisfies the par... |
I wish to model the following relationship $$Y \sim af_1(X) + bf_2(X) + cf_3(X) + ..., Y \in [0,1]$$
where $Y$ is a response (a percentage divided by 100) and $X$ is a covariate which I want to model using those $f$-basis functions. The study's interest lies in the effect that covariate $X$ has on $Y$.
Based on what I ... |
Is there a way to identify if your data is MNAR, MAR, or MCAR?
And when performing multiple imputation, should you include all predictor variables even if only 1 or 2 variables have missing values? (SPSS)
Some context:
I am running a multiple logistic regression where one of my variables has almost 20% missing values. ... |
On the wikipedia page of convolutional neural networks, it is stated that rectified linear units are applied to increase the non-linearity of the decision function and of the overall network: https://en.wikipedia.org/wiki/Convolutional_neural_network#ReLU_layer
Why is increasing non-linearity desired? What effect does ... |
Let $X_1,...,X_n$ be $p$-vectors uniformly distributed in the ball $B_r=\{x:\Vert{x}\Vert_2\le r,r\gt 0\}.$
Can someone explain to me what it means by "uniformly distributed in the ball"?
For example, what does $X_i$'s distribution look like? I am having trouble understanding these high-dimensional stuff... .
|
I already made this question before (Is it appropriate to perform a meta-analysis of comparisons involving several communities where one of the communities was part of multiple studies?). I am making it again because after reading about network meta-analysis, as suggested in the answer that I received, I am not sure it... |
I have a model
model_1=dynlm(y_log~x1_log+x2)
where y_log, x1_log are I(1) and x2 is something between I(0) and I(1) (I rejected unit root with ADF test but KPSS test rejected stationarity).
I would like to estimate this regression and get coefficients I could trust. I am looking at this regression as on cointegration... |
Suppose I have a linear model:
model.lm2 <- lm(df$SalesPrice ~ df$SqFeet + df$Garage + df$Year + df$Quality + df$Style + df$Lot)
summary(model.lm2)
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) -2680.9219 397.1155 -6.751 4.04e-11 ***
df$SqFeet 105.8539 6.8433 15.468 < 2e... |
I have a hypothesis "People are better at detecting a lie when they are able to see a persons expression, compared to people that are not". The results were that 3 out of 20 people detected a lie correctly from seeing a facial expression and 5 out of other 20 people correctly detected a lie from only hearing it.
I've d... |
I have this equation:
$$-\frac{n-1}{n-2}\left\{ \frac{b\sum_{i=1}^{n}x_i^2\left[ x_i^2-\left( \frac{\sum_{j=1}^{n}x_j^2}{n}\right)\right]}{\left( \sum_{i=1}^{n}x_i^2 \right)^2} \right\} [1]$$
and he transforms it into:
$$-\frac{n-1}{n-2}\left\{\frac{b\sum_{i=1}^{n}\left[x_i^2-\frac{\sum_{j=1}^{2}x_j^2}{n}\right]\left... |
Let's say we have $X_1,\ldots, X_n$ iid Bernoulli($p$), ask for MLE for $p$. I'm pretty struggled on the second derivative of log-likelihood function, why it is negative? My second question is what is MLE when the maximum is achieved on the boundary of the parameter space : ${\sum x_i}=0$ or $n$? Looking forward to any... |
I am very confused with an article about arima-garch modelling:
http://article.sapub.org/10.5923.j.ajms.20130306.04.html
I am interested in modelling of safaricom closing price. I also just interested in the arima part of the modelling(not with garch part).
Part 4.2 of the article as below:
"
The upper left graphs sho... |
In R, is there a way to use the lm function to test for the hypothesis that the coefficients are different from a value other than zero? For instance, if the model is:
Y = a + b1x1 + b2x2 + b3x3 + e
It is easy to test whether a single b is different from an arbitrary number. If you wanna test for b1 = 10, then you can... |
How to interpret big signal variance of optimized gaussian rbf kernel in gaussian process regression model? How to interpret big signal variance in general for this kernel? The function that is optimized is log-marginal likelihood:
$$
log p(y|X) = {-\frac{1}{2}y^T(K+\sigma^2_n\mathcal{I})^{-1}y} {- \frac{1}{2}log|K... |
When drawing an ROC curve for a binary classifier, we vary, say the probability threshold of one class vs the other and get the curve.
However I'm confused what this means in a multinomial case where the classifier returns probabilities of the various classes (and I'm just picking the class with the maximum probability... |
I have 5 variables predicting a total price for selling an item. I also want to be able to include interaction terms in the model. However, I want to sell the item at the 75th percentile in order to ensure my price is competitive.
I am under the impression that a regular simple linear regression model predicts the 10... |
I want to apply kmeans clustering algorithm on dataset of 12008 samples. This dataset is actually an eigenvector matrix of size (12008 * 12008) generated from given laplacian matrix. In order to estimate the best value of k, I used a technique called Elbow method using R as the following:
set.seed(1)
k.max <- 10
wss <... |
I want to decay my learning rate by some factor, say factor of 5, after 7 iterations.
Suppose that my initial learning rate is 0.06.
I really don't understand how this works. Some people on the web say that after 7 iterations it should be 5 times smaller. Other people say it should be 5% smaller than the initial value.... |
I have a model (not linear) that I am using to predict an outcome at a later time. I have plotted the model-predicted outcome versus the true outcome at various times, and I have a question. What would be the best metric to use to judge prediction performance? Someone suggested $R^2$, but technically I am not regressin... |
I am currently studying this paper In which i am having some problems understanding the purpose of the forward-backwards algorithm.
First of all why even have both forward and backwards?
It seems to me that after one have computed the forward variable:
$$\alpha_{t+1}(j) = [\sum_{i=1}^{N}\alpha_t(i)a_{ij}] b_j(o_{t+1}... |
After fitting a logistic regression model in R using model <- glm(y~x,family='binomial') I can obtain the confidence intervals for the fitted coefficients using confint(model), but I want to know how to manually compute these values. In the case of a linear model lin_mod <- lm(y~x) I can just do the following to obtain... |
Can somebody explain how this works or direct me to a rule that describes this simplification? I understand the whole process but how the 'getting the $n$ in front to $\lambda$' works is unclear to me.
$p(x_1,...,x_n|\lambda) = \prod_{i=1}^{n}\frac{\lambda^{x_i}e^{-\lambda}}{x_i!}$
$\log(p(x_1,...,x_n|\lambda)) = \left... |
I am running multinomial logit model using mlogit in R. The model includes 3 alternatives as the dependent variable and 4 individual specific predictors. Sample size is 50. The three of them are of class:factor while the other predictor is in class numeric.
When I run model with ONLY 3 class factor predictors it works... |
I am running a logistic regression of marital status on age, age^2, religion importance, gender, race, education level, income, hours worked and residence area, using data from NLS.
After doing all the work of data cleaning I am running a logistic regression and even after converting the log odds into odds I get very ... |
My outcome had a prevalence of 51% (yes, disease). I need to know which is the best regression to use Binary or Poisson Logistics in the identification of the associated factors. All my data is categorical (male, female / yes, not / younger, older) ....
What are the implications on my results of using one regression in... |
I have a ball on a table located in position $x', y'$.
I am using many different rulers to measure the coordinates $x_i, y_i$ of the ball. I do this with $N$ different rulers, so $i = 1\ldots N$. Each measurement comes with an uncertainty $\epsilon_{x,i}, \epsilon_{y,i}$ drawn with mean 0 and uncorrelated but known va... |
Let $ F(g), Y $ be a random variables with finite expected values. Then, we define $ X(g) $ as:
$$
X(g) := \left\{
\begin{array}{ll}
1, & \quad \text{if } F(g) + Y > 0 \\
0, & \quad \text{else.}
\end{array}
\right.
$$
Is it true that $ \mathbb{E} [ X... |
Linear Mixed Effects Models are Extensions of Linear Regression models for data that are collected and summarized in groups. The key advantages is the coefficients can vary with respect to one or more group variables.
However, I am struggling with when to use mixed effect model? I will elaborate my questions by using a... |
I am working with NLS data. It's cross-sectional data for different variables in 2013. On of my independent variables is annual income. I start off with 7k respondents and if I would drop data for the negative income and NA's I will reduce my sample to 5k. So I am thinking about replacing the NA's with the average and ... |
I have a data in which one group of observations (non-experienced users) may have different patterns of behavior (most of them are not captured by my data) from the other group's observations (experienced users). I am estimating the effect of another variable on a dependent variable, in a linear regression. I of course... |
I was asked to evaluate how the output changes in response to input variables. For this I have randomly create sensible value of input variables. These are then imported into a software which yields the output variables, however I do not know which formula is used for the calculations. How can I make statements about t... |
I have two groups with mean values and standard deviation values of the purchase power index, where N is the number of observations used to calculate mean and std.dev. for each group.
Group 1 Group 2
Mean Std.Dev. N Mean Std.Dev. N
2.5 0.25 100 3.2 0.8 150
How can I estim... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.