instruction
stringlengths
9
38.7k
I am fitting a generalized linear model (glm). The explanatory variable is categorical with three levels (control, treat1, treat2). The response variable is 0 or 1. The response rate for each treatment level is ploted as the figure below (from left to right: control, treat1, treat2): There seems to be a big treatment ...
I've got 2 gamma-distributed random variables $(X,Y)$ with arbitrary scale and shape parameters. Further, $Y$ should be a non-linear function of $X$, lets say $Y=\sqrt{X}$. What I am interested in is the joint probability $F_{X,Y}(\cdot)$. All suggestions or general comments are welcome. Thank you in advance
I am looking over slides for a big data class. The slides suggest doing a pairwise plot of data (if not too many variables) to evaluate the quality of output from k-means clustering -- with each data point color-coded by its cluster. The slides say: If the (colored) clusters look separated in at least some of the plo...
Is it true that (and if so, how does one prove) the following. $$E\left|\hat{Var}_{n}(X)-Var(X)\right|^{2}=O(n^{-1})$$ where: • $X$ is a random variable with mean $\mu$ and variance $\sigma^{2}$ • $\hat{Var}_{n}(X)$ is the sample variance of $X$ from $n$ i.i.d. random variables $X_{1},\cdots,X_{n}$ with mean $\mu$...
Actually, I have read a pair of books about time series analysis, but I am still not sure about how to treat deterministic components, like trend and seasonality, in the exogenous variables in a time series model. Do I have to detrend and deseasonalize the covariates before I use them as axplanatory variables in a time...
What is 95% confidence interval for the fraction of 5 successes out of 12 trials? Is it possible to compute confidence intervals for a sample of this size?
I have a data.frame with 800 obs. of 40 variables, and would like to use Principal Component Analysis to improve the results of my prediction (which so far is working best with Support Vector Machine on some 15 hand-picked variables). I understand a prcomp can help me improve my predictions, but I do not know how to u...
Consider the problem of the choice of estimator of $\sigma^2$ based on a random sample of size $n$ from a $N(\mu,\sigma^2)$ distribution. In undergraduate, we were always taught to use the sample variance $$\hat{s}^2 = \dfrac{1}{n-1}\sum_{i=1}^{n}\left(X_{i}-\bar{X}\right)^{2}$$ instead of the maximum likelihood est...
I have computed and plotted the survival function for a subscription-based service and the following is the result. The problem is that there does not seem to be enough data to get a full curve. This is because most of the oldest accounts are still active. So my question is would it still be useful to compare surviva...
I have samplings of one-dimensional data of two classes: $A$ and $B$. I have to predict the posterior probability of class $A$. $$\tilde{P}(A|x) \approx \frac{N_A\tilde{f_A}(x)}{N_A\tilde{f_A}(x) + N_B\tilde{f_B}(x)}.$$ $f_A$, $f_B$ are the estimation of densities of classes $A$ and $B$. I estimate the densities as nor...
I have two sets of acceleration data in terms of time. In one set the acceleration increases more linearily than another set. How can I show the linearity difference of the two set of data best? Should I use Pearson Correlation or Linear Regression? If I get r = 0.8 and 0.98 by Pearson Correlation, how I can interpreta...
I have the following data Individual Heart rate Weight Hours of exercise per week 1 72 134 3.2 2 81 201 3.5 3 60 156 7.1 4 82 148 2.4 5 ...
I have weekly data of number of warranty claims from week of manufacturing. I want to use this historical data and predict the number of claims that may arise in next few weeks. I have read about count data models like Poisson regression and NB regression but they expect the counts in the range of 0~30 (is this correct...
$$Y|X=x \sim N(x,1)\\X\sim N(\mu,\sigma^2 )$$ What distribution does $X|Y=y$ follow? My initial startegy was to $f_{Y|X}f_X=f_{X,Y}$ and solve for $f_{X|Y}=f_{X,Y}/f_{Y}$ . Computing for $f_{X,Y}$, I get the following: $$f_{X,Y}=\frac{1}{\sqrt{2\pi\sigma^2}}\exp\left\{-\frac{(x-\mu)^2}{2\sigma^2}\right\}\frac{1}{\sqrt...
I would like to classify individuals of a database by a single quantitative variable. Is hierachical clustering suitable to do this? If it is possible, how the algorithm work? If use hierachical clustering is not right, which other procedures or techniques could I use? My purpose is not classify the variable, but indiv...
I was wondering if someone knows or if there exists an application in statistics in which strong consistency of an estimator is required instead of weak consistency. That is, strong consistency is essential for the application and the application would not work with weak consistency.
I am trying to perform some logistic regressions (and I am a neophyte user of R). Initially I used "glm" to compute coefficients, AIC and p-values; this worked great until I ran across a data set suffering from complete separation. In [1], Gelman et alia suggest using an (informative) prior to address this problem; th...
I have several exercises to solve that deal with sample space of PMF. One is: Let $X_1,\dots , X_n$ be independent random variables with pmf $p(x;\pi) = (1-\pi)^x \pi$ What is the sample space of $X_1?$ Try to give a probabalistic interpretation of such a sample space. Hint: for example. a Bernoulli random variable can...
I'm trying to apply a polynomial approximation for a given function (via Genetic Algorithms), and so far the results are not so good: # or any other GA package require(gaoptim) # for polyval require(pracma) # polynomial of degree 10 ndeg = 10 ndim = ndeg + 1 # search limits search.low = rep(-1, n...
The summary of my GLM shows day 12 of factor Date to be significant, but anova(model, test="Chisq") shows Date to be not significant overall. I know how to report the statistics from the Chisq table, but as I have z values in the summary table I am unsure how to report, or if I should report, that day 12 is significant...
Is there a requirement that the measure used in Nearest Neighbor methods be a proper metric distance? What will happen if I use an arbitrary function (e.g., one that does not satisfy the triangle inequality)? How can you convert an arbitrary function to a valid metric distance?
I need to collect a two group sample for a comparison analysis (perhaps using logistic regression). The population that I need to extract a sample from is all firms from country A with activities in country B. The firms are classified into two categories: having a subsidiary in country B (S), or not having a subsidiary...
Let's say I'm optimizing MRR with a GBM in R: library(gbm) generate.data <- function(N) { # create query groups, with an average size of 25 items each num.queries <- floor(N/25) query <- sample(1:num.queries, N, replace=TRUE) # X1 is a variable determined by query group only query.level <- runif(num.queries...
I have a three level multilevel model (therapists, patients, repeated measures) in which I have included 4-way interactions, for instance: therapist self-efficacy * treatment condition * patient on track (yes/no) * time This tests the hypothesis that therapist who are in condition A and are higher no self-efficacy have...
Suppose the probability of a "random" event is very small (call this probability $p$). In real life, true randomness seems impossible. So would the actual true probability of the event be greater than $p$?
I'd like your opinion on a very strange behavior that I recently encountered running glmer(). The problem is that when I make the dependent variable into a logical vector, glmer behaves weirdly. My dependent variable is Accuracy, and it is coded in terms of 1 (accurate response) and 0 (wrong response). What puzzles me ...
I have this partition function Now if I take the derivative of log(Z(x)) wrt $\lambda_k$ the result is I didn't get how this was derived. This is the paper
I am working with some two-regime autoregressive models first introduced by Hamilton in 1989. The specific models is of no great concern to my question, but some variables within my autoregressive models are latent binary variables - non-observable binary variables, that is. I have a dataset and use MCMC to find poste...
Suppose we consider all the people in the planet. We are interested in randomly selecting 10 people who have heart disease. Is it better to repeatedly sample 10 people and then choose the one selection in which all 10 people have heart disease? Or is it better to only look at the people who have heart disease and sampl...
My prof claims that raising a symmetric r.v., like N(0,1), to an odd power gives a distribution with expectation 0. What's the best way to see this?
Why is the F-test for overall significance (OLS regression analysis) invalid when residuals are heteroscedastic? Is there a way to calculate it in a consistent way under heteroscedasticity? Is there any function in R to accomplish that?
I am working on a research topic where I need to add together two AR processes and I was wondering if the distribution of these processes is of a recognizable form/structure. More formally, if $x_t$ is a AR(p) process with characteristic polynomial $\Phi_x(u)$ and $y_t$ is a AR(q) process with characteristic polynomia...
I'd like to make a prediction about a subject's likelihood that a certain outcome will occur based on a series of measurements taken over time. The easiest way to explain the problem is as follows. Imagine that I'm tracking an individual over time to generate a probability of ever getting lung cancer. The training dat...
How do you describe, or what do you call, a test that uses two factors as independent variables but uses a dependent variable that is a difference between two measures taken repeatedly from the same individuals? Usually, repeated measures means that multiple independent variables are measured on the same individuals. H...
I am running a general linear model in which I have two predictors: X and X-squared. I entered both these predictors in my analysis because I think X might explain the variance in the outcome measure partially linearly and partially in a quadratic fashion. Obviously, there is multicollinearity in this example. However,...
I understand that NA means data is missing, null or not present. But what do the letters NA stand for? "Not Available"?
This is my very first post on CV so comment if I can improve my post. I have two webs that sell very similar products and also have a very similar group of customers. I was trying to prove that concept that "Fast Moving Inventory From Web A Will Also Move Fast on Web B" I have the daily snapshots of the inventory of bo...
Estimate 3 parameters of beta exponential distribution in the case of censored type 1 samples via L-moments
In multiple regression, if you have just an ANOVA table, and nothing else, no specific data, how can you do a partial F test on X1, given X2 is already in the model? So, you have the ANOVA table: source df SS MS F ----------------------------------- regression 2 1.44 0.72 9.72 error 3 ...
If you have 3 separate models in a multiple regression problem (and 3 ANOVA tables), which would be best given that you have the coefficient of determination, $R^2$, and mean-squared error values? So you have 1 table, with just $X_1$, another with just $X_2$ and a third with $X_1$, $X_2$ combined. Which is best given s...
I have more than one file of data from different experiments. For the sake of the argument here, let's say I have three files E1.txt, E2.txt, E3.txt. I anticipate that I will have more files in future, say E4.txt, E5.txt, etc. Each of these files has two columns, Time(h) and Growth. Plotting data from one file, for i...
I have 1 short string of text (let's say it's a tweet, max 140 characters): "A review of my beloved Roku 3 media player" I also have a larger body of text (like a blog article, hundreds of words) which I know is related to the tweet: "The Roku 3 media player is a great way to watch your favorite ...." The tweet and blo...
I don't have a very solid foundation in measure theory, and this always seems a bit confusing to me so I would appreciate any help. We are given $ E \left( X_{n+1} | Y_0,\ldots,Y_n \right) = X_n. $ Prove or disprove $ E \left( X_{n+1} | Y_0^2,\ldots,Y_n^2 \right) = X_n $ I am thinking that if $F=\sigma \left(Y_0,\ldot...
How to find a tax/subsidy in an income probability density function situation? I am asked the following question: Suppose all families with $Y \lt 20$ are given transfer payments equal to $(20-Y)/2$; and suppose the cost of these transfers is raised by taxing all families with $Y \gt 20$ an amount $t(Y-20)...
I'm using R's 'astsa' package and I get the following output from sarima. Which AIC value would I use to compare this model (let's call it A) against others? When trying another model (B), model A's fit$AIC (858.19) is greater than model B's, but model A's AIC (12.38841) is less than model B's, so I'm not sure which m...
I need to calculate the probability of $P(L,D)$, where $L$ and $D$ are not independent. I have estimated $P(L)$ and $P(D)$ with two distinct models and I also know $P(L|D)$ and $P(D|L)$. As far as I can see it I have two different estimates of $P(L,D)$: $P(L,D) =P(L) * P(D|L)$ $P(L,D) =P(D) * P(L|D)$ Am I best off ju...
In particular I am interested in the scale estimator. Hopefully it is much better than that of IQR.
I read that the $Cov(\hat{\beta})=\sigma^2(Z'Z)^{-1}$, where $\hat{\beta}=(Z'Z)^{-1}Z'y$. However, I have yet been unable to find a proof of this fact online. Could anyone please provide a proof and/or a reference?
25 patients receive treatment, and they each get a difference score (After-Before). 18 of them get positive scores. I would like to test the null hypothesis that p=0.5. I know that 1-pbinom(17,25,0.5) gives me the probability of 18 or more patients getting a positive score. My question is, to calculate the p-value, why...
Suppose we have some logistic regression modelling problem; $f(X) = Y$, where $Y$ is binary and $X$ is a vector of normally distributed variables. In industry it is sometimes the case that practitioners will delete rows of data where 'nothing happens' (according to an algorithmic criteria), often to reduce the dimensi...
I have a retrospective dataset of patients treated with a certain drug (treatment, $n=46$) or with placebo (control $n=96$). The stored variables are age, sex, stage of disease. I want to assess the effect of treatment on overall survival with propensity score. Here are the steps I followed: I calculated propensity sc...
I am attempting to build a model to forecast attendance in a given week in the current year based on this year's attendance values up until the present, and data from two previous years. My data looks like this: Week 11-12 Cumulative ADA 12-13 Cumulative ADA 13-14 Cumulative ADA 1 0.9941 ...
I'm working on my final project, and it's a QUEST algorithm, and it uses the chi-square test. I have a problem where the expected value = 0. What should I do? What does it imply to the chi-square test or to the QUEST algorithm?
I am trying to learn some statistics using the book, Biometry by Sokal and Rohlf (3e). This is an exercise in the 5th chapter which covers probability, the binomial distribution, and Poisson distribution. I realize there is a formula to produce an answer to this question: $$ n = \frac 4 {( \sqrt{p} - \sqrt{q} )^2} $$...
Suppose, the data below shows the mean response time on a task for respondents among four different groups: A B C D 1.2 2.3 4.5 6.7 In order to assess which one of the means are different from one another I do a multiple comparisons test (after an omnibus ANOVA test is cleared) and the multiple compa...
I already wrote a similar question on StackOverflow but was not welcomed there! So I decided to ask it from the folks here. I have wrote a code in Python for CRP problem. I think everybody here is familar with the subject but nevertheless: Short description of it: Suppose we want to assign people entering to a restaura...
I am working on vector auto-regression (VARs) and impulse response function (IRFs) estimation based on panel data with 33 individuals over 77 quarters. How should this type of situation be analyzed? What algorithm's exist for this purpose? I would prefer to conduct these analyses in R, so if anyone is familiar with ...
I have a multicollinearity problem in a linear regression model and ridge regression was suggested as a solution. So I have spent quite some time researching different ridge regressors in the literature (there's at least a dozen), however in the course of my research I have found that Principal Components Regression ca...
I have a variance test based outliers detection algorithm. The algorithm is exposed with a visual application where the user can configure its parameters namely the multiplier. The question is what is the range of values for the algorithm multiplier? the algorithm basically is calculating the mean and standard deviat...
This questions is two part: 1) What happens when you apply the backshift operator to a constant? For example, if I have the AR process $$(1-\phi B)(y_t-\mu)=\epsilon_t$$ does that equal $$y_t-\mu-\phi By_t-\phi B\mu = \epsilon_t$$ which (I believe reduces to) $$y_t-\mu-\phi y_{t-1}-\phi \mu = \epsilon_t\longrightarro...
I have corpora of classified text. From these I create vectors. Each vector corresponds to one document. Vector components are word weights in this document computed as TFIDF values. Next I build a model in which every class is presented by a single vector. Model has as many vectors as there classes in the corpora. Co...
I currently have a data frame with 98 observations and 107 variables. All of the variables are numeric, but one variable is binary (yes or no). My goal is to determine which correlation and/or variable give the greatest segregation between the yes and no samples. I have been using the pairs () function to do this, b...
I need to calculate the following expression: $$\sum_{k=1}^N a_k b_k$$ ${a_k}$ and $b_k$ are real positive numbers. N and k are integers. I know the average values of $a_k$ , defined as $\overline {a} = {\sum_{k=1}^N a_k \over N } $ and $b_k$ , defined as $\overline {b} = {\sum_{k=1}^N b_k \over N } $. I also know the ...
I have a data set of videos from which I need to recognize the emotion of the speaker. For that reason I have some markers on the face of the speaker. I detect their movement as the speaker speaks and for every frame find the change in the marker coordinates. There are a total of 65 markers (blue dots) on the face of a...
I have a problem understanding the posterior for computing LDA, stated in page 7 of Blei (2007). From my point of view, it's not exactly consistent with Bayes' theorem, as described here. Could anyone give me a simple explanation of how this formula was derived? I don't really understand how the $p(\beta, \theta, z, w)...
I'm trying to explain why some complex process obeys Central Limit Theorem. The process is a chip compiler that runs complex place & route algorithms. The input is an integer seed. It initializes the algorithms in a random way. The output is a real number, which determines quality of results; the higher the number - th...
I like Peter Flom's answer to an earlier question about multicollinearity in logistic regression, but David Garson's Logistic Binomial Regression states that there is no valid test for multicollinearity for binary-dependent logistic regression, even if the independent variables are ratio scale. Can anyone supply one or...
Are conditional multinomial logits used for recommendation engines? Although they are commonly used in econometrics, I've never heard it used or discussed in the context of recommender systems. Economists use multinomial conditional logits to model which of several options a person would choose and how much they value ...
Background I have a colleague interested in a particular disease and specifically if the continuous variable $X$ is different between controls and patients. Preliminary results suggest that patients have higher values of $X$ than controls. The straightforward approach would be a unpaired t-test to test if there is a di...
How can I analyze the $\lambda_U$ and $\lambda_L$ results (estimated by non-parametric method)? What does higher or lower coefficients mean? Does $\lambda_U = 0.5$ mean there's some kind of linear dependence between $X$ and $Y$? This is what I mean by $\lambda_U$ and $\lambda_L$:
Recently, I built a classification model based on the imbalanced data set(positive sample is minority and negative sample is majority), and the model gave the following result for the test set: True Positives = 0 True Negatives = 139 False Positives = 0 False Negatives = 10. My question is: for the result, can Matthe...
I am fitting a gam model in R (using the gam function in mgcv) to account for some non-linear effects in my data. A stripped down example of what I am doing in R is: mod=gam(y~s(x)+s(z),data=df) However, I want to add a slightly more complicated variance model to my regression of the form $$\epsilon \sim N(0,\sigma^2...
I am trying to use bfgs algorithm in order to fit a set of $\{(x,y),f(x,y)\}$ to a function in the form of let's say $a\cdot cos(x)+b \cdot y=f(x,y)$. I try to understand how to use bfgs algorithm with liblbfgs, but I don't understand the example and it is not clear what function the author tried to fit.
I have aggregated death counts and some categorical predictors e.g. era, drug use, and I'm running a Poisson GZLM in SPSS, also a glm in Stata (generalized linear model). There are many, but not excessive, zeros and it has been suggested to me to add 0.5 to the observed values. When I do that the GENLIN procedure in SP...
I am fairly new to Stata, currently taking an undergrad time series econometric class. The economic significance of the regression I am running and attempting to forecast is all but zero; this is simply my learning how to use Stata somewhat efficiently. I have run an Autoregressive Distributed Lag (ADL) regression of I...
I understand that discriminative models, such as CRF(Conditional Random Fields), model conditional probabilities $P(y|x)$, while generative models, such as HMM(Hidden Markov Model), model joint probabilities $P(y,x)$. Take CRF and HMM for example. I know that CRF can have a larger range of possible features. Apart fro...
I have been unable to figure out the following question $f_{Y|X}(y|x)=N(x,x^2)$ $f_X(x)=U(0,1)$ Prove that $\frac{Y}{X}$ and $X$ are independent
Imagine a sample of observations $x_1 \dots x_n$ for which a $t$-value (i.e. $\bar x/SEM$) is known. Say an additional observation of zero is added to the sample so that we have $x_1 \dots x_{n+1}$ where $x_{n+1}=0$. Can a new $t$-value be calculated from just the known original $t$ and $n$? (I suspect that it can, bu...
I have the following posterior distribution for $v$ $$f(v)\propto v^{-p/2}\exp\left(-\frac{1}{v}\frac{s}{2}\right)$$ and so clearly $$v\sim\text{Inverse-Gamma}\left(\frac{p}{2}-1,\frac{s}{2}\right)$$ Now can I say that $$v^{-1}\sim\text{Gamma}\left(\frac{p}{2}-1,\frac{s}{2}\right)$$
I was wondering why it is necessarily true that if a test statistic exceeds the critical value of t, then it will also be true that the p-value will not exceed the level of significance.
Hi This maybe a basic Stats question. Let say I have 3 networks of different sizes. Size in terms of number of nodes and links. Network n1, n2 and n3 have v1, v2 and v3 nodes and l1, l2 and l3 links. That is all we know about the networks. For each of these networks we compute some parameters based on some criteria. F...
I am confused by the special way required to use inverse method in the following problem, Here is the problem: Consider a mixture distribution of two normal distributions, where the desired PDF $f(x)$ is given by: $f(x) = r\, f_a(x) + (1 − r)\, f_b(x)$,where $f_a$ and $f_b$ are normal PDFs with means $a$ and $b$, ...
The test of Kolmogorov-Smirnov (K-S) is a traditional test of normality, although Shapiro-Wilk test (S-W) is applied more frequently than K-S (Arango, 2012). I am not an expert in statistics, so my question concerns about the use of K-S test. Is it possible to use K-S test to another purposes besides normality test?...
When using support vector machine, are there any guidelines on choosing linear kernel vs. nonlinear kernel, like RBF? I once heard that non-linear kernel tends not to perform well once the number of features is large. Are there any references on this issue?
Say I have some normally distributed data. I have an application where I compute the percentile (or cumulative frequency less than sample) for a particular sample using a CDF function along with the mean $\mu$ and standard deviation $\sigma$ of the samples. so $$F_x(x) = \frac 12\left[1 + \text{erf} \left (\frac {x - \...
I would like to ask if there is any problem / concern with Sobel test when I use survey data? In particular, I was using the web-based calculation tool here based on coefficients derived from regression analysis using survey command. I also hope to know if there is a good reference article about this.
I have a collection of 4-member probability vectors (essentially proportions over 4 mutually exclusive categories). Is there a method to represent this data as a cloud of points inside a square? If each of the values of the 4-tuple represents a weight towards one of the 4 edges, can we appropriately place each inside t...
I have to do an empirical analysis for a statistics paper. For this I want to show the differences of dependence structure for a specific data set. So I selected 2 stock prices, transformed them into the returns and started to measure the dependency with R. So far it is no problem, I have a result for Bravais-Pearson, ...
I am performing ordinal regression on several datasets, I have 5 ordered response categories and only one explanatory variable X. For each dataset I run the analysis 3 times, each time using a different link function (1. probit, 2. logit, 3. comploglog) and I calculate the AIC to see which function fits my data best. ...
Say you've got a model $$ y = f(X_1,X_2)+\epsilon $$ and you're OK with linear (or other parametric) functional forms. Say you think that the effect of $X_1$ on $y$ depends on $X_2$. The standard wisdom is that one should include the main effect of the interaction to capture the effect of $X_1$ on $y$ when $X_2$ = 0...
We are trying to prove a very subtle effect occurring in cells after a certain treatment. Let's assume that the measurements are normally distributed. Let's also assume the untreated cells have $\mu = 1$ and $\sigma = 0.1$ and the treated cells have $\mu = 1.1$ and $\sigma = 0.22$. The question is: How large must the ...
I feel like I'm missing something obvious, but here we go. I have auto-correlated data measured in triplicate for two (or more) treatments. Something like this: t <- 3:20 #times in my real dataset are possibly not always equidistant a <- structure(c(0.652492388457625, 0.905172522010166, 1.23437705454616, ...
How to check if those values are "dependent" ? Take a look on the values in second column coz the difference between them is really huge so it's hard to choose the scale. Any propositions of checking "dependence" between them are welcome. I was thinking about correlation but I am new in statistic so please let me know ...
I'm running a 2x2x2x2x2 mixed model ANOVA (on SPSS v21) for my study and found two 4-way interactions, one 5-way interactions and a couple of 3-way interactions. Whilst I understand how to interpret a 3-way ANOVA. I'm having quite a hard time trying to interpret the 4/5-way interactions. My variables are: Within-subj...
I have a jar with white and black balls. Total number of balls in the jar is 100000. I want to estimate the proportion of white balls. My constraint is that the sample size for estimation should be low, lets assume 500 balls. I am debating between two approaches. Draw a single sample of 500 balls, $\hat{p}$ = number o...
I have two groups of patients who underwent a surgery using method A or method B. The first group are patients who were operated in 1980's and 1990's only with method A. The second group are patients operated recently with mostly method B, but also in some cases A. In addition to that, I have various variables about pa...
I have this data set: And I want to transform the data (with a RBF kernel?) in order to be able to do a simple linear ridge-classifier. I know I can do more or less the same thing using a kernel SVM with a RBF kernel but I have to use the ridge classifier. Does anyone know how it (if?) can be done? This is kinda hom...
There is a simple regression model table I was looking at in a textbook with IQ values grouped into 5 intervals and each group had an N number associated with it. There was also information given about the residuals for each group (mean and variance for the residuals). e.g For the < 75 IQ group, N = 23, Mean of residu...
I asked participants in an experiment the same question once before and once after the experiment, to see the effect of the experiment on the answer. The answers were given on a 5-point scale. To me the change, so the difference between the before and the after answer to the question, is interesting. So I want to see w...
The log-likelihood function for logistic function is $$l(\theta) = \sum_{i=1}^m(y^{(i)}\log h(x^{(i)}) + (1-y^{(i)})\log(1 - h(x^{(i)})))$$, where $$h(x^{(i)}) = \frac{1}{1 + e^{-\theta^Tx^{(i)}}}\,.$$ In order to obtain maximum likelihood estimation, I implemented fitting the logistic regression model using Newton's ...