instruction stringlengths 9 38.7k |
|---|
I believe the header asks it all. In this case, I am assuming I am using euclidean distance for KNN as well. Therefore when KNN = 1, I should be looking for only the nearest point, which should be the same as the minimum euclidean distance classifier, correct?
Thanks!
|
What is the difference between an avplot and a termplot?
Let say I run the following model in R:
sex <- rep(c("Male", "Female"), times= 500)
value1 <- runif(1000, min=1, max=10)
value2 <- runif(1000, min=1, max=100)
value3 <- runif(1000, min=1, max=200)
response <- runif(1000, min=1, max=100)
df <- data.frame(sex, res... |
\begin{equation}
\begin{split}
p(x_{1:t}|y_{1:t})& = \frac{p(y_t|x_{t})
p(x_{t}|x_{t-1}) p(x_{1:t-1}|y_{1:t-1})}{p(y_t|y_{1:t-1})}
\end{split}
\end{equation}
\begin{align} \label{eq:filtered_recursive}
p(x_{t}|y_{1:t})& =\frac{p(y_t|x_{t})
p(x_{t}|y_{1:t-1}) }{p(y_t|y_{1:t-1})}
\end{align}
I want to clear up the info... |
There are two available packages for estimating multinomial logit models in R, namely mnlogit and mlogit. I am wondering whether someone who used both can share his experience. Which one is better / more commonly used? Are there some advantages to using one of them? How do the packages deal with pannel data?
|
Let $X_i$ be iid exponential random variables. I want to calculate $Var\left(\sqrt{\bar{X}/6}\right).$
The idea I had to simplify this is expressing it as $$Var\left(\sqrt{\frac{\bar{X}}{6}}\right) = E\left(\frac{\bar{X}}{6}\right) - \left[E\left(\sqrt{\frac{\bar{X}}{6}}\right)\right]^2.$$
This still leaves me with th... |
During Gibbs sampling, I need to sample a multivariate Gaussian distribution. But rmvnorm return errors sometimes because the covariance matrix is not definite and I found the determinant of it is, say, $-10^{-20}$. I suspect this is caused by the numerical errors. What should I do to handle this?
|
I have some troubles with the following.
I'm trying to find a MLE for $\alpha$, when $X_i \text{~} Exp(\theta)$,$\mu=1/\theta$ and $\log(\mu)=\alpha$. Also $n=30$.
i.e.
$\mu=e^{\alpha}=1/\theta$
$\implies \log(\mu)=\log(1)-\log(\theta)=\alpha$
$\implies \log(\theta)=-\alpha$
$\implies \theta=e^{- \alpha}$
where $\mu$ i... |
Time series regression function looks very similar to the "regular" linear regression. But they're different. TS regression has auto correlation issues, but regular linear regression assume no auto correlation. My question is, what's the relationship between these two regressions? What's the similarity and the differen... |
I have 6 ratio variables. This gives me a total of 15 correlations. I do each one of these correlations with bootstrapping methods, generating 15 confidence intervals, of which 3 are significant because they do not encompass zero. These confidence intervals also come with a t-score. Should I do Bonferroni on these by s... |
I am using genetic matching, implemented through the MatchIt package (dependent on Matching and rgenoud), in order to evaluate causal effects of a particular treatment (binary categorical variable) on a binary outcome. I used mice to multiply impute 5 datasets, each of which subsequently underwent genetic matching in M... |
So I'm trying to figure out the MLEs for parameters $\alpha$ and $\pi$, when
$L(\alpha, \pi)=[e^{-n\alpha} e^{-e^{-\alpha} \sum{x_j} }] \times \pi^m(1-\pi)^{n-m}$
and if all data exists, then $\hat{\alpha}=\log(\bar{X}).$
Is there some result that I can use to infer $\hat{\alpha}$ in this missing data case, if I know ... |
In the book Forecasting with Exponential Smoothing by Rob J. Hyndman it is mentioned that there is a heuristic method to get the initial states for ets models, prior to the optimization of the likelihood function. Regarding the seasonal component, the method says that being $m$ the length of the seasonality, one must ... |
As part of a project I needed to run separate multilevel proportional odds models independently for different years in my data using meta-analysis. I want to pool the estimates across studies. All continuous variables in my models were grand-mean centered and z-score transformed.
I have the luxury of every independent... |
I have two empirical distribution A and B (i.e. two continuous datasets in $\mathcal{R}$) and I am trying to set up a hypothesis test to test if a new data point is from distribution A. Naturally this calls for a likelihood ratio test. I was planning on setting the test as
$$
H_0: \text{the new data point is from dis... |
I am reading the chapter 3 of Sutton's book Reinforcement Learning: An Introduction and I am confused by episodic task and continuous tasks.
In reinforcement learning, how to distinguish episodic task and continuous tasks?
|
I have a training data set on which I use Latent Dirichlet Allocation(LDA) to generate topics. I would like to use this model on other documents and see how similar they are to the training data. I would like to know how to go about doing this?
I was able to generate topics on the training data set. Gensim gave me a to... |
Im working on a project which use fuzzy-model based fault detection and isolation technique to detect and diagnose possible fault occurrence on multiple types of sensor. I got stuck with the scheme of fuzzy-model based fault detection and isolation system itself. Ive been searching all over the Internet but i got no cl... |
I am trying to simulate seasonal ARIMA models of order (0,1,1)(0,1,1)12 with fixed variance.
Firstly I was using the arima.sim using 12 lags for specifying the seasonal part, like:
y <- arima.sim(list(order = c(0,1,12), ma = c(-0.8,rep(0,10),-0.8)), n = 189, sd = 0.2)
However I see this is not working, I think because... |
I find the documentation and tutorials on the Internet surrounding ImageDataGenerator (the data augmentation function for Keras) to not really explain much at all how it works.
Following the instructions here also leads room for a lot of interpretation: https://blog.keras.io/building-powerful-image-classification-model... |
I don't understand the equation of loglikelihood of the observed data in graphical models with hidden nodes that appears in "The Elements of Statistical Learning" (Hastie, Tibshirani, Friedmann, chapter 17.4.2)
In the equation we sum over possible values of $x_h$, but $x_h$ doesn't appear anymore in the equation. Wher... |
I do not understand the formal proof that the Metropolis Hastings update generates a Markov chain that satisfies detailed balance as it is given in the the Wikipedia article.
Under "formal derivation" it states that
$$\frac{A(x'|x)}{A(x|x')}=\frac{P(x')}{P(x)}\frac{g(x|x')}{g(x'|x)}$$
is fulfilled by the acceptance pro... |
The original question (that can be seen at the bottom of this post) was replaced by this first edit (below)
EDIT I
I give more details about my problem.
First of all let suppose to have K vectors $\boldsymbol{\omega}_k = \{\omega_{i,k}\}_{i=1}^n$, $k=1,\dots ,K$ of length $n$, distributed as multivariate normals:
$$
\b... |
I'm trying to visualise relations, i.e. of which "parts" (e.g. products, technologies etc.) a website is built upon.
I was thinking of a chord diagram (maybe built with d3.js so the viewer can hover about a specific field and the rest will be greyed out). Do you think this is a good idea? Like here: Visualising relati... |
I have two independent lognormal random variables $X$ and $Y$ with known means and variances. I would like to know the expected value and the variance of $\ln\big((X+1)/(Y+1)\big)$. If there is no exact solution, is there a means of approximation?
I have tried a Taylor expansion on $\ln(X+1) - \ln(Y+1)$ as suggested in... |
I'm confused about the resampling statistics obtained via the train() and trainControl() functions in R's Caret package. My goal is to perform cross-validation on a machine learning model for a time series by splitting the series into adjacent training/testing sets, ultimately enabling me to tune individual models and ... |
I'm new to econometrics and I'm having a hard time answering if the following statement is true or false:
"In regression studies, making adequate identification assumptions is sufficient for identifying causal relationships between the variables of interest"
After some reading, I've come to this answer:
-Strucutural co... |
I have a data generating process (DGP) of the following form:
$
y = \beta_r f(x_r) \times (\beta_1 \times x_1 + \ldots + \beta_n \times x_n)
$
The DGP reflects some factor loadings ($x_1 \ldots x_n$) and their coefficients $\beta$ that are scaled by some function $f(x_r)$.
I would like to estimate the coefficients wi... |
I need to predict the impact of a set of node failures in a network, based on 2 features: the fraction of failed nodes and a measure of their network centrality.
Failure of less important nodes will have low to no repercussions, while failure of important nodes can bring down the whole network.
The predicted output sho... |
Suppose you have a binomial experiment with 1 million trials and chance of success 0.25. At the end of the 1 million trials you record the number of successes. You repeat this experiment 100 million times, independently. What should you estimate the sample mean of succeses and sample second moment of success to be?
I g... |
Non-statisticians tend to use step-wise regressions which is strongly argued by statisticians. This is something that I don't understand (unfortunately, I am not a statistician), but I just obey them. "Ok this is not a good way to do your modelling".
Here is (was) my model:
b <- lmer(metric1~A+B+C+D+E+F+G+H+I+J+K+(1|X/... |
I have a matrix of interactions (1), avoidance (-1) and no interaction (0). I would like to cluster the matrix. I used hierarchical clustering but I was not very satisfied with the results. Any alternatives? Is is possible to use Louvain community detection with different interactions types?
Example matrix:
Im1 -1 1 0 ... |
In my model I estimate the cross level interaction between:
micro level variabel: hours spent on paid work (0 to 84 hours)
macro level variable: income compensation for parental leave
0 = no compensation, 1 = some compensation, 2 = high compensation
on Y men's hours spend on housework.
I use a ordinal coding of 0-2 for... |
I'm working on a stats project, but in the assignment there is some notation I haven't been able to find in the book or googling. in the below, I don't know which equation N(u,o^2) refers to;
with mean $= E(X)$ and $\sigma^2 = \text{VAR}(X)$ for $B \sim \text{Bernoulli}(p)$ with $p = 0.4$.
I'm attempting to find out ... |
Suppose i have an 10 images with 100x100 pixels. I have already converted the data into a 10x10000 dataset, subtracted the mean and performed SVD to get the eigenvectors and eigenvalues. Now i want to display the first and second principal components as images but im not sure how ? Would it just be the eigenvectors or ... |
This question appears in my textbook in a section on unbiased estimators. I know how to solve it; I'm not asking for help with the solution but for deeper understanding of the question:
Consider a random sample $X_{1},...,X_{n}$ from the pdf
$f(x; \theta)=.5(1+\theta x)\quad -1\leq x \le 1$ where $-1\leq \theta \le ... |
You have a shuffled, standard 52 card deck with 4 Aces.
You draw a random card without showing it, and without replacing it into the deck.
What is the probability that the next card will be an Ace? What is the formula to calculate this?
|
I'd like to find a readable reference (code or algorithmic description) for the sampling (méthode des quotas) and weighting (redressement des résultats bruts) algorithms used in political surveys.
In french the sampling method used in surveys is named "méthode des quotas" which means selecting a survey panel whose pro... |
I am conducting an experiment which looks at between-within subjects. There are two groups (participants will either use an iphone and android in the experiment) and they both have 4 short tasks to complete which will look at speed of completion. I am using split-plot/ mixed-design anova.
Before they completed the task... |
I am an economics student with some experience with econometrics and R. I would like to know if there is ever a situation where we should include a variable in a regression in spite of it not being statistically significant?
|
I'm looking at 80k samples representing results of a test after a fixed period of time. I think it looks like a combination of normal curves.
I see a fair amount of documentation about combining two normal distributions when you are given the distribution properties, where I'm having trouble is determining the dist... |
Hi guys, I'm assuming that I am able to use SVD of X to solve this question. So, X = UΣV where U and V are nxn and pxp orthogonal matrices respectively and Σ is an nxp matrix containing the singular values on the diagonal.
I tried to get the expectation of both sides to show the biases. So RHS of the equation would be... |
Okay,say I have a dataset which contains data on unemployment rates, wages, oil prices faced by a country, incidence of civil conflict for about 30 countries opver a period of 10 years. So this is like a panel data with small number of countries over a small number of time periods. I am say interested in running a regr... |
I employed a multiple regression model by applying a backwards selection method of model selection to examine the influence of three explanatory variables their interactions in determining oxygen consumption by fish and determine best equation for that. However, I had multicollinearity problem. I centered my values bu... |
I have a binary classification problem. There is 70 percent examples of first class and 30 percent of second one.
I have only features matrix and labels. There is no any additional information about data.
Which metrics are most suitable for evaluating the results?
|
I am new to time series analysis and related statistical tools. I am struggling with a time series for more than a week. I tried to check the Granger causality for the below data.
serdata <- read.csv("serdata.csv")
serdata
serdata$date = as.Date(serdata$date,format="%m/%d/%Y")
plot.ts(serdata)
## I could not interpre... |
I have yet to choose a classifier to get my model but I wanted to see which possible classifiers fit what I'm looking for.
In fact, I need an algorithm to establish offline training this way:
The first training starts after a month of collecting data (I know it's a short time but I want to see how it performs and how ... |
I'm using the TBATS model of the forecast package (version 8.0) with Google Analytics data, to forecast web trafic containing multiseasonal effects (msts). Before asking my questions, I'll explain the methodology I used.
Methodology
Data
I have two year of daily data that contains two columns like these :
date ... |
The SAT is used as an aid in determining college admissions. This test is a multiple choice test. To discourage random guessing, points are subtracted for wrong answers. Each question has 5 possible answers, and the test taker must pick one answer or choose not to answer the question. One point is awarded for each corr... |
I´m trying get a piecewise regression.
for(i in 1:length(Velocidad)){
if(Velocidad[i]< vmin)
pred.pot[i]<<-0
if(Velocidad[i]>vmin && Velocidad[i]< vmax)
pred.pot[i]<<-predict(reg)
if(Velocidad[i]< vmax)
pred.pot[i]<<-2000
}
Warning: number of items to replace is not a multiple of replacement lengt... |
I have a small data set (under 100 samples) and 5 input features. I often hear about how neural networks are prone to overfitting under such conditions and that naive Bayes is likely to underfit.
What approach should I try then ? I should mention that the chosen classifier must return the probability/likelihood of belo... |
as a ML Newbie, I'm interested in which machine learning algorithms can do multi-categories classification? Are there different techniques for fewer categories (3) and more categories? And what are the preprocessing required in R or python packages, is it necessary to turn everything into numerical? Thanks.
|
I'm comparing two systems to see whether there is a significant difference in being able to locate anomalies using System A and System B. I've run a t-test on both and have rejected the null hypothesis.
I then decided to run an ANOVA to confirm my findings and I was also able to reject the null hypothesis. I ran a furt... |
I am working on a fleet management system and I need to predict user request, and I use a linear model to do this.
$r = \beta*X$
I am thinking about dividing X into individual groups and fit a dedicated model for each individual group.
For example, for $X$, we have $x_{7}$ and $x_{8}$, both of which are Gaussian with m... |
Given any number of points, there are an infinite number of functions these points can be samples from. For $n$ points, any polynomial of degree $> n$ can be used to generate these points.
If there are an infinite number of functions, how does the net know which one to approximate? I know that ideal NN's are universal ... |
For a Gaussian kernel, what is the sigma value, and how is it calculated?
$K(\mathbf{x}_i,\mathbf{x}_j) = \exp{-\frac{\|\mathbf{x}_i-\mathbf{x}_j\|^2}{\sigma^2}}$ ?
Is it the covariance of the entire data set?
|
I am trying to do a meta-analysis on effect of a medication on a blood pressure. Some studies have longitudinal follow up with up to three measurements (pre treatment and two post treatment). The follow up timing is not the same in different studies). I want to test whether the effect of treatment remains the same as t... |
I've been working on some multilevel models using the lmer function in R and have been playing with some different ways of testing the significance of the fixed effects of my model. I have found that the summary() function and the anova() function from lmertest yield different results. My understanding is that the anov... |
Im looking for feedback about a sampling challenge.
Im designing an end of project survey - the design was a repeated measures (baseline and endline) non-equivalent control group design.
Interest in using a difference in difference analysis and also sampling as few as possible persons at endline.
The main outcome v... |
I have a large dataset in Excel relating to expenditures made by guests in a hotel over a calendar year (say, 2016). The data is by Month of Expenditure and at the granular level of each booking at the hotel for that period.
In this dataset, the columns that are of interest to me are: Month, Total Expenditure, Guest Ni... |
What would be my regression equation if I have a three level categorical value and a continuous variable?
This is how I re-coded my variables:City_d Capital_d Town_d.(recoded Town_d = 0)
RECODE Area (0=1) (ELSE=0) INTO Town_d.
VARIABLE LABELS Town_d 'Town_d'.
EXECUTE.
RECODE Area (1=1) (ELSE=0) INTO City_d.
VARIABLE L... |
In a simple neural network with two neurons in series carrying weights w1 and w2 and just one input, what is limitation behind starting off with both weights being same?
I am referring to patrick winston's MIT lectures and to quote him ".. By the way what would happen if you started off with all the weights being the s... |
I've carried out an exploratory factor analysis on a set of survey questions. The result is three factors, however the combination of variables in the third factor makes no sense theoretically. The first two factors do load on these variables (loadings are about .2). I'm going to use the factor scores as variables in f... |
I have a weekly time series with approximately 2 years of data. I wanted to check whether my series is stationary or not. To check stationary, I used two test,Augmented Dickey-Fuller test,here is the code I used adf.test(data, alternative = "stationary") I got p value as 0.01 & a warning message is saying that p-value ... |
I know what an odds is. It's a ratio of the probability of some event happening to the probability it not happening. So, in the context of classification, the probability that an input feature vector $X$ belongs to class 1 is $p(X)$ then the Odds is:-
$O = \frac{p(X)}{1-p(X)}$
This is what I don't understand. When we h... |
Say I have a 3-D ball with radius $R$ and I randomly pick points from the volume of the ball.
If I randomly pick two points, the probability density function of inter-point distances $P(r_{12})$ is known and described by $P_{3}$ here.
Now I wish to randomly pick 3 points from the same ball. I'm interested in the probab... |
I am trying use the AIC & BIC for selecting the number of clusters for k-means. I found a post on Stackoverflow where some R code is posted, but I could not find any valid explanation for its correctness.
The code:
kmeansAIC = function(fit){
m = ncol(fit$centers)
n = length(fit$cluster)
k = nrow(fit$centers)
D ... |
I have daily data of reservations for a restaurant with a certain capacity. I also know about the population size that will possibly visit this restaurant. I would like to do some analysis to get more insight into the demand for this restaurant.
I have been looking to model this using statistical methods, but encounter... |
I have read a lot of literature on VAE's and I have understood the basic set-up. However, I still don't know what the overall goal is. The basic set-up is that we have a dataset of observations $\pmb{x} = \{x_1, ..., x_n\}$ and a set of latent variables $\pmb{z}$.
My question: What do we want to compute and why? So do ... |
If I made $n$ experiments and $s$ of them where successfull, can I say that the probability of success in a single experiment $p$ is distributed by
$p \sim \mathrm{Beta}(s + 1, (n − s) + 1)$?
If not, how is $p$ distributed?
|
RNNs as in: Recurrent Neural Networks
LSTMs as in: Long-Short Term Memory Units
ReLU as in: Rectified Linear Units
Leaky ReLU as in: Modified ReLUs that don't "die" when negative values are inputted.
In practice, machine learning practitioners rarely use vanilla RNNs, citing the vanishing gradient problem (where gradi... |
I am programming GANs with Tensorflow.
Now I am at the point I have to decide if I go through the data in epochs or in steps.
As I found out the epoch way is more efficient (Why do neural network researchers care about epochs?) I am still wondering how this works.
Suppose I want to train the discriminator 3 times (so 3... |
Suppose that we have an unobserved effects model:
$y_{it}=\beta_0+\beta_1 x_{it}+a_i+u_{it}$ for $t=1,2$.
When we have two time periods for panel data, I read that fixed effects estimation and first differencing yield the same estimates for the parameters of the model as well as the same standard errors. I recently con... |
actually my study is about to choose best imputation techniques. Im comparing all the techniques using Root Mean Square Error (RMSE), Mean Aabsolute Error (MAE) and correlation (R). My problem is example imputation at Station . Method A has lower RMSE compare to method B and the R value is 0.7. Method B has lower MAE v... |
Say P(A) is 0.4 and P(B) is 0.1 and P(neither) is .7
How would I calculate the probability of P(A and B)?
I have looked at conditional probability examples and cannot find one where only P(A) and P(B) is given.
|
I am trying to run a panel data model, where my DV is a PCA component, and the main IV is time-invariant (shares of ethnic group in total population).
Therefore, I could not use the fixed effect model, even if all of the tests told me to use it.
Anyways, I with the recommendation of my prof. I decided to use a RE mod... |
The above picture is about building model, it seems a bit difficult to understand the meaning of "plus noise", and what would the final hypothesis look like? if the unknown target changes from function to distribution.
|
I am fitting a 5 parameters model to some data using Maximum Likelihood and Non Informative Bayesian Inference using Metropolis-Hastings algorithm.
From the maximum likelihood fit, i calculated the expected value of the parameters and their 75% Wald confidence interval and the 75% likelihood ratio based confidence inte... |
Before I start, I have already looked at the answers for related questions:
How to interpret all zero coefficients in the results of cv.glmnet?
Why is cv.glmnet giving a lambda.min that is clearly not the lambda for minimum error?
It seems from answers to these questions that when glmnet returns a lambda value wh... |
Plot
I have 3 data frames, each containing 2 variables: Gap and relative velocity.
What I want to do
I want to estimate the "similarity" between the observed and calibrated data sets, as well as the observed and menneni data sets. What can I use as a "similarity" measure? If a distance is to be used, should I find it ... |
I have noticed from some of the questions posted here, who also post their line of code, that they have set the standardize option of glmnet to "FALSE".
It seems that users either:
1) just use the default standardize=TRUE and let glmnet automatically standardize the variables prior to fitting the model sequence,
2) o... |
it's known the conjugate priors for multivariate normal distribution are the normal & inverse-whishart distributions. but i'm interest in very specific case where the correlation matrix is $R$ multiply by random variable $\kappa^2$ with inverse-gamma prior summed with $\sigma^2 I$ . I'm trying to get the closed-form... |
We know for a sample from a population we can use the normal approximation to get a confidence interval around $\hat{p}$.
If we know the population completely then we know $p$ completely.
The normal approximation for C.I. is $\hat{p} \pm Z_{\alpha/2}\sqrt{\hat{p}(1-\hat{p})/n}$.
What is the population size $m$ such th... |
Is there a rule of thumb for determining the size of a convolutional filter given the shape of the input? Specifically, if you want to do a 1D convolution over an even-length vector, does the kernel need to be a divisor of the vector length? Does the kernel need to be even? I understand that when using an odd-length ke... |
Say that we have two processes $a$ and $b$ that generate numbers. Then say that the random variables $A$ and $B$ take values in the set of numbers that those processes generate, respectively. So $f_A$ and $f_B$ are their probability density functions, respectively.
Now, suppose that we plot those PDFs $f_A$ and $f_B$,... |
I don't know if this is the right place to ask this question, but I have been fruitless trying for the past few weeks to get a cluster algorithm to run on the embeddings created by FaceNet. I have simplified the problem and I only have 2 faces from the LFW dataset, but still I am unable to form clusters regardless of t... |
I am doing some research on the interaction term in linear regression.
say, I have 2 predictors, $X_{1}$ and $X_{2}$, which interact with each other.
A common practice is to create a new factor $X_{3}=X_{1}*X_{2}$. I am wondering why it is multiply not anything else. Why not $X_{3}=X_{1}/X_{2}$, why not $X_{3}=X_{1}*X_... |
I'm trying to generate i.i.d samples from two uniformly distributed random variables in MATLAB. However, when I correlate the two sets of samples, I find that the correlation is almost zero, but the p-value is above 0.05. How should I interpret this test? Is it even possible to generate i.i.d samples in real life?
>> [... |
The basic principle behind parametric price estimating is that you can use basic properties of the item you are going to buy (size, power, temperature, etc) and find some regression curve that relates to price. A simple example might be the price of a tank P=(V/V0)^.65 where P is price, V is the volume of the tank you ... |
I am trying to test if my data fits the inverse power law distribution. Specifically, I am interested if my damaged area (Shape_Area) is somehow distance dependent?
I tried to apply examples from poweRlaw package. However, the output of my Kolmogorov-Smirnof test is NULL: I am not sure, what I am doing wrong, how to i... |
I have a question about a probability problem located here:
http://www.statisticshowto.com/probability-and-statistics/probability-main-index/
And quoted here:
“If you were trying to collect 6 baseball cards that came in packets of cheese puffs, assuming they are distributed evenly how many packets of cheese puffs would... |
Let's say I have a neural network for weather forecasting. The network uses temperature, wind speed and humidity as its inputs. However, I only have temperature and wind speed data available, so I can't get a prediction with this network. Is there a way to build a new network that can handle variable input size? That i... |
Lets say I have two independent random variables $T$ and $D$ both over finite integers sets $S_T$ and $S_D$ respectively.
Also, assume the probability function of $D$ is given to us and is only defined on non-negative integers, but the probability function of $T$ should be defined by us.
So we can assume the range of... |
I built a model estimating the survival probabilities of birds based on 1. PC1 scores, 2. PC2 scores (for both, I have more than 2000 points), and 3. a climate variable (a total of 12 climate variables which represent the different sampling years). I'm particularly interested in the estimation of the interaction betwee... |
I am trying to make a reasonable looking PCA analysis, where not only data are projected in two axis, but also the loadings of the data are projected on top of the data.
Similar to the following figure by @amoeba, taken from this answer:
I am doing this in R and to visualize I use the ggplot command.
But as soon as I... |
I have the following prediction problem-
Train data: A person's personality traits(around 50 correlated features) and his/her GPA in a course(related to HR/Management)
example-
Given the test sample with the the candidates personality traits, I have to predict the person's gpa if he would take the course.
The issues I... |
Basically, spectral clustering is an application of spectral graph theory, which utilizes the eigenvalues and eigenvectors of a Laplacian matrix or adjacency matrix to disclose the connected components of a graph.
Let's talk about the Laplacian matrix. Ideally, for a graph with a few connected components, the values o... |
I have data from an experiment where we tagged and released lobsters (n = 31) at an aquaculture site and followed them over a 2 months period.
The question is simple: do lobsters stay longer IN the aquaculture site or OUT (or there’s no difference)?
We determined the time (variable "Time.min") each lobster (variable "... |
Supposing that $X_1, X_2, ..., X_n$ are i.i.d with distribution $X_i \sim Bin(m_i,\theta) i=1,...,n$ where $m_i$ are positive integers.
Consider the estimators of $\theta$
$T_1(X) = \frac{\sum_{i=1}^{n}X_i}{\sum_{i=1}^{n}m_i}$ and
$T_2(X) = 1/n \sum_{i=1}^{n} \frac{X_i}{m_i}$
Prove that $ MSE(T_1) < MSE(T_2)$.
I have... |
I have written a mixed model (following syntax in R package lme4) such as:
response ~ comp1 + comp2 + group + (1|sp)
response, comp1 and comp2 are continuous.
group and sp are categorical with 3 and 10 levels respectively.
But the distribution of response in each level of group is as follows:
n mean ... |
While studying Hoeffding's Inequality, I kind of tend to think it is much similar to confidence interval. I am sure and want to hear some explanations.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.