instruction
stringlengths
9
38.7k
I am in an intro to statistics course and my instructor gave a problem stated exactly as follows: A box contains 50 items. A sample contains 10 defective and 20 non-defective. Calculate the posterior distribution of the count of defective items in the box with and without replacement. I feel as if there are missi...
I am reading Cawley and Talbot and saw a post on implementation of nested CV (NCV) as well as numerous posts with good answers on the topic (general NCV, training with full dataset after NCV, how to choose model after NCV). I wrote a script that performs NCV on a 'visible' set after splitting the data into 'visible' an...
Not sure if this is the best place for this type of question, but I'll just try! I have a semi-large dataset with multiple measures from one study I ran. Some of them are repeated measures over different time points. This means, I have for example measured reaction time (RT) at three time points, but I have also measu...
I have a not-so-large data set (n = 3000, p = 8), where my primary explanatory variables of interest are categorical with, in a few cases, many (>10) levels. Apologize for the lack of specificity but I cannot disclose much on the application - my main question is about a methodology which I am trying to employ. A respo...
I am working on movielens 100K dataset. The idea is to use ML algorithms such as neural nets,SVMs,K-means etc for classification of movies as being rated 1,2,3,4,5. The problem I am facing is to determine which features to use as the features of the data.Since I am taking the collaborative filtering approach, I am usin...
I am hoping someone out there can help me with some statistics as I am relatively new to coding. I have a large dataset which I want to model appropriately to answer some key biological questions. I am looking at whale shark scarring over a 9-year time frame in three populations in the Indian Ocean and the questions I ...
I don't have a great understanding in statistics, but I have to answer an MCQ featuring the following question : My individual has a height situated at -3SD (Standard deviation) and the following assertions are true : The individual is situated in the first percentile There is a height where the individual is in the 0...
I'm working with a data source that occasionally includes missing values. I noticed that this caused tso() to miss obvious outliers even though they are nowhere near the missing value- for example: library(tsoutliers) series <- c(0,-0.025,0.005,0.03,0.078,0.042,0.034,0.04,0.04,0.019,-0.005,0.057, 0.065...
I am reading some lecture notes, and in it, in order to justify fitting an autoregressive correlation structure, the professor plots an autocorrelation plot of the actual data. But, should he not plot the autocorrelation plot of the residuals after fitting some model, and then if that plot showcases autocorrelation, th...
Let $Y_{ij} \stackrel{d}{=} N(\mu_i, \sigma^2)$ for $i\in \{1,\ldots,n\}, j\in\{1,2\}$. Also assume $Y_{i1}$ independant of $Y_{i2}$. The parameter of interest is $\sigma^2$. Setting up the loglikelihood and deriving the mle's one finds: $$\hat \mu_i =\dfrac{Y_{i1}+Y_{i2}}{2} \qquad \hat{\sigma^2} = \dfrac{1}{4n}\su...
For my class project I am comparing various tree-based ensemble methods such as bagging, boosting, random forest, and AdaBoost against my data set and I can't quite determine my methodology. I know that I would like to initially explore the parameter space for each model; varying parameters such as n_estimators, max_f...
My signal was a train of rectangular pulses consisted of eight pulses with interval between pulses of 36 s with a temporal resolution of 0.1 s. I added a Gaussian noise oscillations with zero mean and variance of $10^{-4}$. I used the following MATLAB code to generate the noisy signal: variance = 10e-4; Signal = gensig...
I have a variable X that follows the chi-square distribution with one degree of freedom. Is there anything known about the distribution of $e^X$?
I am trying to show the decision surface of an SVM model and its margins in a 3D RGL graph in R. Here is a really nice, replicable example from stack overflow. I am using the same example: library(e1071) library(rgl) library(misc3d) n = 100 nnew = 50 # Simulate some data set.seed(12345) group = sample(2, n, replac...
I understand that most statistical methods focus on predicting common occurrences, but are there any tests that would predict outliers? Essentially I would want to know what outside variables stand out for outliers as opposed to "normal" values. An improvised example being predicting a stellar performance on a game (10...
So I have a few formulas, and I am not really sure when each formula is applicable. The first formula is: $$\newcommand{\Var}{{\rm Var}} \Var[\bar Y] = \sigma^2_\bar Y = \frac {(N-n)\sigma^2}{(N-1)n} $$ My understanding, although it may be wrong is that this is the Variance of the population mean? My next is $\Var[\ba...
I am trying to solve some Ordinary Differential Equations using Neural Networks. I have read quite a few papers and even some dissertations on the same. However I am a little unclear on how the neural network itself is trained - what are the inputs, what are the target outputs, do we need to write the backpropogation a...
Given the joint density: $$f(x,y)=\frac{16}{x^5y^6}, x,y\geq 1$$ We are asked to find the Cov$(X,Y)$. The solution manual says that Cov$(X,Y)=0$ because of factoring $f(x,y)=\frac{4}{x^5}\cdot \frac{4}{y^6}$. However, using Cov$(X,Y)=<XY>-<X><Y>$, I checked the Expectations both by hand and through Mathematica: $$<X>=\...
I am currently running a three-level meta-analysis, due to the fact that I have multiple dependent effect sizes in many studies. I do not know the actual dependencies between effect sizes, however, so when there are dependencies, they are assumed to be $\tau^2_{(3)}$, per Cheung (2015, Ch. 6) and Konstantopoulos (2011)...
I have a program that can detect an object in an image. It will either output a confidence in [0, 1], or "no detection" (which can be interpreted as 0 confidence). I have collected a bunch of images where the distance to the object varies. The problem I'm trying to solve is to fit a curve to the expected detection conf...
I have this feature for which the distribution looks like: I am curious as to what kind of feature processing I can do (and to similar other features) which makes it amenable for kNN. Here's what I tried: In an attempt to convert the feature from exponential (here) to normal distribution, I did the ecdf = exponential....
When using R to test the mean difference of paired samples with normal distribution, which method is more effective among "t.test" "z.test" and "wilcox.test"? As an example, for the two paired samples below(new and ori), they have been verfied to accord with the normal distribution by using shapiro.test. When using th...
I have a challenging a/b test problem and would appreciate some input. Setup: We are a company that sells information in a marketplace of buyers - think auction style. We built a predictive model that is hypothesized to improve one of our key metrics. However, instead of building one model, we built n models, one for e...
In the following graph, the diagonal elements in the covariance matrix are the same, which I suppose means the spread of data in either direction should be the same, but why the data points are still more elongated in one direction rather than being a circle?
What problem do regularization methods solve? I thought it was feature selection and to prevent overfitting. However, I was informed that the reason Ridge, Lasso, and Elastic Net were created in the first place was "to deal with colinearity." However, I am not readily finding anything online to support this. Wikipedia...
Apologies in advance if the answer to this question seems obvious to some of the readers but I am confused as to how I should proceed when interpreting the following data. I have a sample of 5000 students (Male (M) / Female (F)) and I have calculated the probabilities of students passing or failing Test 2 given how ...
I am wondering why in my lmer model the summary() only yields t-values rather than z-values, such as here: model <- lmer(area~Register+(1|subject), data = ev) summary(model) Linear mixed model fit by REML t-tests use Satterthwaite approximations to degrees of freedom ['lmerMod'] Formula: area ~ Register + (1 | subje...
I have just started learning about multivariate distributions using Mathematical Statistics with Applications by Wackerly, Mendenhall and Scheaffer but I find their explanation a bit confusing, could someone please recommend a good text for learning about multivariate distributions?
I've already read the answers to this question, but they were written so long ago that I wonder if some progress has been made on the subject since then. I would like to know if there's some more objective way to choose the correlation or covariance matrix to do PCA than «careful thought and some experience» or «simila...
I am using VECM model in R for stock price prediction. For prediction I used open price, closing price and high price of that day and I try to predict closing price. At first I checked if data is cointegrated. ###################### # Johansen-Procedure # ###################### Test type: maximal eigenvalue statis...
Suppose we have $Y$ ~ $geo(1-\theta)$ for $\theta \in (0,1)$. That is the pdf of $Y$ is given by $\theta^{k-1}(1-\theta).$ Formally, from what I understand the ML estimator for $1-\theta$ comes out to be $\frac{Y-1}{Y}$. But in a practice quiz a question which asks for the ML estimator for $\theta$ has the answer as $\...
I have a bunch of data (over a million cases) with a few variables. One of these variables classifies the data into one of two groups: premature and mature. I want to develop some statistical technique/function so that when I am given new cases whose group is unknown (premature or mature), I can use it to classify them...
Would a propensity score be valid as an instrumental variable in a quasi experimental context? I've seen papers that explore the question from the opposite direction: can an instrumental variable be used in the calculation of propensity scores. Thanks.
I want to find minimum of a function according to some parameters using optim function. I wonder; does defining a gradient function for the objective function, just speeds up the optimization? Or does defining it give better results. For example in some situations the optimization algoritm produces unreliable optimum p...
I have developed a basic LSTM model which predict energy consumption for t+1, now I have been looking how to deploy and retrain my model : How can I retrain my model continuously with recent data, I work in a iot environement and ideally I need to refit my model for each coming new point, any thoughts how it's done wit...
I face the following practically relevant problem. In a publication I read about a regression model $$E(Y|X)=f(X\beta)$$. This publication shows coefficient estimates $\hat{\beta}$ and their standard errors $\hat{V}(\hat{\beta})^{\frac{1}{2}}$. Let's say I want to apply this model for prediction. However, the publicat...
I am doing a research on the impact of macro-economic ageing on productivity. I have made my basic regression which investigates the impact of the changeing age structures on productivity. But now i want to add variables to my regression who could influence the impact of ageing on productivity. I would like to see coe...
I am having a hard time understanding the process of building a bag-of-words. This will be a multiclass classification supervised machine learning problem wherein a webpage or a piece of text is assigned to one category from multiple pre-defined categories. Now the method that I am familiar with when building a bag of ...
If I have an R2 linear result of .004 showing up on my scatterplot, what does it mean? I am having a difficult time interpreting my scatterplot.
Lately, after reading about GANs, I started experimenting with the MNIST dataset, and the result we acceptable. Here are some details about the networks I used: Discriminator: 784 inputs $\rightarrow$ 256 ReLUs $\rightarrow$ 1 Sigmoids Generator: 100 $\sim \mathcal{U}(-1,1)$ $\rightarrow$ 256 ReLUs $\rightarrow$ 784 S...
The following is an assignment. The matrix $\mathbf{x}$ containing the external factors has dimension $4\times1000$, and the vector $\mathbf{y}$ containing the categorical variable has dimension $1\times1000$. I have to fit a GLM model of the type $$ \pi(t) = \frac{1}{1 + exp{\left(\beta_0 + \sum_{l=1}^m \beta_l u_t^l\...
I have 4 responses per day from animals, at different points of the day (morning, afternoon, etc). My data is marred by a lot of variability, since the nature of the response is such that while some of it is systemic, a lot of it is just random behavior by the animals. I fit an initial regression model which was very f...
I just stumbled the residuals vs. fitted values plot which suppose to aid checking if the assumptions being made about the error $\epsilon$ hold. In particular: i. $\mathbb{E}\left[\epsilon\right]=0$ ii. $\forall\,\,i\,\,:\,\,Var\left(\epsilon_{i}\right)=\sigma^{2}$ (homoscedasticity) In order to check (i) we plot $y =...
I have a query about comparing binned data (and the theoretical validity of doing so) and would be very grateful if anyone can help. In one of our experiments, we're detecting the distribution of two types of cells from a feature in histological data. This data is noisy, and in the combined data sets, Cell Type 1 is mu...
I'm reading through a paper on economic factors and how they pertain to elections. Unfortunately I don't remember enough stats to fully understand how to read the tables being presented. Here is a sample... "Data are aggregate time series gathered over the post-World War II period. The percentage of the public approvi...
Can interaction be statistically significant while only one of two main effect are significant? I specifically want to know if I can report statistically significant interaction in a regression when one of the main effects hasn't reached the significance level
I have seen in several papers related to text analysis such as : Predicting Vulnerable Software Components through N-gram Analysis and Statistical Feature Selection 2015 The Effect of Dimensionality Reduction on Software Vulnerability Prediction Models 2017 that they used ngram for feature construction. What ot...
I have a dataset where the 5 number summary is: Min. 1st Qu. Median Mean 3rd Qu. Max. -0.0082630 0.0000000 0.0000000 0.0000059 0.0000000 0.7966557 I'm not quite sure how to visualize this/whether this is even possible! It is saying that the IQR is 0, while the average value is not 0...
I'm sorry if this is a duplicate question; I searched around for an answer for some time, but couldn't find anything. I want to build a model in R, with the proportional number of individuals ('count'/'allCount') as a response variable. 'count' is the number of individuals within a specific group, and 'allCount' the nu...
Assume that a class of $p\times p$ covariance matrices is characterized by a parameter $\theta$, i.e, $$\mathbb{F} = \left\{\Sigma(\theta), \theta\in R\right\}$$ Also suppose we know the following $$||\Sigma(\theta) - I_{p}||_{\text{op}} \leq ||\Sigma(\theta) - I_{p}||_{l_1} \leq a$$ where $a$ is a constant. This imp...
Im working on some school questions regarding regression models. Here I have to show that: $$ Y_i = \tilde{\alpha} + \beta X_i + \tilde{\epsilon_i}$$ where $$ \tilde{\epsilon_i} \overset{}{\sim} N(\mu_\tilde{\epsilon},\sigma^2_\tilde{\epsilon})$$ and $$\mu_\tilde{\epsilon} \neq 0 $$ Is equivalent to: $$ Y_i = \alpha + ...
What should be the minimum number of people in a sample for finding cronbach alpha for: Questtionaire with 20 items (Likert scale) Test with 20 items (multiple choice) A sample of 10, 20 or 40 ? Total population is 200, Thank you for your answers :-)
EDIT FOR CLARITY: The initial point was to do analysis for family differences of skin immune reaction, as a percent of the skin with mucous. But the family differences are not available as I don't have enough samples from each families to do anything statistically. What I want to do now is find the correct model(s) fo...
I am being asked to generate random data values for Gam(2,0.25) using rexp(n,0.5) where n is number of values in R. I tried using the method of generating random numbers from uniform distribution but it gets really messy. If you could explain how I would do this, that would be great. To reiterate must use rexp(n,0.5),...
I am trying to find the rate of change for the following points: x=years 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 y=tuition fees 25430 26160 27230 28540 29910 31450 33000 33000 34290 35340 36640 37000 38650 40170 41820 43450 45320 These points are in order. No matter what I try, I have trouble finding the rate of i...
I am doing a regression analysis, and my dependent variable y density is as followsI was wondering if some sort of data transformation will help? Is it possible to add another noise dummy variable that might improve the results? Blue is my prediction red is actual Following plots may help Suggested Solution I tried ...
I would like to ask you what is the best (or the right way) to calculate the rate of change in air temperature over a period of time and then see how this rate changes over time. Daily air temperature data do not follow a line, but it goes up and down. So, to estimate the seasonal rate of change in temperature: Can I ...
I would like to know if there is a mathematical expression linking the correlations between the predictors and the response variable and the coefficient of determination, $R^2$? For this question, the predictors are all uncorrelated. Intuitively I feel that an increase in the correlation between predictors and the res...
I am doing a research about music emotion recognition. In my research, I use a two-dimensional (Valence and Arousal) space to represent the emotion of a song. To validate my approach, I have to create a ground truth of music emotion. Most of literature I have read hired about 5 people to annotate the emotion of a song ...
Suppose I do a grid search over different algorithms (eg, LASSO, RF, MLP), fitting the choice of algorithm as a hyperparameter in nested CV using Approach 2 from this answer by @cbeleites (Approach 2: "average performance of all winning models regardless of their individual parameter sets"---unlike Approach 1, this doe...
In writing up results for a Wilcoxon Signed-Rank test, do you have to state if there were no ties in the data? Also, should the Z statistic be reported if the sample size is < 20 ? Thanks!
I'm running a repeated measures experiment where each participant performs tasks under 3 different conditions (A, B, C). Under each condition, each participant performs tasks at 10 difficulty levels (i.e. each participant performs 30 trials, difficulty level 1 to 10 under condition A, difficulty level 1 to 10 under con...
I have attached an example image of a specific format of size-frequency histogram that I am interested in using, however I have not been able to figure out how to create it in R. I do not see this rather unique histogram discussed in other threads. Y-axis is size classes (in my case increments of 1mm from 0 to 15). X-a...
I have two classification models; $\text{model}_1$ and $\text{model}_2$. $\text{model}_1$ averages $80\%$ accuracy (on a hold-out dev set) and $\text{model}_2$ averages $50\%$ accuracy (on a hold-out dev set). Given an unseen sample, I will random use either $\text{model}_1$ with $\alpha$ probability or $\text{model}_2...
I'm trying to understand how to solve the following problem: I have to estimate each parameter of $f(x)=pϕ(x│μ_1,σ_1^2 )+(1-p)ϕ(x|μ_2,σ_2^2)$ using maximum likelihood estimation. $ϕ(.|μ,σ^2)$ is the pdf of a normal distribution. So, as I understand it, what I have to do is $\mathcal{L}(\mu_1,\mu_2,\sigma_1,\sigma_2)= ...
I'm learning about statistics, so I am still a beginner. I was learning about the empirical rule, but I don't really understand it well. I think that it means that when you calculate the standard deviation, 68% of all data points are within that standard deviation. But when I try this on a simple dataset of 1 to 100: [...
I fitted a regression model and getting trouble to interpret the Half-Normal plot of Pearson and Deviance residuals. In general the fit looks good because the residuals are inside the confidence bands. But what more I can say? I read this topic How to interpret a QQ plot but not sure if the interpretation is the same...
I have a matrix of size (47*47 double) that have only 0's and 1's. I want to apply the Markov clustering algorithm on this matrix, but this Method needs a transition matrix as the columns must be normalized to sum to one. Could anyone help me to turn this adjacency matrix into a transition matrix. I appreciate any help...
I'm doing a logistic regression, which I understand I can do by simply saying $$ \operatorname{logit}(Y)=\beta_0+\beta_1 x+\varepsilon $$ where $\varepsilon$ is normally distributed around $0$. Then then we can use the usual OLS methodology to fit the $\beta$s, and when we set $\varepsilon =0$, this gives us our best ...
How can I find the CDF for $F_{X,Y}=\{x,x\}$ if $X,Y$ are not-independent. In other words, what will be $Pr\{min(X,Y)<x\}$ if $X,Y$ are not-independent? If I already know the individual CDF of both $X$ and $Y$, i.e. $F_{X}(x)$ and $F_{Y}(x)$, can they be useful to compute the $Pr\{min(X,Y)<x\}$, where $X,Y$ are not-i...
I'm learning time series and following this tutorial When it comes to simulation, there are 2 types AR: AR1: x1 = arima.sim(list(order=c(1,0,0), ar=.9), n=100) AR2: x = arima.sim(list(order=c(2,0,0), ar=c(1,-.9)), n=100) The value in ar is called phi. But I don't know what is it? In AR2, there are 2 values in ar, do yo...
I wonder whether the disease risk score and the propensity score can be simultaneously used and whether they have been ever been used together in the past.
Let's say we have points $x_1,\ldots,x_n\in\mathbb{R}^N$ and let $X=\{x_1,\ldots,x_n\}$. I wish to produce a resampling $y_1,\ldots, y_m\in X$ (allowing repetitions) such that the new kernel density estimates at $y_i$ are all roughly equal. That is, I want my resampling to obey $$ q_i = \frac{1}{m}\sum_{k=1}^m K(y_i-y...
I have a repeating sequence like the following, with occasionally random values (maybe noise): ABCDABCEDABCDABCD What could be an algorithm to model the sequence and predict a following value at a certain time. For example I had ABC and no it should say D (of course it can only give a percentage since it is not always ...
I have one continuous dependent variable, and two independent variables. The first independent variable is categorical (three groups) and the second independent variable is continuous. The DV is a measure of size, and the IVs are group and age. I am interested in how the group affects size. The age is a possible confou...
Im working on some school exercises and just cant figure out how to find answer: First, I would like to regress $Y_i$ exclusively on the intercept and compute its residual $u_{Y_i}$. Secondly, I would like to regress $X_i$ exclusively on the intercept and compute its residual $u_{X_i}$. Based on that, I would like to d...
I use neural networks for online sequence prediction. The performance of LSTM in this case, however, is not nearly as good as I expected. Maybe someone can help me understand where the problem lies. The peculiarity of online learning is that there is no test data set because the underlying sample distribution is allowe...
I struggle with that thought process a bit - intuitively I get why the ACF of an MA(q) would cut off as there's no more dependence for >q. But if we can express an MA(q) as an AR(∞) - how does that agree with the fact that the ACF of an AR process doesn't cut off? Furthermore, why does the PACF for an MA(q) not cut off...
Intuitively it seems right but does someone see how to algebraically show that $$\sigma^2_y=\frac{1}{n}\sum_{i=1}^{n}(y_i-\bar{y})^2=\frac{1}{n^2}\sum_{i<j}(y_i-y_j)^2$$ assuming $\bar{y}=\frac{1}{n}\sum_{i=1}^{n}y_i$ Expanding gives: $$\frac{1}{n}\sum_{i=1}^{n}\left[y_i^2-\frac{2}{n}y_i\sum_{j=1}^{n}y_j+(\frac{1}{n^2}...
Let $X$ be a $n\times p$ data matrix from $N_p(0,\Sigma)$. Let $C_1$ and $C_2$ be two symmmetric idempotent matrices. When are $X^tC_1 X$ and $X^tC_2X$ independent?
I am trying to calculate the limit of detection and quantification for an analysis method that uses a quadratic fit. In my case, LOD and LOQ are defined as: LOD: The limit of detection of an analyte is the lowest concentration that can be qualitatively detected but not necessarily quantitated as an exact value. LOQ:...
So I am given that the distribution is exponential $f(x|\lambda) = \lambda e^{-\lambda x}$ for $x > 0$ I am also given that there is an independent sample size $n$, $X_1, X_2, ..., X_n$ I am given that the null hypothesis $H_0 : \lambda = 1$ and the alternative hypothesis $H_a : \lambda > 1$. So I noticed that this is...
I have the following design. In each sampling plot, I measure food in four patches (BD, BF, OD, OF). From those I calculated preference for B trays and for D trays. So for every sampling plot I have two values. I want to compare if preference for B trays are greater than the preference for D trays. I used the mainly i...
I am training a simple neural network on the CIFAR10 dataset. After some time, validation loss started to increase, whereas validation accuracy is also increasing. The test loss and test accuracy continue to improve. How is this possible? It seems that if validation loss increase, accuracy should decrease. P.S. There ...
Suppose that we have a set of linearly separable data and this pseudocode of Perceptron: Input: (xi, yi), i=1,...,n, w = 0, k = 0 Repeat: k = (k + 1) mod n if(sign(yi) != sign(traspose(w)*xi) then w = w + yi*xi end if until(every point is not misclasified) Is there a way to modify this code to get a separa...
I'm trying to fit a cubic smoothing spline model to a longitudinal data using mgcv:gam. I have 30 observations collected from 5 subjects (A, B, C, D, and E) at 6 time points (0, 1, 144, 600, 1440, and 2160 hours). I fit the model as follows: require(mgcv) # data is ordered as A-t1, A-t2, ..., A-t6, B-t1, B-t2, ..., E...
I am facing with the situation where the dependent variables is student test scores (student level) and the independent variables are school characteristics (school level). And I am trying to see how school characteristics affect student outcome. Since the LHS and RHS are of different levels, how should I deal with th...
I want to perform a chi-square test on some data. To generate the histogram, I can use python's y,x = np.histogram(data). This gives me the height of the histogram, y, and the bin edges x (I can find the bin centres easily). I have the choice of normalizing the histogram. My question is: If I plan to perform a chi-sq...
Problem (not course-related) I believe that if $X$ and $Y$ are iid $N(\mu, \sigma^2)$, where $\mu>0$ and $\sigma^2$ is not too large compared to $\mu$, then: $$\log(e^X + e^Y-1) \approx N(\mu^{*}, (\sigma^2)^{*} )$$ for some new mean $\mu^{*}$ and variance $(\sigma^2)^{*}$. I believe this to be true due to simulations ...
Question: When (for what types of data visualization problems) are heat maps most effective? (In particular, more effective than all other possible visualization techniques?) When are heat maps least effective? Are there any common patterns or rules of thumb one can use to decide whether or not a heat map is likely to ...
in my SEM, I have two latent constructs that I regress towards an endogenous continuous variable (using maximum likelihood robust). The two latent variables covary. Are they endogenous then? Thank you in advance!
I am currently trying to build a mixed effect model using the lme4 package with the in-built lmer() function. My goal is to predict the number of units sold in a specific site on a specific date based on independent variables such as the retail price or promotions. Note: I transform the number of units sold in each da...
I have credit card transactions data, and I'd like to detect anomalies whitin customers transactions. When I have the customer historical data, I can use multiple algorithms in order to detect anomaly behavior. However, I'm facing troubles when I'm trying to detect for anomalies in "new" customers transactions (not on...
My question is really basic, if I have used PCA on some data to get it into lower dimension, is it possible do group data into each separate principal component? E.g. this data "belongs" in PC1
I fitted a beta regression model via MCMC with a complementary log-log link function. Is there a way to interpret it in a layman's terms? The estimates of the model are: \begin{align} \beta_0 &= -1.12 &\beta_1 &= -0.142 &\beta_2 &= 0.127 \\ \eta_0 &= -3.22 &\eta_1 &= 0.72 &\eta_2 &= 0.87 \end{ali...
I have two questions about Diff-in-Diff (on Stata) I haven't found any clear answer to. I refer to this example to make things easier: http://www.princeton.edu/~otorres/DID101.pdf Let's say: 'country' is a region; 'treatment' is the introduction of a policy for social support of the unemployed; 'y' is an aggregate meas...
I have a dataset with 19 features and one binary label (Error: Yes/No). What I would like to find are the maximum values for each of the 19 features, where crossing them would mean having an unacceptably high risk of the "Error" value being a "Yes". I'd do this, for example, by calculating the AUC of a feature based on...
I have the following problem: I have a random vector $y$ which has length $l$. The first $z$ bits come from a Bernoulli random variable with parameter $\theta_1$ and the next $l-z$ come from a Bernoulli random variable with parameter $\theta_2$. I need to find the values of $\theta_1$ and $\theta_2$. I don't need $z$ b...
I have done 400 repetitions of a particular MCMC simulation (Metropolis–Hastings algorithm) to get a quantity of interest $N$. The simulation reaches its steady-state after ~$10^5$ iterations. The typical correlation length is around ~$10^5$ iterations too but to be on the safe side, I have used a burn-in time of $10^6...
I have a signal (voltage vs time) from a measurement device. The device outputs exactly one datapoint every constant time interval dt. Theoretical reasons lead me to suppose that the data is following a hyperbolic curve $f(x)= \frac{mx}{k+x}$. Using scipy I performed a fit to the data using the curve_fit function (whic...