instruction
stringlengths
9
38.7k
Say I build a linear regression model to identify linear dependencies between variables in my data. Some of these variables are categorical variables. If I want to evaluate the contribution of a given predictor, how do I evaluate it? Can I compare the coefficients directly? I read in the answers that the |t| value gi...
Let $X_1,..., X_n $ be a random sample of a variable with PDF: $$f(x|\theta)=\frac{\theta}{x^2} I_{(\theta, \infty)}(x), \theta >0$$ Find the maximum likelihood estimator for $\theta$ and $ E[X]$ My attempt: The likelihood function is: $$L(\theta;x) = \theta^n I_{(\theta, \infty)}(x_{(1)}) \prod \frac{1}{x_i^2} = \the...
I have data for about 1,800 email messages, and am building a tool in Excel that enables my team to create "benchmarks" on-the-fly -- they can select various characteristics of a message (for example, audience size) and see the mean performance of similar past messages. I use COUNTIF to indicate the number of similar m...
Recently I have been reading about deep learning and I am confused about the terms (or say technologies). What is the difference between Convolutional neural networks (CNN), Restricted Boltzmann machines (RBM) and Auto-encoders?
I am wondering how could I line plot mean with error bar of cross tabulated data in R package. My data looks like this Mean Stage Treatment breaker green pink red turning cont 0.06779080 0.1964575 0.010335260 0.005861540 0.05828315 FRM 0.172...
I am looking for help on post-hoc tests of my group data (treatment and stage and interaction) after running a 2 way ANOVA in R. The data shown below is an example only. Actually my data shows significant result after ANOVA test. When I tried post hoc with TukeyHSD it gives pair wise comparisons which is a long list. B...
I am in the midst of programming a simple Naive Bayes classifier as an exercise. It is supposed to perform word-sense disambiguation on natural language phrases, e.g. predicting the correct meaning of the ambiguous word bass in a sentence like I love the taste of bass. At the moment I am struggling with handling discre...
Apologies in advance, time series is not my strength. Say I want to predict f(T+1) using f(T-1, T-2, ..., T-N) -- for example using a multi-level preceptron. If I want to enhance this using some other signals say using weather data on times T-1, T2, ..., T-N Would this still be considered Time Series Analysis? Thanks....
I have a dataset where one variable is a proportion with a restricted range (say 4%). I would like to use this variable to predict a death rate. Running a simple correlation I'm guessing would underestimate the relationship (?). I also have raw counts for both variables. What analysis do I do here? I'm stuck. Binomial ...
The histogram of my dependent variable is as following: I draw the scatter plot of my dependent variable and independent variable, and the result is as following picture? I am wondering if the skewness of the dependent variable may affect the result. It seems that the relationship is not linear and we have a lot of ou...
I have a theoretical growth function that can be perturbed by events, and I'd like to estimate the growth parameters as well as the perturbation, and the rate of falloff after that perturbation. I'm thinking of using a logistic function to model the effect of the event and the falloff of that effect (if any). To ground...
I have a question about a multi-level model. I have data from three related sources. Data on about 30 hospitals, at hospital level - things like size, teaching/non-teaching and so on. Data from about 1500 nurses, sampled from about 100 wards, either medical or surgical, in these 30 hospitals. Data from about half a m...
I have a numeric dataset involving 34 input variables and one output variable. I'd like to fit a model to the data so to be able to make predictions (regression problem). So far I've tested MARS (Multivariate Adaptive Regression Spline, earth package), simple random forest (Random Forest, randomForest package), neural ...
I am having a little issue with manually calculating some predicted probabilities from a ordinal logistic regression (I am doing this as a learning exercise - I am aware I don't have to do this manually). Take the following example from the UCLA statistics training website: Import the data: library(foreign) library(MAS...
Suppose $\vec{a}$ is an unknown $p$-vector, and one observes $\vec{b} \sim \mathcal{N}\left(\vec{a}, I\right)$. I would like to compute confidence intervals on the random quantity $\vec{b}^{\top} \vec{a}$, based only on the observed $\vec{b}$ and known parameter $p$. That is, for a given $\alpha \in (0,1)$, find $c(\...
As part of reproducing a model I described partially in this question on Stack Overflow, I want to obtain a plot of a posterior distribution. The (spatial) model describes the selling price of some properties as a Bernoulli distribution depending on whether the property is expensive (1) or cheap (0). In equations: $$y_...
I am trying to define a problem I have in proper statistical terms. Here's what I have: I have a set of values measured monthly. These values are expected to grow pretty steadily over time. I need to identify the values that deviate from the trend. All values are >= 0. I need to do the above for quite a few data sets, ...
I am reading a paper and found the following, Statistical uncertainties and dependencies are often measured by variances and correlation coefficients, but both uncertainty and dependence can be defined purely in terms of probabilities $(p_i)$, without considering the actual state of system. Now I am leaving the conte...
I'm a beginner in R. I'd like to calculate the load for 3 water quality parameters in R for specific days for the whole year using the following formula: Using the previous formula, I'd like to calculate 7 scenarios. Each scenario represent 1 day of the week (Monday of each week, Tuesday of each week....) for the who...
I derived a multivariate logistic model from my data containing a single binary response and five predictors. I tried to calculate the predicted probabilities of one of the binary predictor (smoking) keeping the other, continuous, variables at their mean values. I get values greater than one. Is it possible to get pr...
The likelihood function of a lognormal distribution is: $$f(x; \mu, \sigma) \propto \prod_{i_1}^n \frac{1}{\sigma x_i} \exp \left ( - \frac{(\ln{x_i} - \mu)^2}{2 \sigma^2} \right ) $$ and Jeffreys's Prior is: $$p(\mu,\sigma) \propto \frac{1}{\sigma^2} $$ so combining the two gives: $$f(\mu,\sigma^2|x)= \prod_{i_1}^n...
I want to select a model which best performs for a very huge data set. However, the data set is too large to calculate a model within reasonable time. If this is the case, is the following a reasonable approach: Fit each model to $n$ smaller random subsets of the original data set and calculate the mean AIC. Then, sele...
I have carried out a number of Pearson Chi Square tests on the relationship between tail lesions and abscessation in pigs. I have found a significant (p = 0.005) but weak (r = 0.288) association. How do I interpret this? For example, does this mean that there is a clear relationship between the two but that it is just ...
I have a time series which is discreet and bounded (between 0 and 100). It’s actually also increasing over time, from low to high. When I test for a unit root, I find it. And yet I wonder if unit root tests on bounded variables even make sense? And if unit-root testing doesn’t make sense in that case, what’s left of ...
I've been trying to solve this problem reading different material but I just can't figure it out. It's pretty simple and takes about 5 seconds to do in languages that work with arrays, but I can't work it out in Stata. Please ignore the substitution of the backticks in some places, I couldn't get them to appear correct...
My question might be a bit ambiguous, but I started to wonder what does the "effective parameters" mean in machine learning? I have heard few professors of machine learning in my university talk about effective parameters (the context was about k-nearest neighbors or Gaussian mixture models etc.). Any clarification on ...
I'm currently doing two multiple linear regressions. Each of them with the same set of predictors (measurements for real estate quality) $X_1,...,X_n$, but with different dependent variables (one of them the purchasing price, the other one the yearly rent) $Y_1$ and $Y_2$. $Y_1= a_1X_1+a_2X_2+...$ $Y_2= b_1X_1+b_2X_2+....
I am an economics/stat guy who uses quite a bit of optimization (maximum likelihood, simulated maximum likelihood), constrained optimization (mathematical programming w/ equilibrium conditions), dynamic programming, etc. I am wondering how Python compares to R for optimization. In my opinion (feel free to argue this a...
I'm playing around with the Abalone dataset in R and following along with this article. The dataset has 8 variables that are taken into account to predict the number of rings. To find the pairwise correlation, the blog post does this: as.matrix(cor(na.omit(abalone[,-1]))) and comes to conclusion that the data is heav...
I'm working my way through Gelfand, A.E. & Li Zhu, B.P.C. (2001). On the change of support problem in spatio-temporal data. Biostatistics, 2:1, 31-45. I'm stuck at: This is absolutely the first mention of f anywhere in the paper. Can someone help me to identify it? Y = spatial process s = measured locations Beta...
I am having a bit of difficulty understanding the notation in equation (1) on page 4 of the following paper: https://escholarship.org/uc/item/35x3v9t4#page-4 Specifically, what do $E_{X,Y}$ and $E_\theta$ mean? It seems like it is a saying the $PE$ of the forest tends toward the $PE$ of a single tree as $k \to \infty$...
For the linear model $$y_i=\beta_0 +\sum_{k=1}^{n}\beta_k x_{ik} + \epsilon_i$$ the parameter estimates are the same for the maximum likelihood method and the least square method (minimizing $\sum_{i=1}^n\epsilon_i^2$) if the errors are assumed iid normal. So I am thinking that if we use least squares, we are perhaps i...
I have a list of predictor variables to put in to a logistic regression model. How I know that should I do a simple logistic regression (using glm function in R) or a mixed effect logistic regression (using glmer function in R) analysis?
I need to fit data points on a power law and each one of these carries an uncertainty. I've been using Python, more precisely scipy.optimize.curve_fit to get the job done but I don't know how to handle the uncertainties with it. I thought about using a linear fit in log-log scale but it seems less precise compared to f...
I now have a problem with effect size of LMM. Someone insisted that I should have effect sizes after p values. I then thought that I can use 'estimate' in the output of pairwise comparison using lsmeans function. He is not convinced by using estimate and suggested me to use cohen's d. Then I look at the calculation of ...
Bland-Altman plot measure the agreement between two different methods which measures the same variable. As far as I understand Bland-Altman can measure only if the two methods have the same unit of measurement. I want to measure the agreement between two methods which measure the same variable (a continuous variable) b...
I'm getting very different output when i perform a multinomial ordinal model depending on wether I scale or not my data first. Anyone could tell me why? Here are the results with raw data: polr(formula = result ~ 1 + Speed + rsvl + rsvl:Speed + tailcontrst:Reltailsize + strategy:rsvl, data = results) Coefficients: ...
I am using the metafor package in R. I have fit a random effects model with a continuous predictor as follows SIZE=rma(yi=Ds,sei=SE,data=VPPOOLed,mods=~SIZE) Which yields the output: R^2 (amount of heterogeneity accounted for): 63.62% Test of Moderators (coefficient(s) 2): QM(df = 1) = 9.3255, p-val = 0.0...
Suppose that A and B are mutually exclusive events for which $P(A) = 0.3$ and $P(B) = 0.5$. What is the probability that (a)  either A or B occurs? (b)  A occurs but B does not? (c)  both A and B occur? Trying to understand how to solve this problem, I solved (a) and got $0.15$ (by $0.3 \cdot0.5$) for the probabi...
In the classical linear model with $$Y=X\beta +\epsilon,$$ where $Y \in \mathbb{R}^n$ is the observation, $X\in \mathbb{R}^{n\times p}$ is the known covariates, $\beta \in \mathbb{R}^p$ is the unknown parameter with, $p < n$, and $\epsilon \in \mathbb{R}^{n}$, $\epsilon \sim \mathcal{N}(0,\sigma^{2}I)$. The classical ...
I am trying to learn few things about generalized least square regression modeling. Here are the models that I am using., X1 ~ Y1 + Y2, X2 ~ Y1 + Y4, All predictor variables, Y1, Y2 and Y4 are significantly related with the response variables, but when I took the difference of two response variables and the difference ...
What is the name of a distribution such that it looks like uniform distribution on $[a, b]$, but the density is not a horizontal line, but a line with a certain slope.
I have a dataset of NFL games. Each game has one row for each team in the game. Each team's row contains the team's statistics in that game (such as points scored, passing yards, red zone attempts, etc.), the team's statistics over the team's previous four games, and the team's opponent's statistics over their previo...
Let's say I'm predicting the likelihood that someone will buy a widget, using their age, eye color, and gender as input attributes. I split my data into a training set and a test set, and train up my predictive model using the (large) training set. Let's say that 15% of people in the test set with blue eyes buy the wid...
There are lots of rules for selecting an optimal bin width in a 1D histogram (see for example) I'm looking for a rule that applies the selection of optimal equal-bin widths on two-dimensional histograms. Is there such a rule? Perhaps one of the well-known rules for 1D histograms can be easily adapted, if so, could you ...
I would like to infer the correlation between random variables $Q$ and $R$, however, I have access only to the distribution of $Q$ and the distribution of $P=Q+R$. We can see how Pearson's $\rho$ appears here: $\sigma^2_P=\sigma^2_Q+\sigma^2_R+2\sigma_Q \sigma_R \rho$ I'm basically sure with that information alone, it'...
My table of chi-square test for homogeneity has 3x5 cells, 3 samples to a likert scale item. Most cells in the table have a frequency count of less than two, so it is recommended to discard the column of which contains a cell with frequency of less than two. How will this affect my hypothesis if I discard the entire co...
For a continuous random variable with continuous PDF over the real axis and well defined CDF, are the mean, variance, and median always well defined? Mean and variance do not always exist, e.g. for a Cauchy random variable. But what about the median? Since the the median $m$ satisfies $$F_X(m)=\int\limits_{-\infty}^{m}...
While I have seen papers and posts about mean and variance of n i.i.d normal random variables, I am looking for the first order statistics of $n$ (specifically $11$) normal, non-identical (different mean and variances) but independent random variables. Specifically : What distribution would that follow? Can it be appr...
I came across a paper that uses a panel data of US states (from 2000-2010) with the following model: $y_{it}=b_{1}x_{it} +b_{2}x_{it}*D_{it}+other vars + \alpha_{t} + \gamma_{i}$ where, $x$ and $y$ are continuous vars and $D$ is a dummy variable that takes a value of 1 if there is a decrease in $x$ from one year to an...
I'm wondering what the best ways to compare (possibly ranked) lists when we know what the true ranking is and also the variable that decides the ranking. Say this is the top 10 of a certain list, we know the ranking, and also the variable from which the ranking is obtained (Votes). True Ranking: P...
I have two classifiers, say $A$ and $B$ and I am performing 10$\times$10-fold cross-validation on them and record the number of instances correctly classified from the test set. Unfortunately, the number of instances available is quite small, so I have only around 10 instances in each test set. Therefore, the number of...
I am doing multiple imputation using chained equations in Stata to deal with item-missing data. One of the variables on which I did imputation was income. However after I did imputation, the imputed values of income contain negative values though the mean and standard deviation of income after imputation are almost sim...
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...
I want to do document classification by representing each document as a set of features. I know that there are many ways: BOW, TFIDF, ... I want to use Latent Dirichlet Allocation (LDA) to extract the topic keywords of EACH SINGLE document. the document is represented by these topic words. But I do not know whether it...
I have difficulties interpreting an interaction term in a linear regression with regards to my hypothesis. Consider this basic example: H0: Better school grades lead to higher income and this relation is the same for men and for women. DV: income IV: school grade, sex How do I interpret a non-significant, positive ...
I have a database of second hand cars. It contains (among other things) the asking price, the mileage, the fuel consumption and the year it was built. I would like to know how much the value depreciates due to time (only), and due to mileage (only). So for car model X, I'd like to know: - how much value the car loses...
I'm wondering if there are any implementations of random forests that allow one to provide error terms for the inputs. An error term could be based on a per-variable basis, or on a per-sample/variable basis. If an error term was specified on a per variable basis, we would let the random forest algorithm know that "th...
While implementing a Naive Bayes filter, I stumbled across a problem with the calculation of the conditional probabilities $p(w|c)$ of a word $w \in \mathcal{W}$ given a class $c \in \mathcal{C}$. Following this answer on StackOverflow about classifying fruits $\mathcal{C} = \left\{ \text{banana}, \text{orange}, \text{...
Can anyone give me examples of distributions symmetric around the mean but that are more densely concentrated around the mean than the Normal distribution for the same mean and variance? Thanks
Take these data: 5, 8, 9, 14 R says the interquartile range is 3: IQR(c(5, 8, 9, 14)) # 3 ...but I make it 5. What am I doing wrong? Here are the steps I've taken: Find median, which is 8.5 Split the data around the median into two groups, like this: (5, 8), (9, 14) Find the median of these two groups, which are 6.5...
I am trying to solve $E\left[ E \left( \mathbf{X}|\mathbf{Z} \right) E \left( \mathbf{Y}|\mathbf{Z} \right) \right]$, (where $\mathbf{X}$, $\mathbf{Y}$, and $\mathbf{Z}$ are random variables) but I am confused - should the solution be $E \left( \mathbf{X}\mathbf{Y} \right)$ or $E\left(\mathbf{X} \right)E\left(\mathbf{Y...
I've been trying to gain a better understanding of factor potentials in PYMC. In reading this article by Cam Davidson-Pilon on Yhat, I got confused about how observed nodes are understood by PYMC. Are they fixed in PYMC when observed=True? Or are they random like a stochastic node? The factor potential is specified as...
I have train and test data set to work on. I would like to apply PCA to reduce dimension. Do I need to merge train and test data sets together before applying PCA? Or I should apply PCA on train data set, select reduced dimension, and work on reduced data set for both train and test data set?
It seems that OLS residuals autocorrelation is not always an issue, depending on the problem at hand. But why residuals autocorrelation would affect the coefficient standard errors? From the Wikipedia article on autocorrelation: While it does not bias the OLS coefficient estimates, the standard errors tend to be un...
When you plot a kmeans model (in R) with the plotcluster() function, it plots the clusters against the axis of the 1st and 2nd discriminant components (dc). In reading about these axis- some state the dc is not that much practical difference from the 1st and 2nd principal components. Other places seem to give a distin...
Just starting to play around with Neural Networks for fun after playing with some basic linear regression. I am an English teacher so don't have a math background and trying to read a book on this stuff is way over my head. I thought this would be a better avenue to get some basic questions answered (even though I susp...
I want to simulate a binary response variable which depends on two normally distributed continuous variables, and I want to have more 1s than 0s in the response variable. I wonder how this can be done such that a logistic regression will not identify a significant interaction term. My current approach in R looks like t...
Say we want to minimize the function $f^2({\bf{x}})$, under the constraint $g({\bf{x}})=0$. The classic solution (Method I) is to introduce a Lagrange Multiplier, and solve: $$\frac{\partial f^2({\bf{x}})}{\partial x_i}+\lambda \frac{\partial g({\bf{x}})}{\partial x_i}=0$$ One could however use a different method (Met...
Is there an R package for MCMC that can accept my self-defined (log)likelihood function (can be done in MCMCpack) and lets the user define contraints to the proposals (like only accept values from the [0,1] interval, or take only positive values (possible in rSTAN) I already definded my model in R code but obvious...
I am interested in predicting an ordered outcome of 0,1,2 or 3 (0<1<2<3) for individual responses in a bunch of different clusters. In each cluster $i$ of size $n_i$ there is a single 3, 2 and 1 allocated to group of responses, the remaining $n_i-3$ responses are set to 0. To clarify, the situation is as follows: 3,2,1...
I have three treatment groups represented in three cumulative curves. What is the best test to show differences among them.Knowing that treatments were observed cumulatively for only seven days.
Let $n>1$, let $X$ be uniformly distributed on $[-\frac12,\frac12]$, and consider the sequence $X_1,\ldots,X_{n+1}$ of independent copies of $X$. R implements pearson, kendall and spearman measures of correlation in its function cor. So for each of these methods, if I compute cor(X[1:n], X[2:(n+1)], method=...) is the...
My problem is: Evaluate: $$\sum_{i=0}^n i{n \choose i}$$ I only know that $$\sum_{i=0}^n{n \choose i} = 2^n$$ not so sure when an "i" is added. What is the step of this evaluation?
I have a question regarding clustering. I have a symmetric matrix of 50 specialties (50 X 50) where each cell represents the number of observations related to each combination of specialties. Some combinations in this matrix do not exist in the data (coded with zero frequency) and the diagonal is zero. I would like to ...
I would like to draw area-proportional Venn diagrams with 3 sets of data with any free online software. I tried with eularAPE software but it doesn't work because my 3-set of data do not overlap. My data are: a =45, b=20, c=12, a∩b =9, a∩c =6, b∩c= 1, a∩b∩c= 0. Is it possible to generate proportional Venn diagrams wh...
What is the relationship between $Y$ and $X$ in the following plot? In my view there is negative linear relationship, But because we have a lot of outliers, the relationship is very weak. Am I right? I want to learn how can we explain scatterplots.
Let $H \sim \mathcal{N}(\mu_H, {\sigma_H}^2)$ and $S \sim \mathcal{N}(\mu_S, {\sigma_S}^2)$. $H$ and $S$ are dependent of each other and their covariances are unknown, and they are jointly normal. Let $G = H - S$ and the mean and variance of $G \sim \mathcal{N}(\mu_G,{\sigma_G}^2)$ are known. Is there a way to I estima...
I was looking at the solution to this problem below and I don't understand how they used a negative binomial R.V. to solve the problem. A research study is concerned with the side effects of a new drug. The drug is given to patients, one at a time, until two patients develop side effects. If the probability of gettin...
I have a dataset with identical twin pairs and fraternal twin pairs. I want to examine the relationship between an outcome variable ("DEPENDENT") and a number of other variables ("INDEPENDENT"). However, I can't run a normal OLS regression because each twin's dependent variable is correlated with their co-twin's (for ...
I'm trying to create a scatter plot using ggplot. The x value goes roughly from 0-20, and the y value goes from 0-~50. The data is raw so it's not nice and neat and I need to plot a curved line through the majority of the data. The code I'm trying to use is ggplot(temperature, Number.of.Fish,aes(x=Temperature,y=Numb...
Take these two vectors: points <- c(44, 36, 33, 33, 29, 28, 28, 22, 21, 20, 18, 15, 15, 15, 12, 12, 12, 11, 10, 10, 8, 8, 8, 8, 7, 7, 7, 6, 6, 6, 6, 6, 5, 5, 4, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1) hours <- c(137.000000, 58.450000, 92.250000, 94.750000, 80.000000, 100.000000, 33.750000...
I'm reading a paper where the statistic reported for testing the general significance of a multiple linear regression is a "Wald Chi Square" instead of the usual "F" statistic. Is it the same thing to use the Chi Square statistic or the F statistic or in what occasions are the two used?
In his up-voted answer to Software needed to scrape data from graph, Alexey writes (with respect to the need for data scraping off of raster graphs) "But nowadays the good practice is to publish graphs in vector form." To rip off my comment to Alexey from that page: Is there a good reference for best practices around w...
I am running a kmeans on a sample size of 1000 data. The data is scaled (z). When I run kmeans(df, nstart=25, centers=5)- it runs and I can get the size of each cluster. The largest group has 620 in it. I ran it again (I did not mean to), but noticed the largest cluster then had 450 in it. Out of interest, I kept try...
Will the functional form of a Moving Average model having coefficients h = [1 0.2 -0.5] be y(t) = 0.2e(t-1) - 0.5e(t-2) Or y(t) = 1+ 0.2e(t-1) - 0.5e(t-2)
I have a Poisson formulation with the following parameters: I see 90 people in a city an hour 1.2% of people in the city are Indian How would I calculate: The maximum amount of time before I would see any Indian person with the highest probability The amount of Indian people I would see in an hour with the highest p...
Un-informative priors are preferred in instances where bias is not acceptable (ie. courtrooms, etc.) However, it seems to me that it would just make sense to use a frequentist approach instead. Why does the Bayesian approach even have a non-informative prior? Thanks!
I heard a story recently in which someone said if they wanted to kill somebody (and get away with it) they would do it with their car. They cited various statistics about the number of auto-related deaths (including car-on-pedestrians) coupled with additional stats about the number of drivers actually sentenced to any...
Assume $x\in\mathbb{N}$ obey some unknown distribution, and I can sequentially and independently acquire infinite samples of $x$. Now, given an error rate $\epsilon$ and confidence $1-\delta$, can I find a sufficiently large number $m$ that if I draw $m$ samples, the probability of drawing a sample beyond the maximum...
I have read 80% of missing data in a single variable and understand the approach for dealing with missing data which simply cannot exist for 1 variable. I am trying to generalise this up to 2 or more variables, where different subsets of the sample will have different sets of variables in which data can exist. For sim...
I really want to understand how the math is working here. I am trying to get the standard error of the fitted values for a time series regression model. In the non-time series regression, I know I can take the transpose of the data multiplied by the variance - covariance matrix of the model coefficients and then multip...
I have asked a very similar question at the Latex forum here, but in order to address the part of my question where I ask if there is a better way of visualizing the data I have, I wanted to cross post it here. As i can get a bit more technical: I can choose the number of clusters, but I think it wont exceed 20. The ma...
As I'm currently working on scan matching for outdoor environments I was wondering about the best metric to compare two occupancy octrees (one resulted from the scan matching and one ground truth reference octree). So far I came up with a few different approaches: Ignoring the occupancy values: • Calculate the true pos...
Can anyone tell us how to evaluate the fit of our generalized linear model with a poisson distribution? We can't really tell if the model is a good fit or not. Do you use the deviance to answer this question? If so, what does it tell us in the following example? Generalized linear mixed model fit by maximum likelihood...
Suppose I have some unknown function $f$ with domain $ℝ$, which I know to fulfill some reasonable conditions like continuity. I know the exact values of $f$ (because the data comes from a simulation) at some equidistant sampling points $t_i=t_0 + iΔt$ with $i∈\{1,…,n\}$, which I can assume to be sufficiently fine to ca...
I'd like to estimate a 3 level model (years clustered in districts clustered in counties) on the Leyland data (Mortality in England and Wales, 1979-1992 An Introduction to Multilevel Modelling using MlwiN) using R. I have 3 predictors (year79 (at level 1), year792 (at level 1), and family(at level 2)). year792 is just...
Hi i was wondering how to figure out the following Suppose $y=x+e$ where e is an i.i.d error. Say $x \sim N(\mu,\sigma_1^2)$ and $e \sim N (0, \sigma_e^2)$ which means $y \sim N (\mu, \sigma_1^2+\sigma_e^2)$. I need to find the expected value of y, conditional on $y>\mu$. I know that the formula will be y multiplied by...
Is feature selection and training on the same sample a bad idea? I want to emphasize that I am not going to use test set for feature selection. If I use the whole train set for feature selection and then for training the model then the training sample is larger. Any drawbacks of such approach?
I am studying the book "An Introduction to Statistical Learning: with Applications in R", on page 66 While the book explains how to calculate $\beta_0$ and $\beta_1$, it skips how the actual calculation happened and only displays the equations to calculate them and then the result in the next page. I got lost when $\s...