instruction
stringlengths
9
38.7k
everyone here. I want to use multinomial distribution, but p[] and N are all random. model is correct and data loaded , model compilied, but it can't still run , it says:value of binomial f[1] must be an integer. Is there anyone here know about it? thank you very much . this is my coda: model { for(s in 1:S) { fo...
Let $X_1, X_2, ... , X_n$ i.i.d random variables with probability density function $N(\theta, \theta^2)$. Show that $$T(X) = \frac{X_{(1)}-X_{(n)}}{X_{(2)}-X_{(n)}}$$ is ancillary to $ \theta$. My attempt: Since $\frac{X_i}{\theta} \sim N(1,1)$, which does not depends on theta, we have that if $$Y_i=\frac{X_i}{\theta}$...
I am reading Huber's Robust Statistics (2nd). On page 2 and 3 he gave an example. The basic facts are summarized here. Let $(X_n)$ be a sequence of random variables and define two measures of spread as follows. Mean Absolute Deviation: $d_n := \frac{1}{n}\sum|x_i-\bar x|$. Standard Deviation: $s_n := \sqrt{\frac{1}{n}...
I have data about popularity of some products in some stores. For each of the stores I have only a ordered rank of best-selling products in them. I need help how to find information about which products are popular only in certain stores versus products that are popular in all stores.
Can anyone guide me regarding any good survey papers and implementations of recently published papers on community detection in mobile social network. I am willing to implement any existing algorithm and then R&D my own algorithm. I would be using ONE simulator for the purpose of community detection based on real data ...
I have a input data and an output binary variable . The y value is 1 if the patient get ill. > summary(x_or) Symscore1 Symscore2 exercise3 exerciseduration3 groupchange age3 Min. :0.0000 Min. :0.0000 Min. :1.000 Min. :0.000 Regular to Regular ...
I am comparing treatment outcome to two therapeutic treatments. Specifically, I am looking at how attachment moderates the relationship between therapeutic alliance and outcome. I hypothesize that the moderator of attachment will be stronger in one treatment versus the other. The only way I can think to test this is t...
I collected analysts’ forecasts and calculated bias and accuracy such as: $bias=actual-forecast$ $accuracy=abs(actual-forecast)$ What I am wondering is now on how to calculate the t-statistic to determine that the median bias is significantly different from zero. I am using R and found the t.test function to calculat...
The two parameters of DBSCAN are epsilon and minimum samples. Shouldn't epsilon be called like "Circle radius"? Why is it called epsilon?
Suppose one performs the so-called non-parametric bootstrap by drawing $B$ samples of size $n$ each from the original $n$ observations with replacement. I believe this procedure is equivalent to estimating the cumulative distribution function by the empirical cdf: http://en.wikipedia.org/wiki/Empirical_distribution_fun...
$\newcommand{\E}{\mathbb{E}}$How is the $A(\cdot) = \displaystyle\int\frac{du}{V^{1/3}(\mu)}$ normalizing transform for the exponential family derived? More specifically: I tried to follow the Taylor expansion sketch on page 3, slide 1 here but have several questions. With $X$ from an exponential family, transformati...
Is there any way to test the difference of entropy given frequency table? For example, let's say we have dice 1 and dice 2, and we experimented with them and they showed up like die 1 num. 1 2 3 4 5 6 freq 6 7 3 5 2 1 die 2 num. 1 2 3 4 5 6 freq 3 4 2 1 1 2 The question is ...
This question has been triggered by something I read in this graduate-level statistics textbook and also (independently) heard during this presentation at a statistical seminar. In both cases, the statement was along the lines of "because the sample size is pretty small, we decided to perform estimation via bootstrap i...
Random forests are well known to perform fairly well on a variety of tasks and have been referred to as the leatherman of learning methods. Are there any types of problems or specific conditions in which one should avoid using a random forest?
Apologies ahead of time for not having an exact data set as this is more of theoretical question that I stumbled across while working on mixed effects models. Suppose I have the following data structure: location/person/experiment. Thus within each location, I have several people and within each person I have several e...
I am using the boot package in R to bootstrap confidence intervals around an estimate of the median. The data is skewed, but the estimator is not biased, thus I am using the Basic Interval. The data is in units of days, from 0-30. Below are descriptives for the particular variable: var n mean sd median t...
Basic statistics courses often suggest using a normal distribution to estimate the mean of a population parameter when the sample size n is large (typically over 30 or 50). Student's T-distribution is used for smaller sample sizes to account for the uncertainty in the standard deviation of the sample. When sample size ...
There is one other question similar to mine (Compare independent numeric vectors (means) in R), but has not been answered (1 year has passed), so I'm repeating the question here. I have obtained exam scores (0-100) of 200 students in 4 subjects. Two of the subjects are taught using one teaching method, while the other ...
I am reading de Haan's Extreme Value Theory (2006). In the discussion of distribution of sample maximum, he said "in order to obtain a non-degenerate limit distribution, a normalization is necessary". Then he gave the following example. "Suppose that there exists a sequence of constants $(a_n)>0$ and $(b_n)$ such that ...
I'm using multinomial logistic regression analysis to analyse deer behavioural responses to camera traps based on 7 predictor variables. I have 2 models which are very close together in AIC value (season AIC 1005.103; season and percentage cover 1005.023). Season and percentage cover is the best model (but only nomina...
this is a conceptual question. In data mining, the problem often arises that scientists/data engineers are using an expert guess for the underlying distribution of their data. Often their assumption is based on previous results of academic research and does not really reflect the real distribution of the dataset. Howe...
I need to analyze a data-set, with a very messy design, I am not sure how. I will try to make it simple. A new kind of stitches was invented, and is tested vs. 2 old kind of stitches. I will call this: Treatment, control 1 and control 2. A few patients were selected, needing stitches. Each patient was assigned (by the ...
For my thesis I sent out a questionnaire that has 10 questions. I set defaults: the first seven question had the default set to the desired answer and the last three questions had the default set to the undesired answer. I want to measure whether people followed the default using SPSS. I am thinking I should use a t-t...
I have a R-code for acceptance rejection method for a beta-distribution but would like to use it for a binomial(30, 0.4) distribution instead. Here is the code: sample.x = runif(100000,0,1) accept = c() for(i in 1:length(sample.x)){ U = runif(1, 0, 1) if(dunif(sample.x[i], 0, 1)*3*U <= dbeta(sample.x[i], 6, 3)) { ...
Thanks in advance for the advice. I am trying to build a generalized linear model that has many predictors. The $R^{2}$ value of the model is quite low (.21), but when I use the model to predict against my validation set I am getting very good results. I was under the impression that a low $R^{2}$ value generally mean...
Given the distribution function of random variable $X$ I know how to estimate its mean. What would be an estimator (preferably unbiased) of $\ln(\text{E}[X])$ ?
First let's simulate some data for a logistic regression with fixed and random parts: set.seed(1) n <- 100 x <- runif(n) z <- sample(c(0,1), n, replace=TRUE) b <- rnorm(2) beta <- c(0.4, 0.8) X <- model.matrix(~x) Z <- cbind(z, 1-z) eta <- X%*%beta + Z%*%b pr <- 1/(1+exp(-eta)) y <- rbinom(n, 1,...
I am doing a GLM (guassian - identity) using R. I am modeling different variables (8) to try to understand what creates brand value in an organization. Some extracts from the output are: Null deviance: 74.343 on 81 degrees of freedom Residual deviance: 32.870 on 69 degrees of freedom (19 observations deleted d...
Im working on assessment of algorithm sensitivity and specificity. I've developed a simulation in order to detect true and false positives and negatives. My intersest is to know if my algorithm is capable of detect a event, or not. So, in the end, I got several yes or no, capable or not capable of detection. Is that po...
I've come across some papers in where certain forecast errors are standardized to have unit variance. Unfortunately that's the only information they provide and I have no idea on how to obtain/calculate their results. Assuming I have a vector of 3 year forecasts that i would like to standardized to have unit variance....
I am trying to determine, based on historical record, what the annual probability of occurrence would be for a specific hazard. Take tornadoes. Over a 59 year time span I have documented 45 tornadoes. Some years, across that 59 year span, saw no events occur which leaves me with 25 years out of 59 that had tornado occu...
In a Hive Plot nodes are placed on lines and connections between groups are highlighted. This plot seems to lose the connections between nodes on the same line. It seems like an intentional loss of data to build a better plot, but is it possible to not lose this information in such a plot?
I'm tryin to estimate a pretty basic regression. I have a dataset containing x and y and would like to esimate the following model in R y = b0 + b1*x1 + b2*epsilon where epsilon=error term. I'm trying the lm() function in R, but do not know how to include the error term in the regression. Does anyone know how to inclu...
I have a small normalized data set, 30 observations and 18 Predictors. All are continuous and some variable are related. I ran linear regression on it using Weka. The model automatically dropped some collinear predictors reducing the number of predictors from 18 to 7. I then plotted model's prediction for target variab...
I'm using a continuous optimization algorithm for optimizing neural network's number of neurons in first and second layers besides feature selection so I used this structure for converting continues output (between 0 and 1) to positive integer values in MATLAB: Neuron_Layer_I=(min(floor(1+21*Neuron1),21))+3; For exa...
In astronomy (and I'm sure in other places as well) it is very common to use sigma-clipping as the outlier rejection scheme. The idea is that you regress the data, subtract the fit from the points, and then reject all points with residuals exceeding some sigma times either the standard deviation or median absolute devi...
I'm trying to perform structural equations with two second-order latent variables and five first order latent variables (since "a picture is worth a thousand words" I pasted my model below). To perform SEM correctly, I follow steps decribed in a book by Barbara Byrne(2010). My questions are: Is it reasonable to fix va...
I am working with longitudinal data, where there are a different number of "items" per time point. I am working with the MCMCdynamicIRT1d function in MCMCpack in R to estimate a dynamic IRT model with binary items. However, now I am interested in modeling ordinal items within the same model. I found an example of a dyn...
I am building a model in R using GLM based on this predictor variable. As you can see, the data is concentrated in the center of the distribution, and then falls off sharply. Is there a transformation to make this distribution wider? Another option I'm considering is to weight the data points on the ends, using the w...
Suppose I have a response vector and a factorial design (for simplicity, assume it’s a one-way ANOVA with two treatments). A few Generalized Linear Models (Poisson, Negative Binomial, etc) are fitted to the data. This is done separately for each of K experimental units. Each unit has a distinct response vector, but the...
I have measurements from 12 mice, grouped in two conditions. I each mouse I have measurements from 4 tissues. The design is not balanced, 5 mice in condition1 and 7 in condition2. After reading the bioconductor edgeR manual I have set up the following model: design <- model.matrix(~ Condition + Tissue + Condition:Mouse...
I have seen that multiple correspondence analysis (MCA) can also be seen as a generalization of principal component analysis when the variables to be analyzed are categorical instead of quantitative. In SPSS I have found both CATPCA (Categorical Principal Components Analysis) and MCA under the optimal scaling procedure...
I have seen that in constructing indices by PCA the scores of only the first component is used. Although the first principle component explains the most variation contained in the data, often the VAF is too small (10% or even less). Then why do we use only the first component score instead of combining the scores of fi...
I've been playing around with framing audio data and training a single-layer autoencoder to find a dimensionality-reduced form (say 128-sample frames to 32-dimension frames). When I test the audio after going through the encode/decode layers (trying both sigma and tanh activation functions for what it's worth), it appe...
I'm creating and OCR app, and so far it seams to work. It's quite similar to example from Coursera - Machine learning course. Output layer of network has as many neurons as classes needed to recognize, 10 digits, 26 letter and alike. When the network is trained, it should basically output [1,0,0...0] for letter A, [0,...
I am studying banks behaviour according to 6 financial rations throughout a 3-years period. I have 32 observations separated into two groups: large (6) and medium-sized banks (26). However, since in my country there are exactly 6 large banks, it does not constitute a sample, but a population, where as there are around ...
Suppose that we have two databases : Database_1 and Database_2 . Database_1 has 300 samples and Database_2 has 700 samples. Database_all is combination of two databases. Is finding outliers using abs(X-mean(X))>=1.9*std(X) in Database_all is equal to finding outliers separately in Database_1 and Database_2? In both ca...
I don't find the answer of this simply problem: how can I algebrically demonstrate that, with 3 variable A,B,C $ \sum\limits_C P(B|C)P(C|A)=P(B|A)$ under condition that $P(A,B,C)=P(A|C)P(B|C)P(C)$ it seems trivial, but I miss the algebric steps.... thanks
Objective: I'm looking for the optimal number of unique entries in a contest of skill with monetary prizes. Description: The contests vary from as little as 20 entries up to 10,000+ entries. You can enter an unlimited amount of entries. Within each entry, there are 9 slots that can be filled with variables. Each s...
To introduce the problem I will explain the Projected normal distribution. Let $\mathbf{z}_i=(z_{i1},z_{i2})$ be a bivariate vector distributed as a bivariate normal with vector mean $\boldsymbol{\mu}$ and covariance matrix $\boldsymbol{\Sigma}$. If we make the following transformation $x = \text{atan2}(z_{i2},z_{i1}...
Summary: Is there any statistical theory to support the use of the $t$-distribution (with degrees of freedom based on the residual deviance) for tests of logistic regression coefficients, rather than the standard normal distribution? Some time ago I discovered that when fitting a logistic regression model in SAS PROC ...
I am looking to solve the optimization problem described below. Which optimization software package would be best suited for this, considering the requirements specified below? Requirements: 1) Can solve the complex problem described below. 2) The package must be free of charge and ideally open source. 3) Ideally no he...
I'm trying to use the Match() function from the Matching package in R to do a propensity score analysis. My outcome of interest is a binary variable (0/1). My treatment is also a binary variable (0/1). In addition, I have a number of other variables that I want to control for in this analysis. First, I fit a logistic...
The ranked probability score (RPS) is a measure of how good forecasts that are expressed as probability distributions are in matching observed outcomes. Both the location and spread of the forecast distribution are taken into account in judging how close the distribution is to the observed value. \begin{equation} \math...
How do I find the distribution of the weighted sum of independent Bernoulli random variables if the weights are non-negative real numbers? I have N number of independent Bernoulli distributed random variables lets say $X_1, X_2, X_3...X_N$ and suppose I have a set of weights $W_1, W_2, W_3,...,W_N$ which are non-nega...
I am trying to fit a multi-level model to some longitudinal data that I have. As an example, let's pretend participants had to make 10 basketball free throws, and I measured how long it took them to make each one (in seconds). In this case, the time variable is severely positively skewed because although there is a min...
Pardon my ignorance, i am new to Bayesian Analysis. I am trying to use Normal prior for a binomial likelihood, which of these are most likely candidates ( $\bar{x} $, $ \mu $, $ \sigma $ ) for prior and most likely candidates for constants ? Please advise.
I have four variables, two are categorical and two are numeric: a<-c("yes","yes","no","no","no",NA,"yes","no") b<-c("high","low","medium","medium","medium","low",NA,NA) c<-c(12,23,23,12,23,34,12,NA) d<-c(1.2,1.3,4.5,3.4,NA,5.4,9.4,7.4) df<-data.frame(a,b,c,d) I want to replace the NA values in each variable by using ...
$F(x,y) =\frac{1}{6}(x^2\, y+x\, y^2)\,,\quad 0\leq x\leq 2,\, 0\leq y\leq 1$ Above is the joint distribution given, how to find out cumulative distribution function of y? how to obtain joint probability density function of x and y? I am a beginner in R, I know basic commands. thanks for the help
I would like to know what are the common techniques to compare two histograms? I have histogram of two images and I want to see are they similar or not meaning that is there any correlation between them or not. The histograms are for two different parts of tissue.
I'm looking for a comprehensive description of and justification for a Normal hierarchical model where both the means of the groups and the standard deviation are modelled. It is common to find something like the following model in many textbooks (e.g. Gelman et al., p. 288): $$y_{ij} \sim \text{Normal}(\mu_i,\sigma) \...
I have a dataset with 3 variables: A, B and C. Now, A and B are ordinal variables (i.e.; the result of two questions measured using a 5-point Likert), whereas B is continuous. A and B are also correlated, Spearman rho = .50, p-value = 0.0046 I want to partition my dataset in 3 cluster using kmeans (the default R implem...
I have this SAS code running a mixed model: proc mixed data = Data; class Treatment SubjectID Technique; model Time = Treatment; random Technique; random SubjectID(Technique); lsmeans Treatment / cl pdiff=control('New') adjust=dunnett; run; I want to run this analysis in R, what is the equivalent R code ? Th...
I have a dataset consisting of users, each with a number of items (ranging from 1 to 100). The end-goal is for each user to be able to predict the ranking the of the items according to some other measure of popularity. Let's assume I have train an algorithm to do this and can compare my results to the actual rankings....
I'm confronting something pretty weird. I've got a household-level dataset, and I want to calculate the correlation between a binary variable A (taking values yes (2) or no (1)) and whether the household is urban or rural (a dummy taking values 0 or 1). I'm using Stata and the correlation I get is positive and signifi...
I am new to statistics and SPSS. I have a questionerre having 30 likert scaled questions, and 5 factors each having 5 or 6 questions. I made the reliability analysis and no problem is found. all factors have alpha greater than 0.7. Now I want to make the correlation analysis between factors to validate my hypothesises,...
I would like to regress basal metabolic rate (BMR) on height, weight, age and gender. How do I do this taking into consideration the interaction between the variable? Wouldn't I have to consider interactions upto fouth order?
A family consisting of four persons—A, B, C, and D—belongs to a medical clinic that always has a doctor at each of stations 1, 2, and 3. During a certain week, each member of the family visits the clinic once and is assigned at random to a station. The experiment consists of recording the station number for each membe...
I have a set of data that comes for empirical measurements over a number of days. From the beginning of the experiment to the end of it, every five minutes temperature was measured inside (Ti) and outside (To) a box, and heat flux (Q) was measured between one of the walls of the box and the outside. For every time po...
I'm building a function/package. If the users' entry data are zero inflated then the code will log-normalise them, process them, and reverse-log-normalise and bias-correct them afterwards. If they're not zero inflated it'll just process them. Does anyone know of a test for zero inflation? Everyone knows what it IS, but...
I have repeated samples of geocoordinates of activities in a city. In most of these samples positions will simply be random. In some samples, however, some percentage of the data will be arranged -- with some error -- on a line. Let me paint you a picture (code to generate this data below): I want to be able to detec...
I am conducting a hierarchical cluster analysis in SPSS on my database with several neuropsychological and psychiatric variables. In my database, some of my variables (that is, two pairs of variables) have correlations $r > .80$. My first thought was to eliminate these variables from my cluster analysis. However, anoth...
I'm trying to remove positions that contain fixed values from strings of random data. An example is removing the string "ISBN" from a book isbn code without prior knowledge of that being a fixed string or where in the string it occurs, but with the knowledge that it won't move around. A complication is that they don't ...
The problem is to come up with a classifier for any task based on a set of attributes of an entity having different values at different times. For instance think about football players and their match stats varying from match to match (accurate shoots, passes, possessions etc.) Then you can train a model for any task u...
I have two rather conceptual questions about random forest classifiers. Before we get there, I quickly want to lay out the problem I am working on: I have large a large data set consisting of 300 samples with about 370,000 data points each. There are 6 different groups of 50 samples each. I constructed a RF classifier ...
Given a system made up of n different components who follow a Weibull distribution. we can easily estimate both the shape and scale parameters for each component. if the components forms a parralel system, how do you estimate the parameters of the whole system?
I hope I can make my question clear, if not I will be happy to clarify. I want to present a simple regression plot with the polynomial equation line linked to it. Those data have been tested in a model for which linear and quadratic effects were significant. The x-values are values of distance that were overdispersed a...
In order to understand the difference between the Frequentist and Bayesian inference, I was reading the presentation at: http://www.stat.ufl.edu/archived/casella/Talks/BayesRefresher.pdf . In order to explain the difference between the approaches, the author is using the following example(Page 6): If I understand corre...
I like doing SEM's with lavaan. But I dont like reporting them because I haven't found a good way to plot them in APA-style. I usually rebuild the model in PowerPoint and add the parameters by hand. What a pain! To look at the results of the SEM I usually use semPaths from the semPlot package, which is great, but it's...
I perform different rank-based non-parametric tests (Friedman and Nemenyi) post-hoc and noticed that the decimal places of the samples have a strong effect on their power. Please consider the following toy example: Samples 1: 0.12,0.23,0.22,0.17 Samples 2: 0.15,0.17,0.18,0.1 Samples 3: 0.19,0.29,0.27,0.19 Using all de...
I'm trying to get a MANOVA running to get Wilk's Lambda from the summary but I get a constant "need multiple responses" error. Looking at past answers I figured that one of the variables might be missing from the data frame but it doesn't seem like it.. here's head(data): head(data) ror penalty last30 classifica...
Reading lof implementation at : http://www.cse.ust.hk/~leichen/courses/msc-it5210/lectures/LOF_Example.pdf the local reachability distance is given as : I don't fully understand this equation as I think the max(distk(0) & dist(o,o`)) will never differ. For example if I have a point "a" with knn distances (point label...
I am interested in estimating a regression that looks like this: $(x_{1,i} - y_{i} )_{i} = x’_{i}*\beta + \epsilon_{i}$ (1) However, I am not sure if doing this—in this form—is appropriate. The reason for this is that $y_{i}$ and $x_{1,i}$ are correlated. Put differently, $x_{1,i}$ is an significant explanatory v...
I'm trying to better understand some of the theory behind fitting models that have a nonlinear link between the response and the predictors. set.seed(1) #Create a random exponential sample n<-1000 y<-rexp(n=n,rate=.01) y<-y[order(y)] x<-seq(n) df1<-data.frame(cbind(x,y)) plot(x,y) Now I will attempt 4 different mode...
I wonder if feature scaling like this makes always sense for neural networks: Let $T$ be the training set and $x_i \in \mathbb{R}^n$ with $d_i \in T$ be the feature vector of $d_i$. Then add another preprocessing step so that $x_i' \gets \frac{x_i - \text{mean}(T)}{\max(T) - \min(T)}$ where $\max$ and $\min$ get applie...
I am running a logistic regression model in R using multiply imputed data created using Amelia II, which I am then analyzing using Zelig. I would like to be able to report some measures of goodness-of-fit (e.g. likelihood ratio, pseudo R-squared, Hosmer-Lemeshow), however none are provided in the default Zelig output a...
Some statistical tools offer methods of automatic identification of the distribution of data, such as the one shown in this post. Generally, is this approach reliable? If not, what's a better alternative to the problem of working with data from unknown distributions?
I've got two sets of data from some fluorescent cells. The first set is when the cells don't have their fluorescence switched on, but they are still faintly glowing. The second set is when they do have their fluorescence switched on. I ran each of the two experiments three times, so n=3, and I therefore have a mean for...
I'm trying to understand better Johansen method so I developed an example 3.1 given by the book Likelihood-Based-Inference-Cointegrated-Autoregressive-Econometrics where we have three processes: $$X_{1t} = \sum_{i=1}^t \epsilon_{1i} + \epsilon_{2t}$$ $$ X_{2t} = \alpha \sum_{i=1}^t \epsilon_{1i} + \epsilon_{3t} $$ $$ ...
I work in a problem domain where people often report ROC-AUC or AveP (average precision). However, I recently found papers that optimize Log Loss instead, while yet others report Hinge Loss. While I understand how these metrics are calculated, I am having a hard time understanding the trade-offs between them and which...
I am working with a time series data and found that $a_t$ Granger causes $b_{t+1}$ and $b_t$ granger causes $a_{t+1}$. The results were obtained through Stata. With the coefficients obtained, is it possible to determine which Granger causal direction is stronger? If it can't be determined by just looking at the coeff...
PnL can take large negative values, and its variance increases over time as the firm grows. If we do differencing, an increasing variance remains. If we take log, negative values cannot be defined. How do you stationarize this type of data for time series analysis? Please assume that we cannot decompose PnL into underl...
I want to examine growth for 38 participants. I have 2 scores at each of 3 separate phases of instruction - baseline, during instruction, and post instruction. Restated, I have 2 baseline scores, 2 instruction scores, and 2 post scores for each participant. All participants are in one group. How should I test growth...
I need to compare two generalizability (G) coefficients for data that are from two separate populations. G coefficients are a type of intraclass correlation coefficient (ICC). The literature on statistically comparing G coefficients is sparse by all accounts, so I thought that the best I might do was find out the reco...
I am struggling with the following combinatorial problem related to research I am doing. Take a binary sequence $(y_1, y_2, \ldots, y_n)$ of length $n$ with $x$ $1$'s, where the final $1$ is in location $t_x$ (in English: $t_x$ is the time of the $x$th event). Let the number of runs of length $2$ (allowing for overla...
I have a problem to build and to explain the linear multiple regression. I have a data set called Cars93 with 26 variables (numeric and not numeric) and 93 observations. This data set you can find in the MASS R package. I want to build a linear regression model for predicting the price of a car. Then I have to do a var...
How do you construct ROC Curves when there are more than two outcome categories (in my case, I have four)? I've heard you should do this for the most popular group. Are there any other ideas? Are there functions in R to help with this?
When I use regression models I feel leery of defaulting to an assumptions of linear association; instead I like to explore the functional form of relationships between dependent and explanatory variables using nonparametric smoothing regression (e.g. generalized additive models, lowess/lowess, running line smoothers, e...
All the Species Distribution Modelling literature suggests that when predicting the presence/absence of a species using a model that outputs probabilities (e.g., RandomForests), choice of the threshold probabilitiy by which to actually classify a species as presence or absence is important and one should not always rel...
Can somebody please explain the math behind this statement to me? I am not sure how they represent the left hand side by that integral and finally how it is proportional to that. \begin{align} p(S_{t+1}|z_{t+1}) &=\int p(S_{t+1}|S_t,z_{t+1})d\mathbb{P}(S_t|z^{t+1}) \\ &\propto \int p(S_{t+1}|S_t,z_{...