instruction
stringlengths
9
38.7k
Experience raising Labrador puppies revealed that the weight of the puppies at six months follow a normal distribution. The subsequent weights (in pounds) of a small sample of seven six-month puppies were: $$ \begin{array}{|c|c|} \hline \mbox{Puppy #}& \mbox{Weight} \\ \hline 1 & 16 \\ 2 & 46 \\ 3 & 34 \\ 4 & 31 \\ 5 &...
Wikipedia and the R sandwich package vignette give good information about the assumptions supporting OLS coefficient standard errors and the mathematical background of the sandwich estimators. I'm still not clear how the problem of residuals heteroscedasticity is addressed though, probably because I don't fully underst...
I have some practice homework questions. I did the first one I will go over the steps please tell me If I am doing it right. a) As mentioned earlier, it is claimed that 70% of households in Ontario now own large-screen TVs. You would like to verify this statement for your class in mass communications. If you want your...
What would be the best approach to choosing the multi-class strategy (MSVM, OVA, ECOC) for classifying a large number of classes with limited examples of each class? Another two factors that define the solution, in my case: The probability of prediction is an important factor that decides the next steps in my solu...
I was wondering about the motivation behind the following definition of expected loss: $$E[L] = \sum_{k} \sum_{j} \int_{R_{j}} L_{kj} p(x, C_{k})dx$$ where $L_{kj}$ is the loss matrix, in which $j$ is the predicted class and $k$ the true class, $R_{j}$ is the decision region corresponding to the $j$ class and $x$ is an...
Can a Random Forest be trained to appropriately predict count data? How would this proceed? I have quite a extensive range of values so classification doesn't really make sense. If I would use regression would I simply truncate the results? I'm quite lost here. Any ideas?
I'm trying to analyze a general game. This is probably well-known, in which case pointers to relevant literature would suffice (but explanation would not be declined!). If it's not standard, of course any help would be appreciated, even if short of a full answer. Suppose I have N objects (say, 100) with nontrivial prio...
I'm trying to fit a mathematical/theoretical model to empirical data, but the dataset is impractically big to fit all at once. (Specifically: I'm fitting a power law model using the methods of Clauset, Shalizi, & Newman (2007) - but I think the specific model doesn't matter for this question.) Is it true that, if I fit...
I have a question about plotting multiple linear regression results. I would like two graphs, one that shows the estimated relationship between d15N and avomc, and another that shows the relationship between d15N and N. My questions are: What are the equations giving the fitted values for these two relationships? Does...
I have a data set consisting of a number of time-series segments, i.e each segment contains n number of contiguous samples from a time-series. Are there any good statistical tests to determine how likely two segments come from the same probability distribution?
Suppose you have a measurement $Y_i$. Now suppose that the differences between two measurements $\delta_{ij}=Y_i-Y_j$ are an ordinal measurement. From my understanding, $Y_i$ is more informative than an ordinal measure because the differences are meaningful. But it also is less informative than an interval scale bec...
I consider the problem of (multiclass) classification based on time series of variable length $T$, that is, to find a function $$f(X_T) = y \in [1..K]\\ \text{for } X_T = (x_1, \dots, x_T)\\ \text{with } x_t \in \mathbb{R}^d ~,$$ via a global representation of the time serie by a set of selected features $v_i$ of fixed...
I am trying to work out how good my particular model is at explaining some observed data. The problem here is that the observed data takes the form of averaged (mean) values for each of my predictive scores. When performing a simple correlation, I get a really high R-squared value (and this is repeated for independen...
I am using WinBUGS to estimate / update the parameters of a model. The model is: $$ \begin{aligned} D(T,B,a)&= B*(a_0+a_1T+a_2T^2+a_3T^3)+error(B,T,a) \\ error &= \mathcal N(0, B^{0.5}a_4(a_0+a_1T+a_2T^2+a_3T^3)) \end{aligned} $$ where $D$ is an observed response, $B$ and $T$ are observed input parameters and $a_i$s...
Sorry if the title is a bit vague however, i'm not sure exactly how to make my sentence concise. I have two times series: Amount invested into Iraq across time (in months) Price of a stock across time (averaged each month) There area few things i want to find out however, i'm only at an intro level stats and economet...
Suppose $y$ is a continuous random variable and $d$ is a binary random variable that takes the value $1$ with probability $p$ and $0$ with probability $1-p$. How do I show that $\text{Cov}(y,d)=(E[y|d=1]-E[y|d=0])p(1-p)$?
For reasons owing to mathematical convenience, when finding MLEs (maximum likelihood estimates), it is often the log-likelihood function---as opposed to the standard likelihood function---which is maximised. From what I've gathered, this approach is deemed valid as a result of the monotonically increasing nature of the...
Consider that $P$ is the water pressure coming out from a valve A. Let $P_{dif}$ be defined as the difference between the maximum and the minimum pressure of valve A: $$P_{\text{dif}}:= P_{\text{max}} - P_{\text{min}}$$ Now, what I want to do is to estimate $P_{\text{dif}}$. In order to do that, I take a number of wat...
I'm wondering if there's an easy way of calculating an F-statistic / p-value for a subset of model coefficients. Particularly in R? I'm not sure what test would be needed to calculate this. For example, summary(lm(a~w+x+y+z)) will give me the F-statistic and p-value for the whole model, but is it possible to extract ...
I'm trying to understand what the difference between a standard HMM and a Bayesian HMM is. Wikipedia just briefly mentions how the model looks like but I need a more detailed tutorial. Does someone know of a paper or an implementation which I can look at? Also I have issues with the terminology used. What does it pract...
I have a GPS unit that outputs a noise measurement via covariance matrix $\Sigma$: $\Sigma = \left[\begin{matrix} \sigma_{xx} & \sigma_{xy} & \sigma_{xz} \\ \sigma_{yx} & \sigma_{yy} & \sigma_{yz} \\ \sigma_{xz} & \sigma_{yz} & \sigma_{zz} \end{matrix}\right] $ (there's also $t$ involved but let's ignore that for a se...
This is my first time posting here, so please forgive me if I am not following some form of etiquette. My question is in regard to the following evaluation design: We are examining the impact of policy X. It was implemented at the same time for all units j. We have the ability to collect measurements of A for all parti...
According to the wikipedia article on the lognormal distribution, the lognormal distribution is "the maximum entropy probability distribution for a random variate $X$ for which the mean and variance of $\log(X)$ is fixed". Is there a not too complicated account of what this means and how this is derived?
I have a lot of event-based data about users of our website. For example, data in the format (verb, timestamp). There's about 10 or so different verbs (call them A, B, C, etc). I'm interested in figuring out different events' contribution to a users' decision to purchase a membership. i.e. P(chance to buy in a given mo...
I have some raw data that comes from a simulation. I take the sample points, and produce a moving average variable, and plot it against time. So imagine a signal that has peaks and valleys. The peaks represent periods of high activity, and the valleys represent periods of low activity. What filter can I apply to this d...
I copied the exact question. Can anyone check my answer? I am so confused between the choices, all of them seems to be workable. An company divides their customers according to how long they take to pay their bills into three groups: fast (< 1 month), slow (1 to 6 months), incredibly slow (> 6 months). From their prev...
Suppose we have 3 variables: $y$, $x_1$ and $x_2$, $\text{Correlation}(y,x_1)=a_1>0$ and $\text{correlation}(y,x_2)=a_2>0$, (so when I do multi-linear regression, I want to get $y=c_1x_1+c_2x_2$ with $c_1>0$, $c_2>0$, but this is not always true.) Then I do the multi-linear regression $y$ as a function $x_1$ and $x_...
I need to "learn" the distribution of a bivariate gaussian with few samples, but a good hypothesis on the prior distribution, so I would like to use the bayesian approach. I defined my prior: $$ \mathbf{P}(\mathbf{\mu}) \sim \mathcal{N}(\mathbf{\mu_0},\mathbf{\Sigma_0}) $$ $$ \mathbf{\mu_0} = \begin{bmatrix} 0 \\ 0 \en...
I have dataset consisting of samples from a n-multivariate probability distribution, i.e each sample is a n-dimensional vector. The data source is known to be non-stationary in nature. I have been looking for ways to cluster the samples into subsets such that each subset represents at least a covariance or weakly stati...
Given a Markov random field $\mathcal{G} = (\mathcal{V},\mathcal{E})$, the corresponding density function to which is expressed by $f(x) \propto \prod_{x\in\mathcal{V}} \psi_u(x) \prod_{(x_i,x_j)\in\mathcal{E}} \psi_p(x_i,x_j; \theta)$ where $\psi_u$ is the unary potential and $\psi_p$ is the pairwise potential. Now a...
I estimated a non-linear model using the MATLAB function @fmincon which returns me a Log-likelihood value. I also estimate a linear model (OLS) from which I can compute the R². Here I need to compare the goodness of fit of the two models and see whether the non-linear model is statistically different from the linear mo...
The title might be somewhat misleading. I am trying to solve the following optimization problem and do not find any clues. Can any one help? I have a sequence of $n$ observation $s_i$. Each observation $s_i$ is a vector of $m$ positive real numbers ,i.e., $$\forall i\in[1,n]: \mathbf{s_i}\in\mathbb{R}^m_+$$. Now, let $...
I have a question about estimating the reliability (coefficient alpha) of a pilot scale by assessing its internal consistency. The pilot questionnaire generates ordinal data, 9 items each with 9 ordered catagories of response. The data set has 183 complete readings of the pilot scale. My question is: Is it legitimat...
I have never found a good explanation of what the ROC50 score is and how it is calculated. To take an example definition found on the net: The ROC50 score is the area under the ROC curve, up to the first 50 false positives So if I understand correctly, you look at how many correct positive classifications you have, u...
Does anyone know of a good reference that list the reasons for transforming multiple class classification problem into a set of binary sub-problems? In response to comment: One reason to transform a multiple class classification problem into a set of binary sub-problems are that a binary network is usually simpler and ...
I want to use PCA in this kind of situation. I have three variables: how many times something happened for user - positive integer; total "power" of all happened events for user - real number, can be negative percent of "successful hits" - real positive number 0 < x < 1 Wikipedia states that "PCA is sensitive to the ...
This is a question about a seemingly illogical approach to hypothesis testing and p-value interpretation that I find almost universally endorsed. I’ll cite the answers at Can I trust ANOVA results for a non-normally distributed DV? as an example. Wanting to conduct, say, an ANOVA but faced with non-normal distribution...
I have a problem interpreting the notion of "weak exogeneity in a VAR process". Assuming we have the following structural form: $y_t = b_{12}z_t + \gamma_{11}y_{t-1} + \gamma_{12}z_{t-1} + \epsilon_{yt}$ $z_t = b_{21}y_t + \gamma_{21}y_{t-1} + \gamma_{22}z_{t-1} + \epsilon_{zt}$ Does weak exogeneity imply that either $...
I have two alternative hierachical bayesian models that were designed to the describe the same process (from a high-level point-of-view). Both model provides comparable (but not identical) inferences on test data-sets and both exhibits satisfactory behaviours. So from a practical point-of-view, I have no reason to p...
I would like to know, if you got a significant interaction in a two-way repeated measures ANOVA in SPSS, how can you visualize the interaction (especially using syntax)?
I'm trying to fit a critical exponential function using nls. The function is of the form $y = a+ (b + cx)r^x$ and has a single maximum/minimum, a single inflection point and an asymptote. I can sort of estimate starting values for the parameters from the data (eg the asymptote), and this works some of the times, but I'...
I've a little question regarding the Discounted Cumulated Gain (DCG) (Sorry, I couldn't find the papers of Järvelin and Kekäläinen). Can this evaluation-metric be used when a information retrieval system has only a binary classification of relevance? If this topic is misplaced, please tell where I should post it. Than...
I want to use the Probabilistic graphical model toolkit for my research. (preferably MATLAB based). There seems to be pretty a lot of different toolkits available online (UGM, Bayes Net Toolbox for Matlab, PMTK:probabilistic modeling toolkit for Matlab/Octave,Mens X Machina Probabilistic Graphical Model Toolbox (PGM To...
I have spectral data which tells me how strong of a response in RGB values for some color-space I get for a particular wavelength of light. Typically, if I want "plain" white light, I'd have to sum up all the values in equal amounts and it should result in RGB #FFFFFF white. However, my data isn't normalized like that....
A friend recently posed to me the following problem: Is it possible to do a Chi-square on test results for a group of participants to determine if they made more of type A errors or type B errors? I know there are specific statistics intended for within-subjects table designs. However, I wanted to see if I could think...
I just want to confirm if it is possible to reverse the sign (+/-) on the factor loadings of one factor. I run a PAF with Oblimin rotation. I obtained 6 factors but in one of them the items that load into the factor have negative values. I have read that this is not relevant in terms of interpreting within a factor so ...
Why doesn't the scatter plot change when I perform multidimensional scaling on distance or similarity matrix? This figure uses similarity matrix And this figure use distance matrix (sqrt(1-similarity))
There is a statistical property - and I only know the name in German and cannot find any proper translation - that is defined as: variance explained of a specific regressor x1 in addition to the variance explained by all other regressors. That is, the shared variance is not included in the explained variance of this s...
Given an i.i.d. sample $X = (x_{1}, \dots, x_{n}) \sim N(\mu, 1)$. I have been asked to show that the likelihood of $\mu$ based on the whole sample is proportional to the likelihood based on $\bar{x}$ (the sample mean) alone. I'm a little confused by the phrasing of this question. I was hoping the perhaps somebody coul...
A conjecture that I have heard is this: When you add a quadratic or a cubic term to a linear latent growth curve model, the fit will always improve. Is this correct? Why/why not? As I have had the idea explained to me, adding additional terms will capture a additional portion of the variance and should therefore incr...
Let $f$ be a function such that: $$f~:~(x,~\theta)\in\mathbb{R}^{3}\times\mathbb{R}^{12} \rightarrow f(x,~\theta)\in\mathbb{R}^3$$ My observations $y$ are noisy values taken by the function $f(\cdot ,~\theta)$ for known values of $x$. I would like to estimate the conditional distribution of $\theta \in \mathbb{R}^{12}$...
Let $\rm CDF$ be the cumulative distribution function for the standard normal distribution. Let $Z$ be a standard normal random variable. Then $\textrm{CDF}(Z)$ is uniformly distributed on the unit interval, so by integration we can show that $E(\ln(\textrm{CDF}(Z))) = -1$. My question: there an easy way to compute $E[...
I am working on analyzing volumetric information extracted from the brain. In particular we would like to compare the strength of effects across three different regions (say x, y, and z). However, the three regions grossly differ in size (say y is 10 times larger than x, and z is 20 times larger than x). We would like ...
I am running experiments on cells which are given two different treatments. Treatment one is a control virus, and treatment two is an active virus. Due to the variability between cell lines, I always have to normalize the result from treatment two to that of the control treatment one. I then use a t-test to determine t...
I am trying to figure out what $\Sigma$ means in this GRS formula: $$F_{GRS} = \frac{T - K - N}{N} \frac{\hat{\alpha}^T \hat{\Sigma}^{-1} \hat{\alpha}} {1 + \hat{\mu}_{K}^T \hat{\Sigma}_{K}^{-1} \hat{\mu}_{K}} $$ The goal is to determine whether the alphas are statistically different from 0. First, we start with a mat...
I have a set of values, each of these values has its own mean and variance. I want to be able to account for this variance when I plot the histogram of the means. Something like an error bar on the bins. Is there a commonly used method to this?
In much of the literature I'm studying it's one of those terms that occurs frequently yet without a rigorous definition to be found. Specifically, I am told: For time-indexed random variables (RVs) $\{X_t\}$, the additive decomposition model is given as $$X_t = {ll}(X_{t-1}, X_{t-2}, \ldots) + {fc}(X_{t-1}, X_{t-2}, \...
I need to estimate what's the probability that the sum of the height of 3 women + 7 men is greater than 17m considering that men follow a normal distribution [mu=1.8 sd=0.10] and women [mu=1.6 sd=0.08], with a catch: I have PRE-selected only men with height lower than 1.9m and women with height lower than 1.75m. Any id...
I have two questions about Bonferroni adjustments: 1). Can one use the Bonferroni method to compare independent groups? The reason why I ask this is it seems that many examples I've encountered discuss the Bonferroni method in the context of comparing dependent groups - for example, multiple comparisons after repeated ...
I have data that map one real (float) and several nominal arguments to one real value: y = f(r, n1, n2, n3, n4) If I check dependency of y on r (r is my real-valued variable), I see that y depends linearly on r with a lot of noise on top of this dependency. Now I want to check if there is any dependency of y on nomina...
I have field measurements of spectral reflectance obtained for a research to map different vegatation assemblages. I have been able to use the median test and, Kruskal-wallis H test with Tukey post-hoc in SPSS to determine the vegetation assemblages with significant differences between them. However, I need to know the...
I want to conduct a usability study for a software programming tool. There are two versions of the tool (prototype A and prototype B) with different features, but allowing the same goals. I want the participants to complete a set of tasks using both versions of the tool and report the time taken. I'll compare the time ...
Were finalizing an RCT with two intervention groups (n=13, n=11). Both samples are evaluated pre vs post treatment for pain (VAS), and also against each other (group vs group). However, there are four subjects lost to post treatment in one of the groups (n13 --> n=9). Which statistic model/test would be appropriate to ...
In my data, each instance has several attributes as TRUE or FALSE. For example: Instance1: X1=TRUE, X2=TRUE, X3=FALSE, ... Instance2: X1=FALSE, X2=TRUE, X3=FALSE, ... I need to classify a TRUE/FALSE attribute, named Y, of each instance. So far, what I know is the conditional probability $P(Y|X_1), P(Y|X_2), ...$, and ...
My question: When doing SVD analysis, you can extract the maximum contributors to each component from the V matrix - does the sign of the the component matter? Background I'm currently enjoying the Coursera class on Data Analysis by Jeff Leek. It's a great course for filling in my knowledge gaps. In his lectures on clu...
Using the ksdensity function in matlab returns a density estimation in the form of 2 vectors f and xi. Where f are the density values and xi the corresponding points for the density values. How do I calculate the hellinger distance between 2 density estimations based on their f and xi ?
This is a question about classification. I am a neuroscience student with little experience of classification methods and I'd be grateful for any advice about the best way to implement a linear classifier (LDA) on this data. I have a magnetoencephalography dataset, recorded from people as they perform a cognitive task...
Here the setup: I have 90% of the data for training and other 10% for testing. I am doing stratified cross-validation on the 90% Tranining. It is a 10-class dataset. I am using LibSVM for that. When doing 10 fold cross-validation for tuning the Hypermarameters (C in the C-SVM) I get accuracies of 100%. Basically som...
Let $X_i$ be the distance between two nodes in a graph. $X_i \sim \mathrm{NB}(r,p)$ where $p \sim \mathrm{Beta}(\alpha, \beta)$. After the posterior hyperparameters are obtained, $\mathrm{Beta}(\alpha,\beta) – \mathrm{Beta}(\alpha’,\beta’)$ could be found which would correspond to the change in expected distance. Is it...
Our problem: model evolution of values of a continuous variable over time. I came through a paper presenting an approach for predicting the next values for a time series. Whereas ARIMA model is more accurate for long term prediction, ARTXP model is preferred to infer the next values. Microsoft library for Data Mining...
I have a 65 samples of 21-dimensional data (pasted here) and I am constructing the covariance matrix from it. When computed in C++ I get the covariance matrix pasted here. And when computed in matlab from the data (as shown below) I get the covariance matrix pasted here Matlab code for computing cov from data: data = c...
I would like to calculate coskewness of two random variables. However I couldn't find even basic information on this matter. Is there a standard definition? How to calculate it? If not what are my alternative options? Is it possible to have a normalized coskewness like correlation coefficient? Thanks
I understand in theory why the Mahalanobis distance is a good measure for mutlivariate outlier detection. However, everything I tend to read warns against calculating the inverse/pseudoinverse of a covariance matrix, which is needed to compute the mahalanobis distance. So, if nobody wants to compute the inverse, what ...
I have a series which takes values as 1,2 and 3. It also has some NA values. The following is a sample from the series. series1 <- c(1, 1, 2, 1, 1, 1, 1, 2, 2, 2, NA, NA, NA, 3, 2, 2, 1, 1, 1,1) My question is how should I go about doing the interpolation for the NAs. I can just do a linear interpolation and get the ...
When trying to model a latent growth model in lavaan and AMOS respectively, they seem to approach the time spacing of the slope estimates differently. Lavaan defaults to whole numbers increasing by time period: 0, 1, 2, 3, ..., while AMOS seems to default to fractions: 0, 0.11, 0.22, 0.33, ... . What differences in res...
I am attempting to explain a dichotomous outcome variable using a large set of continuous valued sensor-derived variables. Many of these variables are highly mutually correlated, some are based on solid physical concepts (and therefore easier to interpret) others are more abstract and difficult to explain. I am attempt...
I am building a program to predict the score in a game of twenty20 cricket. I have a series of 3D datapoints, calculated from a number of games I have data for. Along the x axis we have number of wickets a team has lost. Up the y axis we have number of runs they end up scoring. And in the z axis we have number of overs...
I am reading Klein and Manning's notes on Maximum Entropy for Natural Language Processing. On slide 22, they have an equation saying, $P(C|D,\lambda) = \Pi _{(c,d)\in (C,D)} P(c|d,\lambda)$. I am not sure how they obtain this or what it really means. In the coursera video on this topic, Manning says that this follows ...
I have a control condition A and several other conditions (B, C, D, etc.) against which I want to test A for differences (i.e. A vs B, A vs C, A vs D, etc.). Is it correct to run: ttest(A, B); ttest(A, C); ttest(A, D); and treat them separetely? Thank you very much.
I have tried asking this on another forum, but after 4 months there are no posted answers, so I am asking it here: What is the current state of the art approach for determining the pose of a person (including close poses like a head shot, and hand shot, etc...), and for segmenting the person from the background? The se...
I am designing a questionnaire to compare user experience of usage of a two prototypes of a software - prototype A and B. Users will rate prototype A for a task and then prototype B for performing the same task based on a 5 point Likert scale. The questionnaire will contain 5 questions related to the various measures o...
When I want to compare the means between two groups I use a t-test. But how do I check whether the means of three groups are equal or statistically different? E.g. compare the average labour productivity of small, medium and large firms.
$\quad$ I have a friend of mine who is a bit of a gambler ask me this question. He is of poor mathematical background, but has a sense of logic and will probably accept a logical answer in the natural language. $\quad$ So my friend asked me if the probability of an outcome would change in consecutive trials of playing ...
I created a time series in Excel (not ideal) using Holts-Winters to forecast daily loan values in a month and it works very well. I've been asked to build a similar model that integrates other variables but other than a multiple regression model (which has it's own issues) I'm not sure with my limited experience how I ...
I am somewhat new to statistics, so bear with me. I have a dataset that contains integer values. I created a model for this dataset such that y(x) = f(x) + c where f(x) is my model and c is the error in my model. My f function is continuous, and therefore f(x) is continuous. I am assuming that c is noise, and I am try...
validated readers, Is someone allowed to manually change sign of an estimate (obtained through a OLS), if this is supported by an underlying theory? My first idea was that this is basically a manipulation, which forces the estimates to go in the direction we want to; in fact, the sign of the estimate should directly ca...
I am using an accelerated failure time model with the Weibull distribution to predict failure times. My failure times range from 1 - 365, with many (80%) data points that are right censored (no observed failure). Among the observations that did have a failure, the median time to failure was 90 days. When you include...
This is my homework: There are 20 million DNA molecules in a library for high throughput DNA sequencing, each sequencing run can generate 10 million reads (i.e., analyze 10 millions of DNA molecules), and there is variation in the selection probabilities across each DNA molecule, which follows a negative binomial distr...
I should use the bagging (bootstrap aggregating) technique in order to train a random forest classifier. I read here the description of this learning technique, but I have not figured out how I initially organize the dataset. Currently I first load all the positive examples and immediately after the negative ones. More...
A few months ago, I posted these two questions about practical considerations in collecting data for a network meta-analysis and the available R packages that can analyze such data. For those unfamiliar with network meta-analysis, it is a method that compares a set of treatments against each other. Part of what's att...
I hate talking about "outliers," because I view that term as encompassing two entirely different concepts. The first is when it refers to data that was incorrectly recorded or measured. For instance, a 400000 bedroom house for 4 dollars or a person that is 180 inches tall. There are various techniques to handle thes...
I know there are a slew of lmer specification questions already floating around. Please let me know if this is a duplicate, or if it is deemed off-topic, and I'll delete it. I am using a forward stepwise approach in an attempt to optimially specify the random effects structure for my data. The base model I am attempt...
Context: Hierarchical regression with some missing data. Question: How do I use full information maximum likelihood (FIML) estimation to address missing data in R? Is there a package you would recommend, and what are typical steps? Online resources and examples would be very helpful too. P.S.: I'm a social scientist ...
Background I have a set of data points in high-dimensional (512D) space that I wish to map to 2D for visualisation. I am interested in observing in 2D the (approximate) relative distances between the data points and their general spatial structure. Currently I am using multidimensional scaling within Matlab to do this:...
I have two questions: I use cross validation to select a LASSO model, does the step in which a particular variable enter, indicate its relative importance? Let's age enter in step 1 and sex enter in step 2, country enter in step 3. Can I make the claim that age is more important than sex , which in turn is more import...
I am building a neural network. Each perceptron in the network uses a sigmoid activation function. Must I normalize my inputs (which currently range form 0 to 1200)? I ask this because the sigmoid function approaches 1 as the input to it approaches infinity. Hence, if my input is not between 0 and 1, I'm afraid that th...
So I am having a problem specifying my model in OpenBUGS. A set of vectors in a linear regression model is given a multivariate normal prior with a constant mean vector and a constant precision matrix which is multiplied by a parameter with a hyperprior of a gamma distribution. The code is as follows: model{ #likelihoo...
I am simulating the effect of certain conditions on estimates obtained using OLS regression. In running 100 replications I get 100 sets of standard errors for the regression coefficients. How do I calculate the standard error of the estimates? Is it simply the standard deviation of the estimated standard errors for ...
I am doing disease classification (i.e. a person is classified as normal or abnormal) using naive Bayes and SMO classifiers. I have around 30 attributes. Out of these I need to select the most relevant attributes. I am trying to choose the best attributes using Information Gain. Is this a better method? Please help me ...
I'm looking for an example of a data set that can be fitted using a GLMM with at least 3 separate random effects. I've taken a look at a few books on GLMM's including the one by McCulloch and Searle, but their examples always stop at 2 random effects. I don't know why I'm having so much trouble wrapping my head around ...