instruction
stringlengths
9
38.7k
Is there any difference? Or they are basically the same? Just Excel users call it 'pivot table' and statistically-minded people call it 'contingency table'?
For my own understanding, I am interested in manually replicating the calculation of the standard errors of estimated coefficients as, for example, come with the output of the lm() function in R, but haven't been able to pin it down. What is the formula / implementation used?
I'm running a fixed effects model. My independent variable is store presence, and one of my dependent variables, i.county, measures county fixed effects. I use xi: regress store_presence i.county other_var othervar2 where county is the US county code, a string variable. But the regression output reports that some va...
I've dived into the field of neural networks and I became enthralled with them. I have finally developed an application framework for testing trade systems in stock exchanges and now I'm going to implement my first neural network in it. Very simple and primitive one, not intended for real trading, just for starters. ...
I have been given two formulas: $$ \hat{\sigma}^2 = \frac{1}{n-p} (Y - X \beta)^T(Y - X\beta) $$ $$ = \frac{1}{n-p} \sum ( y_i - \hat{\beta_0} - \hat{\beta_1}x_i)^2 $$ I also have $$ \hat{\mathrm{MSE}} = \hat{\sigma^2}\left(1 + \frac{1}{n} + \frac{(x^* - \bar{x})^2}{\sum(x_i - \bar{x})}\right) $$ where n is total numbe...
Is there a regression estimation methodology that can estimate the following: $$Y_t = \alpha + \beta X_t^x + \gamma Z_t^z + \epsilon_t$$ where $x,z\in \mathbb{R}$, are freely varying and are chosen by the estimator according to some statistical criteria. If such an estimator exists why have I never seen it in the fina...
I have used the orddom package in R with the argument paired = TRUE to calculate the Cliff’s delta for paired groups, and a 4-column-matrix containing 29 rows with values was returned. The ordinal statistics can be retrieved from the first three columns. But comparing 2 paired groups I need only one delta result. Which...
I've got a regression model and I've got 12 observations. So, I could and I did create the matrix. I also calculated the OLS estimator. But my professor's question is to find X and Y. I'm new to stats and what is don't understand is that if the value of X and Y have already been provided through table what is it that h...
I have the following model: $Y_i = B_0 + B_1X_{1i} + B_2X_{2i} + u_i$. I want to compute the OLS estimator using $(X'X)^{-1}(X'Y)$ I'm free to choose values for X but Y cannot have concrete values? Should I be leaving my OLS estimator in terms of Y? What would be your recommendation?
Linear model in matrix form is $ \mathbf{y}=\mathbf{X}\beta+\epsilon\textrm{ where }\epsilon\sim\mathbb{N}\left(0,\sigma^{2}\mathbf{I}\right). $ If $ \mathbf{K}^{\prime}\left(\mathbf{X}^{\prime}\mathbf{X}\right)^{-} \mathbf{K} $ is nonsingular, then $ \textrm{rank}\left[\mathbf{K}^{\prime}\left(\mathbf{X}^{\prime}\mat...
I'm not sure where to post this, so I thought I'd post it here. If there is another better place to ask this question then please could you let me know. Let $\beta$ = rate of infection, and $\gamma$ = rate of recovery. I don't understand how the basic reproduction number (BRN) is $\frac{\beta}{\gamma}$? I know there ...
I'm currently working on bond return data. I've data for 5,10,20 and 30 years. I've performed PCA, EFA. I also created an AR(11) model to forecast the return for the next month that's due. Now I want to extend my model to ADL with $X_{t-1}$ as a covariate. Here, Xt-1 is the lag of the first principal component from a P...
I am a medical student and I'm a rookie in the field of statistics but I was searching and digging for a long time to do a simple (for most of people involved in the field) analysis all by myself, and I'm exhausted so please help me on this. I have a data of subcortical structure volumes for three different groups, the...
I am having trouble to understand how to use bootstrapping to calculate prediction intervals for a linear regression model. Can somebody outline a step-by-step procedure? I searched via google but nothing really makes sense to me. I do understand how to use bootstrapping for calculating confidence intervals for the mod...
Say a basketball team wins a game. Obviously, at some point in the future, the basketball team will lose a game. So hence, after each game that the basketball team wins, the team is edging closer to their next lost. Are there any statistical tools that can help predict or explain this kind of situations? Another exampl...
I want to do cross validation after running nonparametric regression on my data. Unlike parametric regression where I can first find my parameters and then easily handle the CV set with these parameters to find my MSE, in the non-parametric version this should be done differently. Given the training and CV set, I decid...
I'm trying to determine the effect of taking a training course on various aspects of being a good quality worker. I have pre-test and post-test data on 7 different ways job performance can be viewed. I'm currently performing 7 different paired samples t-tests on the data, to see the effect on each individual aspect. Is...
I have recently stumbled across a mention of "double/triple bootstrap" or "iterative bootstrap". As I understand, each bootstrap sample is bootstrapped again. What is the point? How is it used?
I have a data frame, and I'm trying to get name of its factor (as string) by index. For example, var1=factor(c(0,2,2,6,7),levels=0:7) var2=factor(c(2,2,0,1,6),levels=0:7) obs1=data.frame(var1,var2) obs1[1] returns var1 1 0 2 2 3 2 4 6 5 7 Is there a way to return just "var1"? Thanks.
I have two time series, which by looking at they appear to be correlated i.e. when one is high the other is high, and when one is low the other is low. Besides looking at the figure and saying these are correlated, I am looking for a statistical approach to assess whether these two time series are correlated or not. Th...
m <- matrix(nrow=5, ncol=5) m <- ifelse(row(m)==col(m), 1, 0.4) ch <- chol(m) # Choleski decomposition u <- matrix(rnorm(2000*5), ncol=5) uc <- u %*% ch cr <- pnorm(uc) cr <- qbinom(cr,1,0.5) cor(uc) cor(cr) The cor(uc) is 0.4. However, I also expected the cor(cr) to be 0.4, but it is around 0.2....
Please can you help me to solve this problem. It should be calculated by vectorization. The question is: The i-th deletion residual $e_{(-i)}$ is defined as $e_{(-i)} = y_i - X^\top B_{(-i)}$ where $(X^\top)$ is the i-th row of the design matrix $X$ and $B_{(-i)}$ is a column vector of least square parameter estimat...
This is a problem from the "7th Kolmogorov Student Olympiad in Probability Theory": Given one observation $X$ from a $\operatorname{Normal}(\mu,\sigma^2)$ distribution with both parameters unknown, give a confidence interval for $\sigma^2$ with a confidence level of at least 99%. It seems to me that this should be im...
After fitting a coxmodel it is possible to make predictions and retrieve the relative risk of new data. What I don't understand is how the relative risk is computed for an individual and what is it relative to (i.e. the average of the population)? Any recommendations for resources to help understand (I not very advanc...
In my research I am working on some data (let’s call it sales data), however we almost have no information on the original sample. My goal is to come up with possible explanations on how it could be sampled by consistency arguments. In more detail, the data provided is composed of sales transactions and it has 2 colum...
I want to understand how the sampling distribution of the whole covariance matrix behaves for large $n$. I am trying to use the delta method and multivariate CLT. I am trying to show that when the $X$'s are IID with nonzero finite fourth order moments then the operation (sample variance) takes place, as in this equatio...
Please help. I have 3 IVS and 1 DV in my model. The 3 IVs are rated by 150 Middle Managers while 50 Directors rate the DV. I need to conduct multiple regression. However for cases (rows in SPSS), where Middle Managers rate the 3 IVs, I have missing values for Directors' rating of the DV. How should I conduct regression...
I am trying to plot a two-component mixture distribution $F_X(x):.7N(0,1)+.3N(3,1)$ with density $$f_X(x) = {0.7 \over {\sqrt{2\pi}}} e^{−x^2/2} + {0.3 \over {\sqrt{2\pi}}}e^{−(x−3)^2/2} $$. I have done the histogram for it but having trouble with plotting the true density,so far this is my code x <- rep(na,2000) mu1 <...
I'm classifying text using the one-vs-all approach. There are three classes. I've trained 3 different binary SVM classifiers using 10-fold cross-validation. The accuracy of the binary classifiers is fairly high (above 0.8 for all three classes). Where I'm stuck is utilizing the result of the 3 classifiers to output...
I'm trying to find bursty(trending) terms in a text stream. There are two frame in a stream; expected frame and observed frame. For each frame, I tokenize documents(tweets/blog posts etc.) up into terms(words), so I have two term-frequency lists: For Expected Frame: term a, 2500 term b, 2000 term c, 1500 ... term m, ...
I understand how generative model of topic modeling works; for each topic there is a distribution of words, and for each document there is a distribution of topics. Question is how words are determined for each individual topic ? Does this change algorithm to algorithm ? Edit: Such as: Topic-1 : internet, web, search ...
My company has a software system, which, amongst other things runs payroll for its client companies. In the near future, the number of companies running payroll will jump from 100 to 3000. I'm trying to investigate whether the system will be able to cope with the new load. I can do a bit of basic analysis on the logs a...
I'm fairly new to the world of statistical analysis so please excuse me for asking a probable rookie question. I created a google forms survey and after I got the desired sample size I used the xls file to load my data to SPSS and experimented with different types of analysis. In my survey there are various node questi...
I have data on runners who run marathons; for each runner I have their final times on a number of races. I would like to predict how fast they are running considering outliers i.e. he's running faster than x hours with probability: x | P(x) 1:30 | 0% 2:00 | 1% 2:30 | 30% 3:00 | 66% 4:00 | 3% So, I have a...
Can the Johnson-Neyman moderation interaction technique be used with a categorical moderator (3 categories)? 60%, 80% and 100%. I am guessing that it could approximate the interaction effect at hypothetical values of the moderator. Although I have three groupings of the moderator, the moderator in reality is continuous...
I am trying to recreate analysis of diamond data in R and compare it to minitab output cited in http://www.amstat.org/publications/jse/v9n2/datasets.chu.html I'm almost certain its the same data set yet my results are different. I suspect I'm modeling it differently. I also noticed that I'm missing colourD and some ot...
Given that $Y$ follows multivariate normal distribution ,i.e, $N_n (0, \sigma^2 I_n)$, we want to find the distribution of $Y'Y$ given that $a'Y=0$ where $a$ is a non zero constant vector. I know that the distribution of $Y'Y$ would be $\sigma^2 \chi_n^2$ if the condition is not given. How to approach for the given con...
It is possible to test for interaction in Analysis of Covariance (ANCOVA) between the independent variable and the co-variate, but isn't “the homogeneity of regression slopes” an assumption that should not be violated in ANCOVA? If this is the case, then if we have an interaction between independent variable and co-va...
I am having some trouble understanding something that feels very basic in probability theory concerning the past history of repeated independent events. Consider the tossing of a fair coin. $P(\text{head}) = P(\text{tail}) = 0.5$. Repeated tosses are independent events. Let's say that we already have four Heads in a ro...
1200 pregnant patients were asked by the doctor/nurse if they smoke or not. Once the patient admits to smoking she is referred to quit smoking clinic. In the quit smoking clinic they are offered nicotine replacement therapy. The questions are: In the women who use nicotine replacement therapy do their babies do bette...
Thirty people are invited to a holiday party, where a gift exchange will take place. Each person brings a gift to put into the pot, and at the end of the night each person selects—at random—one gift from the pot to take home. The probability of one (1) person accidentally choosing their own gift from the pot is equal t...
I'm trying to determine the influence (direction and relative strength) of certain attributes of incoming students to an academic program on their successful completion of the program. My sample size is in the range of several hundred students. There are about 20 variables all together, all of which we could reasonably...
I am trying to design a model that can estimate the number of customers I will receive in every store every month using the number of customers I received every month in every store for the last five years up to and including the day before's numbers. How can I even approach this from a programming perspective? What ki...
I'm implementing the k-means algorithm myself. I don't see any obvious mistake in my code and it seems to work well. However, there's something I don't understand. My algorithm, working on vectors $x_i \in X$, cetroids $c_j \in C$ and labels $l_i \in L$ looks like: choose centers $C=\{c_1,c_2,...,c_k\}$ from $X_i$ ran...
I understand the definition of characteristic functions used in probability theory: For a random Variable $X$ with probability density function $f_X$ the characteristic function is defined as: $$\phi_X(t) = E(\exp(itX)) = \int_{\mathbf{R}} e^{\mathrm{i}tx}f_X(x)\, dx.$$ I read that [...] the characteristic function i...
I have been trying to find good resources on the internet describing what Wisard Neural Networks are and their differences with traditional Neural Networks but failed to find anything substantial. Can anybody please explain their main characteristics please?
I am currently using a hierarchical Bayesian framework to investigate a problem with both a single binary response variable and binary covariates, $P(Y=1 | X_i=1), i=1,\ldots,n$. Using R/JAGS I can characterize the coefficients, find the odds-ratios, etc. However, I would like to make statements regarding the inverse, ...
Many of my colleagues are considering using the M-PLUS package to carry out Hierarchical Linear Modeling, rather than the HLM 7 package. Both packages are designed by very well respected figures in the field of Hierachical Linear Modeling. Have any users seen distinct statistical advantages in using one package or th...
I want to create forecasting for a large quantity of time series. Since they are too many, I am thinking on reducing my data by clustering it into to similar groups. However, I am using SPSS modeler and it is not possible to cluster time series (only static data). Do you think it makes sense to apply clustering on sta...
A colleague and I have been clustering some data in SPSS (v19) and R (2.15), respectively. Using the same distance metric and agglomeration method, we get identical merge orders/agglomeration schedules in both programs, and the dendrograms have very similar shapes, but the actual height values are quite different. On t...
I am working on the Chinese economy and my topic of research is how external political instability can affect Chinese exports. So I want to estimate the Chinese export demand function for 1988-2011 with more than 130 countries. I want to estimate the regression equation given below. $$ \begin{align} \log(\mathrm{export...
I am trying to form a model on a set of data that I gathered from MT4. The OHLC and some MA slopes. I am trying to get the best guess for price change in the future. I am using # Packages require(quantmod) #for Lag() require(nnet) require(caret) #Fit model model <- train(change ~ Lag(change) + high + low + slope13 + ...
Consider the linear model $y = \mathbf{X}\mathbf{\beta} + \epsilon$. The residual variance-covariance matrix is given by $\text{Var}(\epsilon)$. Greene's textbook* states that: $$Var(\epsilon) = E[Var[\epsilon|\mathbf{X}]] + Var[E[\epsilon|\mathbf{X}]]$$ Why is this the case? Also, why is this useful? *Page 62 in Eco...
I intend to run a Binary Logit with Wholesale Price Index of different commodities. I have converted these scale variables into categorical variables with the following criterion: 1=Price has increased when compared to previous period 0=Price has remained stable or decreased in comparison to previous period With the a...
Please check my solution below for estimating Moving Average parameter using the Gauss-Newton (Linearization) method. I consider MA(1). MA(1) model: $$z_t=a_t-\theta_1a_{t-1}.$$ Solution: The residual of this model is, $$a_t=z_t+\theta_1a_{t-1}.$$ The residual sum of squares of this model is $$S(\theta_1)=\sum_{t=1}^Ta...
I have a time series and fitted an AR(I)MA object (I really just want an ARMA process so the order is (p,0,q)) in R. Now I'd like to "continue" that process (I guess what I mean is perform simulations). I found arima.sim() but I'm not sure how to get it to use my existing time series (that I'd like to "continue"). I ...
How can I deal with categorial features inside linear ML algorithms? The obvious solution is to represent each value as a binary feature. For example, if the categorical feature color has three possible values: red, blue and green, then we replace it with three binary features [color == red], [color == green], [color =...
this question is about Bayesian and computational statistics. I am learning them right now, I have two very common output from my software, one is Laplace approximation and the other is Modified harmonic mean. Both of them are used for approximation of log marginal likelihood, usually they have very close value. What a...
I have two sets of data (temperature and catch) and I am following a proposed method in an article I am reading on the empirical cumulative function (ECDF) analysis. Firstly, I have derived the ECDF for my temperature data using the ecdf function in R. The second step was to get the catch-weighted cumulative distributi...
I'd like to use R to generate two correlated series that follow IMA(1,1) process. rho is a correlation between the error terms, but when I changed the rho the plot does not change. Is it wrong if I use d[i,] <- d[i-1,] - theta*(e[i-1,]+e[i,]) ? rho < 0.1 mu <- c(400,400) theta <- c(0.1,0.1) d <- ts(matrix(0,ncol=2,nr...
Is there a really simple description of the practical differences between these two techniques? Both seem to be used for supervised learning (though association rules can also handle unsupervised). Both can be used for prediction The closest I've found to a 'good' description is from the Statsoft Textbook. They say A...
I have a question in respect to tree representation of a non-Boolean function. Is there any problem in representing a function from space Boolean->Limited Integer or Limited Integer->Limited integer by a (decision) tree? I don’t see any problem, but don’t find any remark about that on the net. Thanks for your contr...
I am currently developing a software application that runs and generates results several statistical tests using .Net libraries. I have been comparing my results to R and another (non free) statistical package. For ANOVA test I can compare against NIST data sets, however I was wondering if there were any similar data s...
Following a previous question I made I'd like to state once more that this is my first attempt at analyzing data with SPSS. I have encoded and transformed my data properly and I also used some of the basic analysis types like Frequencies and Descriptive and also Cross Tabs (reference: What are good basic statistics to ...
Asked this previously on Math.SE, maybe this fits here. I would like to understand the relation (if any) between the Cramer-Rao Lower Bound of estimation theory and the following simple definition of "reconstruction accuracy" which doesn't use any statistical framework. Let $\theta\in\Theta\subset \mathbb{R}^n$ be an ...
I'm beginner in R, Could you please explain how to use ses in forecast package of R forecast? I'd like to choose the number of initial periods and smoothing constant. d <- c(3,4,41,10,9,86,56,20,18,36,24,59,82,51,31,29,13,7,26,19,20,103,141,145,24,99,40,51,72,58,94,78,11,15,17,53,44,34,12,15,32,14,15,26,75,110,56,43,19...
I have a heavy tailed logNormal distribution and i want to know if it's possible to make a linear regression in order to compute R² and slope for this data. I make my linear regression on computed values log10(rank) and log10(population) (cf it's a rank size plot) I don't know if it's a good method, especially in the ...
In the arima function in R, what does order(1, 0, 12) mean? What are the values that can be assigned to p, d, q, and what is the process to find those values?
My application is a Cox model with n=685 and one continuous predictor mod <- coxph(srv ~ predi) summary(mod) gives a p-value for the coefficient of about $10^{-6}$ anova(mod) gives a p-value of $>10^{-4}$ I can reproduce these p-values using the Anova function in the car package: library(car) Anova(mod, test.statistic...
Should the likelihood be increasing in every step of the EM algorithm? I wrote an EM algorithm recently and the number it arrived does not seem to be the maximum. I know this because I used the optim function on R on the same problem and it arrived parameters which gave a bigger log-likelihood value. But even when I st...
I have a data set of 100,000+ event times. For this study an event begins (at time 0) and can run for an indeterminate amount of time. The bulk of events require a couple of hours to complete but there are also events that can take tens of hours to complete. I created a histogram of the times and it resembles a positiv...
I am trying to perform multinomial logistic regression on my data which is as below(just the header). "category" is my target variable and all other variables are independent variables. category has values like 1,2,3,4,5,6,7,8,9. My main motive is to predict category from independent variables. Here is summary of my d...
I have opened a thread about p-value under the title "Understanding p-value" and gotten two answers and some comments. I think my questions in the thread is somewhat diverse and want to clarify my question more explicitly based on the discussion in the thread. Two different definitions of the p-value were suggested in ...
I want to calculate the parameter $\lambda$ of the exponential distribution $e^{-\lambda x}$ from a sample population taken out of this distribution under biased conditions. As far as I know, for a sample of n values, the usual estimator is $\hat{\lambda} = \frac{n}{\sum x_i}$. However my sample is biased as follows: F...
I'm computing the Complexity Index using TraMineR. Does it make sense to use the bootstrap procedure in order to obtain the confidence intervals for the Complexity Indexes? In this case, is there a specific TraMineR command or should I use the classic way? Thank you, Emanuela
Why do people very rarely report the calibrated p-value which is: $$\mathcal{P}(p) = \frac{-ep \log(p)}{1-ep \log(p)}$$ This gives the probability that one falsely rejects the null hypothesis (i.e. Type 1 error). It is a lower bound.
I would like to use the stlf forecast function from the R package forecast (http://cran.r-project.org/web/packages/forecast/index.html) and include regressors in the model. Question 1: This can only be done using "" method="arima" "" - right? Question 2: For the model calibration the parameter "xreg" should work but h...
Can you give some real-life examples of time series for which a moving average process of order $q$, i.e. $$ y_t = \sum_{i=1}^q \theta_i \varepsilon_{t-i} + \varepsilon_t, \text{ where } \varepsilon_t \sim \mathcal{N}(0, \sigma^2) $$ has some a priori reason for being a good model? At least for me, autoregressive pro...
Two running teams take part in competitions on the same course, but their competitions differ because of the number of teams entered in each competition. Results are based solely on position - times are not taken. Competition 1 has 7 teams of 8 runners Each team enters 2 of its runners in each of 4 races Points are awa...
I have a fold enrichment table for different days as given below. I need to find the significance of every fold enrichment. fold_enrichment <- matrix(c(0.3,0.43,0.5,0, 0.23,1.3,0.5,1, 1,0,0,6, 0.3,0.5,0.2,2), 4, 4, dimnames = list(Day = c("Day1", "Day7", "Day14", "Day28"), Gr...
I have a hierarchical feature matrix, By that I mean that each item may belongs to one or more category, so my data will look something like that |  User |  Categ  | Item  | |  1       |   12      | 120   | |  2       |   15      | 411   | |  9       |   35      | 411   | |  1       |   15      | 321   | ...
Is there any statistical test or measure to evaluation the degree of correlation or dependence between two sets of data-points ?
I've read that Kolmogorov-Smirnov test should not be used to test the goodness of fit of a distribution whose parameters have been estimated from the sample. Does make sense to split my sample in two and use the first half for parameter estimation and the second one for KS-test? Thanks in advance
Can someone please explain Maximum Likelihood Estimation in very lay-man terms? I understand that the Likelihood function is obtained by multiplying all the probabilities in the distribution. Or if I am wrong, please correct.
I have a set of data to analyze and I would welcome some ideas. I have a series of independent observations when a call was produced by individuals. Each observation includes the ID of the caller, and information about other individuals in the vicinity (is there an ally? is there a friend?). There are about 400 of such...
To build a SVM-based classifier, I have a training data set consisting of N data points. Some of them are redundant. For instance, there have 50 data points which are exactly the same, and there have other 100 data points which are exactly the same. I have two choices, remove the redundant ones and construct the reduce...
I would like to model intraday electricity load data. I have quarter-hourly data for each day of the year. In many countries daylight saving time is practive. This has the consequence that once a year a day is 1 hour longer (it has 25 hours) and once a year a day is shorter (only 23 hours). I don't think that changing...
For linear regression, we can check the diagnostic plots (residuals plots, Normal QQ plots, etc) to check if the assumptions of linear regression are violated. For logistic regression, I am having trouble finding resources that explain how to diagnose the logistic regression model fit. Digging up some course notes for ...
I am trying to make predictions on my validation data using a decision tree model created with training data set. I am able to do that with success but, I am not able to calculate various metrics like Area under curve (AUC), and overall classification rate (ACC) using mmetric() command in R. Here is the screen shot wi...
I have two time series of a two realizations of a random process, the process fluctuate around an average so i consider that is a ergodic process. I compute the time correlation function, but i need the characteristic time scale, better known as the correlation time, but i don't know how, This time characterizes the ti...
I am using a linear model to predict under-nutrition in children under 5. The common metric discussed is stunting (a binary outcome) which is defined as being more than two standard deviations away from a standard age-for height (I'm predicting the z-score which underlies the stunting status). Below are overlapping h...
Hello I am trying to work with the tsDyn packages to fit time series. Save me a lot of time if I could get this package to work correctly. I am working with data that looks like this: time change high low slope13 slope50 slope200 prediction 1 2.008082e+13 -0.00150 0.00860 -0.00420 288.46154 185.2...
From Wikipedia a full factorial experiment is an experiment whose design consists of two or more factors, each with discrete possible values or "levels", and whose experimental units take on all possible combinations of these levels across all such factors. A full factorial design may also be called a fully crossed de...
I am trying to test the impact that independent variables, Growth, Inflation, and Z (good economy for several quarters), have on the presidential vote received by the incumbent party. My alternative hypothesis is that over the decades, the amount that these impacted the elections has not been constant. The reason I am ...
I think video streaming services e.g. tube like sites could become the next playground for data scientists, particularly I was quite interested in play rate enhacing and want to do some research about this topic. It came to me some ideas on how user-systen information could be analyzed in the way of building something ...
I have a non-ordinal categorical dependent variable with 3 choice outcomes and 20 ordinal categorical predictors and want to do a multinomial logistic regression. However, I want to reduce the predictors to just a few variables with factor analysis. SPSS gives regression factor scores as variables for each of my cases....
I was just wondering, just because I tend to wonder about these sort of things in my spare time, if there are any data pieces that are 1Gig+ that have 0 Statistical Redundancy? (i.e., uncompressible with lossless compression.) Is it even possible for a file larger than a few bytes to have such a trait? Is that property...
I have a list of the scores from various locations on different exams listed below. How can I compare the different test and scores to show which location is the best over all? It would really help if someone could inform which type of test to do and why. I first thought to use the Wilcoxon signed-rank test, but the...
I would be interested in computing the expected value of the following random variable $Y$. Let $X$ be either a $\mathrm{Bin}(p,N)$ or a $\mathrm{Hyp}(n,m,N)$ with $m$ number of successes (I would be interested in both proofs). Is there a way to compute the expected value of $$ Y = X \log X $$ I tried to go through t...
I am confused what is quantile in scipy.stats.norm.pdf function. Definition of quantile says that k-th of q-quantile is essentially value which divides population into k/q and (q-k)/q parts. But if I call scipy.stats.norm.pdf([0,1,2,3,4], 2, 9) then I will get vector v with 5 numbers. What v[i]' mean in this case? pro...