instruction
stringlengths
9
38.7k
I have used the custom tables feature in SPSS for my job almost every day. I am trying to learn R. How can I recreate the custom tables functionality in R? Is there some specific package that I need to use?
I'm trying to model a time series variable that represents a percentage, strictly bounded between 0 and 1, that is also non-stationary about the mean. Is there a model form that is able to account for non-stationary behavior while producing forecasts within the [0,1] interval? I came across the following work while res...
I am reviewing a paper where I found this sentence repeatedly: A is statistically insignificantly worse than B I consider this to be confusing since, for me at least, it is not immediately clear if it is the same as: A is not statistically significantly worse than B Maybe the authors are trying to convey the fact t...
$$ y_t = θy_{t−1} + u_t \\ t = 1,...,T; $$ I need to derive a formula for $y_t$ and show that $$ E\left[\frac{\Sigma y_{t-1}u_t}{ \Sigma(y_{t-1})^2}\right] \neq 0 $$
Often we combine related graphics to help us better understand a problem. We do this for poster talks in research (though we include text). Many info-graphics also do this as do this as do dashboards. The problem is I don't know the proper term for Combining related graphics, including static graphs. lattice, faceti...
I've been tasked with performing a propensity score matching and to measure the standardised difference for every covariate to assess the quality of fit. Details are given here and some SAS code here. For completeness, the standardised difference is defined for continuous covariates as: $$ \frac{(\bar{x}_1-\bar{x}_0)}{...
I am using the nls function in R to perform a nonlinear regression and need to calculate the studentized residuals. Is this something I need to manually do? It seems like I need to manually do a QR decomposition and calculate the hat matrix to do this. I don't have a problem doing this but I wanted to ask if anyone ...
Suppose I have a statistics (say a price index) and I want to obtain standard errors for it. I have heard that blind application of bootstrap may not be a good practice. If true 1- What could go wrong if I just apply nonparametric bootstrap and obtain standard errors for my index? 2- If it is OK, are the rsulting sta...
I have same data and I would like to choose a model for it. To start with I fit an exponential distribution and a gamma distribution. Now I wanted to do a simple likelihood ratio test . However, I am told that to do this properly the two models have to be nested (which they are) and the parameter space of one has to ...
I am new to bootstrapping. Assume I have some non-normal data, can be any distribution, it doesn't matter, and I want to find a confidence interval for the mean, median and standard deviation. For the median this question is relevant also for the normal case. What I don't know is (and asking you to help with) is: I und...
I'm searching for a combination of sensitivity and specificity cost function because i want have more weight for sensitivity ( sensitivity is more impotent for me rather than specificity). After searching i found this : Final_Cost = ( (Cb/Cg)/( 1+(Cb/Cg) )*Bg + ( 1/( 1+(Cb/Cg) ) )*Gb Cb is misclassification cost of po...
This question is a technical follow-up of this question. I have trouble understanding and replicating the model presented in Raftery (1988): Inference for the binomial $N$ parameter: a hierarchical Bayes approach in WinBUGS/OpenBUGS/JAGS. It is not only about code though so it should be on-topic here. Background Let $x...
I'm working on a small project in which I try to compare directed a-cyclic graphs. Say I have (directed) three graphs: 1) X / \ / \ START - X - X - X - X - END \ \ X 2) X - X - X - X / ...
I am a soon-to-be physician. During my studies I have taken a class in biostatistics. I own Martin Bland's "An introduction to medical statistics", which was a required textbooks at the time, and Harvey Motulsky's "Intuitive biostatistics", which I've purchased on my own initiative based on positive reviews on Amazon. ...
I have a model for which I know the log likelihood function, the gradient of the log likelihood and the Hessian of the log likelihood. For given data I can compute the MLE using a generic optimizer (Nelder-Mead). How do I compute (or estimate) the standard error for the MLE? If there is existing software that makes...
I'm using optimization algorithm to find best structure+inputs of a patternnet neural network in MATLAB R2014a using 10-fold cross validation. Where should i initialize weights of my neural network? *Position_1(rng,configure,randperm?)* for i=1:number_of_loops *Position_2(rng,configure,randperm?)* - repeating cross ...
I generated some data according to a mixture of two lognormals: $f(x) = p \cdot \mathcal LN(\mu_1, \sigma) + (1-p) \cdot \mathcal LN (\mu_2, \sigma)$. given $p$ and $\sigma$, this is my code to find $\mu_1, \mu_2$ by MCMC with the mcmcPack R Package: the mixture density: d.lognorm.mix <- function(x,p=0.7,mu1,mu2,sigma=...
Say there are two groups, each with n=500, with y=weight in pounds. The sample mean and sample standard deviation of weight are given: Exercise(X=1): Mean=170, SD=20 Non-Exercise(X=0): Mean=190, SD=20 a. Would the regression equation be: y=b0+b1x, so y=190-20x? And the interpretation: The mean different in weight be...
I am trying to understand under what circumstances the log likelihood function of a point process concave. Assume that the process can be defined by a conditional intensity function and that the log likelihood function exists. Is there a general theory or good reference for understanding when the log likelihood funct...
I know that the Central Limit Theorem states that if a random sample of size $n$ is drawn from iid random variables $X_1, \ldots, X_n$, then the variable $$ Z = \frac{\hat x - E(X) }{{\rm sd}(\hat x)}\text{ is }\mathcal N(0,1) $$ as $n$ is big enough (where $\hat x$ denotes the sample average). My question is: What ab...
I'm faced with a practical problem of solving for a 1-D function which has noise, so find myself in the territory of stochastic approximation (and I am well out of my comfort zone here!). I know there is some literature on the problem, but I've yet to find anything on the particular case I have in mind, where the nois...
I am doing two sampled t test on two species of fish. t.test(fish1,fish2) It runs for a year so there are 365 values for each fish, i.e. $(1,0,1,0,0,2...)$ and $(0,0,01,21,0,5...)$. Yet the $df =368.586, t=2.2205, p=0.02699$, and the 95% confidence interval: $(0.1454645, 2.3970013)$. The sample means are Mean of x ...
Background I am a physics major, however I am currently interning at a psychiatry/neuro-imaging laboratory. The primary area of research in my lab is diffusion tensor imaging (DTI). A lot of the studies that are conducted here are group comparisons between "normal" controls, and patients whose brains are to some degree...
I have a set of numbers generated from Gamma distribution. How can I verify that these values were all randomly generated from Gamma or satisfy Gamma distribution?
I am new to multimodel inference. I am trying to create a model that has multiple categorical factors and possible interactions. For example say that my model is... Y ~ X1 + factor(X2) + factor(X3) say each factor has two possible categories. R is only giving me AIC in my summary output. When calculating AICc would K...
I am trying to test the hypothesis that related species should deviate more in niche space the more they overlap in geographic space. In other words, related species either forage similarly and don't show a lot of geographic overlap, or if they overlap a lot geographically, then they have shifted a lot in niche space. ...
I have a few parameters that are related (let's call them X1 and X2), and I want to use whichever one will provide the strongest model. The model has many other parameters. Would I simply be able to compare the AICc of these two models? Model using X1: Y ~ X1 + X3 + X4 + X5 + X6 Model using X2: Y ~ X2 + X3 + X4 + X5 ...
Using CARET package one can perform an analysis on differences between various models obtained using a dataset (the training dataset, trainSet) and the model that best fits the trainSet: For example, two models were determined using train function, marsFit and rfFit: resamps <- resamples(list(MARSCV = marsFit,RFCV = rf...
I am trying to follow up the example code in the "Building Predictive Models in R Using the caret Package" paper from Max Kuhn[1]. Here is the part of the code: library("caret") set.seed(1) inTrain <- createDataPartition(mutagen, p = 3/4, list = FALSE) However, after the following, trainDescr<-descr[ inTrain, ] Error...
I calculated the root mean squared error (RMSE) to compare the simulated values of a hydrologic model with the corresponding observations for three observational datasets.The number of data points in these datasets are 30, 40, and 60. How to find out if the RMSE values calculated with respect to these datasets are equi...
I would like to hear recommendations on what tools to use to graph the usage of precedents in a legal court in Brazil. The data is searchable at www.stj.jus.br/SCON/, and in the most recent collegiate decisions ('acórdão') database, a field ('Veja') is provided listing the cited cases. My objective would be to graph th...
I am training Restricted Boltzmann MAchine with MNIST Datasets. As per my understanding if it can reconstruct input proper then i will say it learnt. But, when i use Persistent Contrastive Divergence, it will not reconstruct proper because positive and negative phase samples doesnot match. In this case, how i will find...
I have been asked to produce a pie graph of some categorical data. On a simple scale it look like this: House 1: Speak a foreign language , own a computer House 2: Only lived in by women House 3: Only lived in by women, speak a foreign language House 4: Has pets House 5: Has pets, own a computer House 6: Speak a foreig...
I am new to statistics and would really appreciate help. The people within the groups are different - how do I compare the percentages to see if there is a statistical significance between the groups that had training and between the group that did not It looks something like this: group 1 had training and wo...
I am currently working on a modification of a clustering algorithm to suit my problem domain. I want to know which methods are available for me to compare the centroids generated from the two methods? That is, I want to know how well my (modified) clustering method agrees with the current method, the current method be...
In my regression model of BMR on age (yrs) , gender (1=male, 0=female), height and weight. The regression equation obtained is: BMR = 1232.059+13.281 weight+3.954 age+192.214 male-3.471 age:gender. Please interpret the negative coefficient of age:gender interaction. Do the negative coefficient have anything to do with ...
I am wondering if I understand those terms correctly. To summarize my thoughts: In naive Bayes, our decision rule is basically the Maximum a posteriori (MAP) estimate of our hypothesis. We assign an observation $\pmb x$ to the class $\omega_j$ that has the largest posterior probability: \begin{equation} \underset{j = 1...
Can some one help me to understand the right scale of measurement to use in sign test as well as in signed rank test? I read a certain book it says nominal scale is used in sign test while ordinal scale is used in the signed rank test, the other online material says ordinal scale is used in both sign test and signed r...
I have to do forecasting of sales that is how much sales of a product is going to happen in a particular store. I have time series data for last two years and doing forecasting for 2014. The variables are promotion flag ( Yes/ No ), promotion period, location in a store, price discount. These all are categorical variab...
I am trying to createFolds function in caret to use k-fold cross-validation in R. But I came across this warning: Warning messages: 1: In foldVector[which(y == dimnames(numInClass)$y[i])] <- sample(seqVector) : number of items to replace is not a multiple of replacement length Has anyone come across this before & s...
My data was collected using Randomized Response Technique. So I have additional variability into the data. I have a binary response variable. Should I customize a logit link function to incorporate the known probabilities of Randomized Response Technique to perform a logistic regression? I would like to know if this ap...
First of all, what is the difference between the Mann-Whitney and Wilcoxon rank-sum test? How do I choose between the two? I know the latter is implemented in R, is there a way to do the Mann-Whitney test? Is there a way I can include my (very large) datasets in this post so you can get an idea of what I'm trying to do...
This question is based on the example 11.1 out of the book Applied linear statistical models of Kutner, Nachtsheim, Neter and Li. You can find the data here. First they calculate a simple linear model: Call: lm(formula = Bloodpressure ~ Age, data = data) Residuals: Min 1Q Median 3Q Max -16.478...
When evaluating clustering methods which do have a definition for noise points (like dbscan), how noise will affect evaluation? Consider a clean dataset like well known Iris dataset. There is no noise in it. In evaluation metrics like homogeneity should we remove noise labels and then compute the metric? Ex: True_label...
I'm working with model 2 of INLA's Zambia example in R: formula.mod2 = hazstd ~ f(agc, model = "rw2") + f(district, model="besag", graph = g, param = c(1,0.01)) + f(distr.unstruct, model="iid", param = c(1,0.01)) + edu1 + edu2 + tpr + sex + bmi mod2 = inla(formula.mod2, data = Zambia, control.family = list(ini...
I am working with a large scale deterministic model, which attempts to simulate CO2 emissions in different regions. When compared to historic data, the model output suffers from systematic biases. Here are plots for two regions (model output in blue, historic data in red) : I am searching for a method to estimate th...
My plain regression looks as follows: tendaystockreturn = alpha + beta * dummy variable that takes a value of 1 in case a director purchases shares Now I want to test whether a subgroup of directors will have a higher beta. In other words, I want to know whether the beta of a subgroup differs from the beta of the overa...
In chapter 2 ESL book authors write: Let's look at example of linear model in a classification context They fit a simple linear model $g = 0.3290614 -0.0226360\cdot x_1 + 0.2495983 \cdot x_2 + e$, where $g$ is given with values $0$ or $1$. Then they made a decision boundary where $\hat{G}$ is Orange, if $\hat{y}>0....
I have a generic question about whether it might sometimes make sense to fix specific regression coefficients to predetermined values. And if this makes sense in particular cases, how do you best go about it? In my case, I have about 1,600 observations but I am interested chiefly in a variable for which about 600 obser...
PredictionIO is good to be enough for content discovery and recommendation but it seems it does not support classification. Then I should use a different tool then Prediction IO for my prediction server. Do you know good alternatives? I know Google Prediction Server, Azure ML, BigML and looking for more alternatives t...
I'm using infer.net for implementing a dynamic Bayesian network model. every node in each layer is dependent on all nodes in previous layer (we want to train wji, the weights of edges between each node j from the previous level (time t-1) to node i in current level (time t)). node values are shown by yi (value of node ...
There is a four category classification system for individuals with HIV, labeled Stages 1, 2, 3, and 4, with higher stages indicating more advanced disease. Cell count is a continuous variable, and you are interested in comparing mean cell count between those in different stages. My question is how does the model chang...
I am reading the following paper: http://www-biba.inrialpes.fr/Jaynes/cc07s.pdf and cannot seem to figure out how Jaynes is deriving (P2) and below (specifically the log arithmetic log[f(x)/f(0)]....) Can someone help me out?
Say I have a dataset with several continuous and categorical variables, and I want to identify what variables (values or properties of these variables) may cause one of the continuous variables to increase. How can I model this problem? Several approaches come to mind (e.g. logistic regression, ANOVA, decision trees) b...
I am trying to prove the following inequality: EDIT: Almost immediately after I posted this question, I discovered that the inequality I am being asked to prove is called Cantelli's inequality. When I wrote this up, I didn't realize this particular inequality had a name. I have found multiple proofs through Google, so ...
I'm using R.After getting an error asking me to provide starting values for a glm (poisson family), I took a look at my data and realized I had quite a bit of zeroes. So, I tried zeroinfl from pscl. I got the "computationally singular" error, so I tried dist="negbin". Same error. I looked at my data via with(bytype, ta...
I have a small pilot dataset containing experimental measurements for 12 samples, 4 numeric predictors and 1 numeric outcome variable. The goal is to obtain a first rough estimate on the extent to which the outcome variable can be predicted using one or more of the 4 predictors, before deciding on whether it's worthwil...
So I am having trouble understanding what this problem is asking. (I am not asking someone to solve it but simply help interpret what the problem wants me to do.) The problem goes like this: "Let $A$, $B$, and $C$ be three events. Show that exactly two of these events will occur with probability $P(AB) + P(AC) + P(BC...
I have the following GLMM: success ~ age + gender + group/task + (1 + group/task|school/subject), family = binomial I want to know whether participants' probability to succeed in certain problem-solving tasks can be predicted by the type of task. I have 6 tasks which can be categorized into 3 groups (A, B, C) with 2...
I have a dependent variable, which have 0, 1, 2, or 3 for its value. I asked participants to choose three items and coded 1 if it is in a certain category and 0 otherwise. I add the three binary variables to be my dependent variable. So 3 is the maximum value of the variable. I know that Poisson regression is used a lo...
I'm using ca.jo in R to perform the Johansen test on a given dataset. I obtain my VECM coefficients, cointegration rank, etc. However, it does not seem to give any notion of "strength of relationship" or "goodness of fit". So my questions are: 1 - What is a standard/reliable way to measure how strong the relationship i...
I am fairly new to R, but am experienced in other languages and also in data analysis in the physical sciences. I have a problem and will illustrate with a straight line fit using lm() In the physical sciences, if the dependent variable (y) has explicit uncertainties (also called errors) and those uncertainties all hav...
How is batch demand forecasting done in retail like in Walmart where number of products to forecast are very large in number and products are short lived i.e have less than 36 months of historical data? I know there statistical methods like ARIMA, exponential smoothing, but in retail (for example Walmart) there are 100...
Having the Netflix challenge in mind: collaborative filtering is typically presented as a matrix dimension reduction. My question is how does the problem relate to classical regression (supervised learning) problems? Can it be seen as an instance of these or does it differ in some fundamental way?
Context: The variance of a sum of independent random walks is a sum of their variances: $\sigma^2 = \sigma_1^2 + \sigma_2^2$. In case of a dependent random walks with bivariate normal distribution it will be $\sigma^2 = \sigma_1^2 + \sigma_2^2 + 2 \rho \sigma_1 \sigma_2$. Question: Is there any known class of dependent...
Assume I have a small sample size, e.g. N=100, and two classes. How should I choose the training, cross-validation, and test set sizes for machine learning? I would intuitively pick Training set size as 50 Cross validation set size 25, and Test size as 25. But probably this makes more or less sense. How should I real...
If I were expressing a problem in terms of binary features, all encoded as {0,1}, could I boost some features by encoding them as {0,2}? Would the effect change based on whether I used either of the approaches above (logistic regression or linear SVMs?) Any paper recommendations that would explain the mathematics?
I have a group of correlation coefficients (more than two). They are all dependent on one variable A in the form of r_A1, r_A2, r_A3....r_Ak, where 1, 2 ...k denote other variables; they all have the same sample size. My question is: what statistics should I use when I want to know whether any one of the correlation c...
Is there some restriction to parameters $( \alpha , \beta)$ that makes the beta distribution concave down? Bell-shaped like e.g. a normal? For example, the cases in purple and black, but not the red green or blue cases:
I am trying to use the "car" command in "cts package" in R program and I see the "scale" parameter there. I wonder whether this can be assumed to be equivalent to time intervals for time series forecasting. For example, the code is like this: car(x, y=NULL, scale = 1.5, order = 3, ctrl=car_control()) and the official...
I'm about to get my PhD. My background is in engineering and applied mathematics. My research in statistical & machine learning methods for biological applications (without being too specific). I love mathematics and doing research, but I'm astoundingly terrible at politics and I think I have 0 chance of success in ac...
I want to see if there is any correlation between number of pages in a paper and the citation it receives. If I just plot number of pages vs number of citations of a paper, I might get a correlation, but that might be wrong, because there are other variables such as age of the paper, venue impact factor etc. How to get...
I am trying to fit an ARMAX with two exogenous time series with the following code but it gives me an "computationally singular" error. I know it is about defining more than 2 time series for xreg because when I include only one exogenous it works! This is link for data library(forecast) data<-read.csv("DATA.csv") Y1...
I'm trying to understand how A/B testing works for a simple 2x2 contingency table. I have found two different types of solutions: 1) Calculate an aggregate probability of conversion assuming that there is no difference in the conversion rate between version A and version B. Then, perform a chi-squared goodness-of-fit ...
For a machine learning class I am taking, on our first homework assignment we are given the following problem that has me stuck: Consider the following simulated data set: set.seed(123) n<-100 X<-runif(n) Y<-rbinom(n,1,exp(0.5+X)/(1+exp(0.5+X))) a) Find the Bayes' classifier b) Construct an empirical version of the B...
Various hypothesis tests, such as the $\chi^{2}$ GOF test, Kolmogorov-Smirnov, Anderson-Darling, etc., follow this basic format: $H_0$: The data follow the given distribution. $H_1$: The data do not follow the given distribution. Typically, one assesses the claim that some given data follows some given distribution, an...
I would like to evaluate the goodness-of-fit of the following (Pareto-like) distribution: $$ f(r) = \sigma \centerdot r^{-\rho} $$ The function estimates the population of cities given the rank $r$ in a popularity ranking. I have not estimated the parameters ($\sigma$ and $\rho$) from the sample. However, I am unsure h...
I am working with a survey dataset which contains hundreds of variables. The item-missing data rate ranges from 0.2% to 10%. In order to retain study units with missing values and to maintain a reasonable statistical power for my analyses, I attempted to do multiple imputation using sequential regression (chained equat...
Say I have a random vector $Y\sim N(X\beta,\Sigma)$ and $\Sigma\neq\sigma^2 I$. That is, the elements of $Y$ (given $X\beta$) are correlated. The natural estimator of $\beta$ is $(X'\Sigma^{-1}X)^{-1}X'\Sigma^{-1}Y$, and $\text{var}(\hat{\beta})=(X'\Sigma^{-1}X)^{-1}$ In a design context, the experimenter can fiddle wi...
I was doing some reading about categorical data analysis (e.g. Agresti (2010): Analysis of Ordinal Categorical Data). Additionally to analysing data with an ordinal response with the help of proportional odds cummulative mixed effects models it seems some people suggest e.g. to use the glmer() function from lme4 in R t...
I am currently trying to analyse data from an experiment of mine and I have done some searching for instructions on the usage of the lme() function for R, since I am looking to analyse my data with a linear mixed effects approach. However, In case lme() does work out, I am not sure how to fit a model to my data. In ca...
Let $a \sim\mathcal{N}(6.532056,0.06532056)$,$b \sim\mathcal{N}(8.390961,0.08390961)$ and $c \sim\mathcal{N}(8.736566,0.08736566)$. We use $\mathcal{N}(\mu,\sigma^2)$ notation unless specified otherwise. We construct two normal variables $x = a-b$ and $y = a-c$. So, $x \sim\mathcal{N}(-1.858905,0.14923017)$ and $y \sim...
I am studying the distribution of a marine species using the number of sightings as a dependent variable. When I am trying to validate the plots of the best model I am getting a non-usual pattern, and then I decided to get the null model with different distributions, and I don’t know what is causing the different level...
If the following generalized linear model was used, how should I interpret the error term? link function: natural log distribution: Gamma distribution i.e., $\ln E(Y)=X\beta$ and $E(Y)=\exp(X\beta)$ It seems that the error term should be additive: $Y=\exp(X\beta)+\epsilon$ However, after some algebra, it becomes: $Y=\e...
I am investigating the effect of genomic dysmethylation on cancer survival time, with data from multiple different cancers with very different survival curves. Normally, I would split the cases into high and low dysmethylation, and do a log-rank test on the Kaplan-Meier curves. This isn't possible because for each can...
I want to test a model using discriminant function analysis. My question, as the title states, is very basic: What is a discriminant function? That is, how can I interpret the different discriminant functions? I'll briefly explain this question. I have several continuous variables, and a categorical variable (with $N =...
I have collected ratings on a scale from 0 to 100 for two different conditions: A and B. I want to show now, that the ratings collected under both conditions are very similar and that their range overlap. How can I do that best? I thought about drawing a box plot for both conditions, but I would prefer a number / numbe...
From Wikipedia The Net Promoter Score is obtained by asking customers a single question on a 0 to 10 rating scale, where 10 is "extremely likely" and 0 is "not at all likely": "How likely is it that you would recommend our company to a friend or colleague?" Based on their responses, customers are categorized i...
I am working with a data set of students and their courses for a single semester, attempting to cluster based on the courses & various other attributes where "courses" are the "many" side of a one-to-many relationship. If it matters, I have R, JMP and RapidMiner at my disposal. I can propositionalize the data set in in...
Here is the situation: I have an individual level data set $X$ where each row is a person $i$ and each column denote characteristics of $i$. The problem is that my data is missing an important variable, lets call this $z_{i}$. To resolve this situation I am considering using data imputation. Note, I have not done this...
I am trying to analyze multiple variables of our student population as it comes to assessment outcomes. I have the assessment change score and demographic information such as (race, sex, age, program, # of programs, time of service, # of services). I am trying to ascertain which variables are significant to the change ...
I just read about the deviance measure for the logistic regression. However, the part that is called saturated model is not clear to me. I did an extensive Google search but none of the results answered my question. So far I found out that a saturated model has a parameter for each observation which as a consequence r...
I think I need to use a Poisson-family regression or negative binomial regression. My variables are as follows: Y is an integer value ranging from 0 to ~1200. It represents sums (number of species summed over an areal unit). There are in fact many zeroes but no negative values. X1 is a categorical variable, x2 is conti...
Trying to build a predictive model for attrition prediction at service desk/call center. Have daily data on the following parameters: 1.Call quality - QTM (0-100%), 2.No. of calls - Calls(Number) 3.Attendance 4.Customer feedback(1/0) Q1,Q2 (0-100%) for both, agents who left the job and for the ones who are still there,...
I am working on a project where I need to chart statistical data and related, skewed distributions a la http://en.wikipedia.org/wiki/Skew_normal_distribution. Unlike with normal distributions, in these charts, when there is skew, neither the mean nor the median appear to be at the maximal point of the probability distr...
I think the ordinary least squares are the sum of the vertical distance between the observed data to the model line(regression). And residual is calculated by add up all vertical distance between each observed data and the model line(regression), not by sum of squares? I am still not clear about these concept. Thanks!
I have some data that I strongly suspect are lognormally distributed, and I'd like to summarize the distribution using the mean and standard deviation. I've read that with lognormal distributions the goemetric mean and standard deviation should be used, but using them produces slightly strange results. Specifically, wh...
I'm using $k$-fold cross validation technique for generating train, test and validation indexes for a neural network. My sample size is 230~700. What is best $k$ for cross validation here. Now I'm using 10-fold cross validation but I think it is too high. What is your idea?
The alligators example from openbugs examples repository is the same example that comes with winbugs. Basically this is a multinomial logistic regression example in which the outcome variable has 5 possible values and there are two categorical independent variables. The outcome is the food preference of an alligator a...
i don't have a specific mathematical setting for this question. it's rather high level. if you have a bunch of data X for a variable that we want to predict Y, and all we care about is predicting within the range of observed values, is there utility in finding a model? why can't we just put a probability (distribution)...