instruction
stringlengths
9
38.7k
Given mean and standard deviation, is there any way to find minimum and maximum in a collection of 50 numbers?
I'm using the nlme package's lme function in R to fit a random-intercept, random-slope linear mixed model for some generated test data. Although the fixed effect coefficients are estimated as expected, the variance parameter estimation yields results I do not fully understand. Specifically, the rho parameter of the c...
We have great variety of methods for random generation from univariate distributions (inverse transform, accept-reject, Metropolis-Hastings etc.) and it seems that we can sample from literally any valid distribution - is that true? Could you provide any example of univariate distribution that is impossible to random ge...
I'm trying to determine the sample size to use in a 4000 elements population experiment. To do that, I conduced an experiment in a similar population (50 elements) to compute its standard deviation. The methodology is described below: For each element, I have two different solutions (solutions A and B); I'm evaluating...
How to prove the sufficiency of the least squares estimator? Let $Y|X=Y_{1},...,Y_{n}$ a sequence of i.i.d random variables conditionated on the values of (fixed) $\mathbf{X}$, where \begin{equation} \mathbf{X}=\left[\begin{array}{cccc} 1 & x_{11} & ... & x_{k1} \\ 1 & x_{12} & ... & x_{k2} \\ \vdots & \vdots & \ddo...
Imagine this example. I've a field with following values: 10000 13455 90 12347 90 1111 235679 How can I identify that 90 are a outlier? Using average or standard deviation? Thanks!
I am confident that the below methodology creates a bias in that it indirectly uses the test set as part of the training procedure, however, I am having trouble explaining this to my colleagues. I would greatly appreciate any relevant terminology or reading material to help me articulate the problem. Here is an example...
I'm trying to implement an approximate inference algorithm based on junction tree algorithm for a Bayesian Network that has continuous variables which happen to have non-linear relationships, and in general their Conditional Probability Distributions (CPDs) are non-Gaussian and multi-modal. To estimate and represent th...
I used the function mix (package mixdist) to fit Gamma mixture distributions. The function gives mu and sigma parameters (output below). How can I find the scale and shape parameters ? Parameters: pi mu sigma 1 0.2089 185.7 285.4 2 0.7911 530.1 423.5
I have the following scales: 1 (Strongly Disagree); 2 (Disagree); 3 (Not Applicable); 4 (Agree); 5 (Strongly Agree); Questionnaire responses: Question Item1: 2; Question Item2: 3; Question Item3: 1; Question Item4: 1; Question Item5: 4; If I need to average the above responses into the Excel Sheet, while treating ...
I have somewhat of an odd question. I'm currently working on a dataset and after training my model, I'm trying to get the correct AUC and I'm using the RocR package to get that value. Im using these commands pred <- predict(model, testData,type='prob') pr=prediction(pred[,2],testData$var) prf <- performa...
I have a dataset of about 100,000 individuals, each of which is assigned a score between 1 and 5. Let's assume half are male and half are female, so 50,000 each. I find that the average score for males is 3.9 whereas the average score for women is 3.6. How do I determine if gender has a statistically significant role? ...
In Blei's original paper about LDA(Latent Dirichlet Allocation), he used VBEM method to train the model. In E step, update the posterior distribution, in M step, update the hyperparameter. But in other tutorials about VBEM, I didn't see them use such method. VBEM in other tutorials just compute $q(z)$ in E step and com...
I'm trying to see if there is a correlation between the height of grass and the height under branches available for grass to grow. I have 227 paired observations: GrassHeight HeightUnderDebris 0 0 0 0 0 0 8 16 0 0 0 0 0 0 2 2 6 ...
I have a set of features and a target(labeled data). I want to classify this labeled data into several classes. I've used many algorithms in a benchmarking approach but none of them seems to give a good result. Knowing that I have used PCA/Factor to perform a features selection and as algorithms I used SVM, C5, CHAID, ...
Pretty new to stats (and health related experiments). I bought a blood pressure monitor and want to measure my blood pressure daily ( few times at different times of day). Also, every month, I want to do a experiment. Example: First month, I want to workout daily. Second month, I won't work out. And I want to comp...
The problem is quite simple but I somehow got stuck, so any help would be highly appreciated. In R I fitted a DCC MGARCH in 2 (M=2) dimensions as follows: ` uspec <- ugarchspec(variance.model = list(model = "eGARCH", garchOrder = c(1, 1), submodel = NULL, external.regressors =...
I am trying to fit the Bivariate Poisson distribution to a set of sports results to serve as a comparison model to a new model I am developing/developed with my masters thesis.My model is as follow: model{ C <- 0 for( i in 1:nGames ){ # Min score minscore[i] <- min( Score1[i],Score2[i]) + 1 # Generate...
I need to validate a couple of subscales in a larger questionnaire. Items in the scales range from 5 to 13 composed of dichotomous and ordinal values. I currently use Cronbach's alpha to measure reliability of the scales. I read Sijtsma (2009) on the limitations of the Cronbach's alpha and want to include glb values as...
I am trying to perform Mauchly's test of sphericity on a set of Data for which I have done a repeated-measures ANOVA using aov. I wanted to test the "Participant" as an independant variable, as in my experiment, participants who are presented with the same system will not perceive it the same way. My anova therefore lo...
Could you recommend libraries to search sentences which include semantically similar phrases to the query sentence's? More semantically common phrases included, more scores. I think I should be able to represent a sentence with semantic components and their relations. To solve the problem, I thought two options. To in...
I have got Demand, Temperature, and Price data. I would like to plot Demand against other two variables separately to see the linear relationship between them, but the I that I got is very ugly. I am wondering is there any other plot that I can use? contour plot? Thanks. par(mfrow=c(1,2)) plot(data$Temp,data$Demand,yl...
I am trying to compare two forecasts using the Mariano Diebold test in R. Both forecasts are for 150 days ahead; that is, on day $t$ I forecast $t+1, t+2, \dotsc, t+150$. I deduced from this post that my forecast horizon $h=150$. Using that, the Diebold-Mariano test (implemented using function dm.test in "forecast" p...
I have a dataset with about 500 people. All of them are technically managers, but some of them manage one another within the dataset. I have a column that shows who manages who (Manager ID; there are about 200 managers and the rest are their followers). All of the respondents answered questions about the vision for the...
I would like to know if Gradient Boosting Machines and Gradient Boosted Regression Trees are the same algorithm or different. If they are different algorithms what is the main difference between them?
I saw that CovB = inv(J'*J)*MSE in a MATLAB documentation here at http://www.mathworks.com/help/stats/nlinfit.html However, I cant find any sources for the relationship . I believe in it but I need to find a source to refer it. I have looked but I cant find. It would be great if anyone can help me a bit.
Let's say I apply a multidimensional scaling(MDS) to a dynamic dataset of $n$ points (eg, time series). At each step I will obtain a projection (in 2/3D) of the $n$ points. If nothing meaningful happen it should be similar, if there are some changes, the projection should look different. However, since, to the best of ...
I would like to build a model that measures the similarity between $2$ sequences that have different lengths. Input: $[a_1, a_2, \dots, a_{n-1}, a_n]$ and $[b_1, b_2, \dots, b_{m-1}, b_m]$ where $a_i$ and $b_i$ are sets of features. Output: score $s \in \mathbb{R}$ More precisely, I want to measure the similarity betwe...
I am conducting a logistic regression I created the following test-data (the two predictors and the criterion are binary variables): UV1 UV2 AV 1 1 1 1 2 1 1 1 3 1 1 1 4 1 1 1 5 1 1 1 6 1 1 1 7 1 1 1 8 0 0 1 9 0 0 1 10 0 0 1 11 1 1 0 12 1 1 0 13 ...
We're given the random variables $X$ , $Y$ & $Z$ defined as follows : $X$ : The claim amount received. $Y$ : The amount paid by the insurer. $Z$ : The amount paid by the re-insurer. Let's say the retention limit is $M$. Thus the function $Y$ and $Z$ are defined as follows : $$ Y = \begin{cases} X, & X<M \\ ...
This question is a follow on from a question I asked here :https://stackoverflow.com/questions/39127208/how-do-i-correctly-plot-the-clusters-produced-from-a-cluster-analysis-in-matlab/39142286?noredirect=1#comment65632215_39142286 I have carried out hierarchical clustering in Matlab to create five clusters from my data...
I want to understand if the coefficient of variation ($c_v$) is the right calculation to use for measuring how far off I am when shipping goods to customers. The date I want to ship to customers is the target date and the date I do ship to customers is the ship date. For my orders, if I took $c_v$ of target date - shi...
I have a set of 6 statistics which I have measured on many simulations, and I have combined them using PCA to use just the two first principle components. But looking at the relative importance of each of the statistics in my PCs, some of them seem to have surprisingly low weights given that I know they separate my sim...
So my dataset has columns Male, Female, Month and Region (East or West). And as this is a count data (number of recordings of either male or female cannot be less than 0 for any entry) I am supposed to use poisson. First with gaussian distribution I get significant p-values about these birds being spotted in certain mo...
For example: I want to survey a group of people to get the average time the call will ring before answered. To calculate a sample size, I used the formula $$ n = \frac{z^2 \times \text{Variance}}{(\text{Margin of error})^2} $$ eg. for a 95% CI and 5% margin of error and variance is 5 seconds $$ n = \frac{1.96^2 \times...
I have two contingency tables of frequency data examining the same set of variables but at two different time points. I can make two separate before and after correspondence analysis plots but would anyone know if there's a method to combine these into one graph - say with some small line, arc or graphic to show any mo...
I have the data resulting from a genome wide association study. What this means is that logistic regression has been used to determine the association of each genetic variant with the phenotype (which is case/control), with the desired statistic being an odds ratio. I believe the power will be calculated with based on ...
I have three lists of strings: ListA, ListB and ListC. First 3 lines of listA: [1,] "OH4" [2,] "ABC" [3,] "KELL5" I want to randomly sample (without replacement) X strings from listA, Y strings from listB, Z string from listC etc. I then want to count for each possible pairwise comparison of these sampled strings how ...
Generally speaking, the pervasive idea (AFAIK) in predictive modeling is to use the simplest model that performs the best. This is relatively easy with some algorithms such as random forest (less variables at each split = less complex). This is also easy at first with simple neural networks. A neural network with 5 n...
I am doing some mixed model analyses using the lmer function in R's lme4 package. I am using the lmerTest package to obtain p-values for fixed effects with the Kenward-Roger method of estimating denominator degrees of freedom. My understanding is that to test fixed effects in a mixed model, maximum likelihood should be...
For an inverted correlation matrix $C^{-1}$, I read that its diagonal elements are related to the multiple correlation between measure i as a criterion predicted from all other measures in the set, as follows: $$ R_{i,12...p} = \sqrt{1 - \frac{1}{C^{-1}_{ii}}} $$ Why is that? There is a related question Why does inve...
I'm unsure how to proceed to report my effects. I have a glmer to run a logistic regression: glmres.RU.conf.full = glmer(correct ~ choiceConf.scaled * condition + (1 + choiceConf.scaled|subject) + (1|cityPair), data = myDataForglm.RU, family = binomial) I'm interested in two things: (1) the interaction between choic...
I was plagued by this problem while reading the tensorflow tutorial. There the word embedding is intialized as follows: embeddings = tf.Variable( tf.random_uniform([vocabulary_size, embedding_size], -1.0, 1.0)) while the output words matrix in a differenct way: nce_weights = tf.Variable( tf.truncated_normal([voc...
I am using quantile regressions in R, using quantreg. I want to use locally linear fitting as per the example on page 13 of the vignette. I have a response variable and am looking at the relationships of various predictors. However, running the regressions with some of the predictors result in a singular design matrix....
Compare playoff structures of two leagues. One (League A) in which we add divisions (where the top finishers in a division move on to the playoffs based on overall-record) and the other (League B) where the playoffs are determined by overall-record compared to the entire pool of teams. Does League A have more entropy ...
Suppose I know the true distribution, $P^*(x)$ and I have approximated the true distribution with $\tilde{P}(x|D)$, which is the predictive posterior density. Does the relative entropy of $\tilde{P}(x|D)$ with respect to $P^*(x)$ become: $$D_{KL}(P^{*}||\tilde{P})=\int_{-\infty}^{\infty}P^{*}(x)\,\log\frac{P^*(x)}{\ti...
Currently, I'm trying to design an appropriate model for some gene expression data, to analyse it using limma. I've got a few questions regarding model design though. Let's assume that we've got the following data (stored in pData): Sample Treatment Incubated 1 Naive No 2 Naive No 3 ...
I was exploring the options to design the approach to train test and predict the customer lapsing model. Description: Lapsed => Customer didn't purchase an item in the financial year (ex: Customer A didn't purchase any item in 2010 => Customer A is lapsed in 2010) Say, I have list of 500 customers and 9 years of the da...
I have the number of arrivals per hour to a center before and after the implementation of a scheduling software that allows clients schedule their own appointments. Both distributions are Poisson with high arrivals at the beginning of the day that reduce as the day proceeds. The goal of the program however is to the r...
When building an Error Correction Model, is there any point in keeping p=1? I see a lot of equations where there t is influenced not only by t-1 but also t-2. If I only have t-1, is it useful at all to use the VECM framework? Or should I use a different framework? Initially I looked into it to address the non stationar...
I have a data set of time series, and each time series has a set of attributes. I know I can cluster time series using dynamic time warping and k-means (https://github.com/alexminnaar/time-series-classification-and-clustering), but how can I introduce attributes for each time series that can be clustered on? Each time ...
In SEM is it acceptable to draw a path from an exogenous observable variable to an indicator of endogenous latent variable, if it is suggested in modification indices?
There are quite a number of questions about missing data, but I can't find one related to its consequences on validity in the context of regression. Please correct me if this is not the case. The article on Wikipedia is quite vague on the issue too, with phrases like "with different impacts on the validity of conclusio...
Let $y_1, \dots,y_n$ be i.i.d. random variables from $Y$ with density $$p(y;\theta)=\theta(1-y)^{\theta-1},\ \theta > 0,\ y \in(0,1)$$ and $T=-\ln(1-Y)\sim Exp(\theta)$ with $\theta$ rate parameter. The log-likelihood is $l(\theta)=n \ln(\theta)+\sum\ln(1-y)$ and the MLE is $\hat \theta=-\frac{n}{\sum \ln(1-y)}$. I n...
> trees Girth Height Volume 1 8.3 70 10.3 2 8.6 65 10.3 3 8.8 63 10.2 4 10.5 72 16.4 5 10.7 81 18.8 6 10.8 83 19.7 7 11.0 66 15.6 8 11.0 75 18.2 9 11.1 80 22.6 10 11.2 75 19.9 11 11.3 79 24.2 12 11.4 76 ...
I am going through the first part of the Duke statistics course on Coursera, and the concept of blocking in experimental design comes up. If I understand correctly, blocking refers to separating subjects into groups based on some variable that might affect the outcome. However, if we are already performing random assig...
I have been trying to find examples of cases where something along the lines of a dredge technique has been used in the Bayesian context. That is, specifying a global model and fitting all possible sub-models. Of course, if you are just specifying a plain ol' linear model, the number of possible sub-models doubles for ...
I have a standard OLS as follows: Y = intercept + var1 + var2 + var3 + e I want to run an additional OLS as follows: var3 = intercept + var1 + var2 + e var1 is the variable of interest; the remaining variables are controls. My theory predicts var1 affects Y and it could also possibly affect var3, hence the second regre...
I'm looking to build a MDP and a reinforcement program in Python which works on generating text based on reward points in training data which is text sentences. I could not find any basic example program models which gives idea on how to build MDP on text sentences training data or identify which reinforcement model to...
I'm afraid I can't provide a reproducible example because I'm not sure what the problem is - I'm just hoping someone else can eyeball it or has encountered it before. I am using XGboost to predict future outcomes. As a result, I'll use data up to and including July 2016 to predict August, September, etc. This means for...
I am trying to find out how to determine / display the mode of the decision trees (used by Random Forest to make further predictions / assignments). I am using library(randomForest) in R: r <- randomForest(Species ~., data=train.set, importance=TRUE, do.trace=100, ntree=100) I can extract a given tree using t <- getTr...
I am reading a textbook that mentions the following linear model: $$y \sim \sum_i x_i b_i + \sigma z,$$ where $y,b_i,z \in \mathbb{R}^n$, $x_i,\sigma \in \mathbb{R}$, and $z \sim \mathcal N(0,I)$. Now, the text then goes on to talk about properties of the sample and population covariance without defining these terms: ...
I have got hourly data, which may have daily and annually seasonality. The ACF plot of the data are shown as follows, which is plotted up to 44 lags (upper left), 100 lags (upper right), and plot of diff(data, 24) (bottom left), and diff(data,24*365) (bottom right). I also tried to take the difference of 24, and then 2...
In this study pregnant women were measured repeatedly (say 10 times) for their behavioral practices (food portion, exercise, blood pressure, etc) and followed until the delivery of the baby to measure the weight of the baby. I want to fit a model with the dependent variable of birth weight and independent variables of ...
If a set of features, A, results in an AUC of 0.5, then an improved set of features, B, were used resulting in an AUC of 0.75, how do I express this improvement in words: 50% improvement (0.75-0.5)? 25% improvement (0.75-0.5)/0.5? it seems like simple statistics, but I am mixed up on this issue.
I am a little bit confused with the grid search interface from scikit-learn. From examples I found snippets like that clf = GridSearchCV(SVC(C=1), tuned_parameters, cv=5, scoring='%s_weighted' % score) clf.fit(X_train, y_train) I imagine what when calling fit the exhaustive search happens and then t...
Many Gaussian process packages are available in R. For example there is $\textbf{BACCO}$ that offers some calibration techniques, $\textbf{mlegp}$ and $\textbf{tgp}$ focusing on treed models and parameter estimation and $\textbf{GPML}$ for Gaussian process classification and regression. The problem with these packages...
I'm about to finish my honours in statistics, and I really want to do a PhD because I find mathematical statistics extremely interesting. Areas of research I most want to do a PhD in are stochastic processes and time series. However I also want to pursue a career in the private sector after my PhD. I was wondering what...
I work with learning and predicting events (of various kinds) in time and space. The data is completely observable without censoring. Even so, survival analysis is a useful tool to learn a distribution over time and sample from it to predict future events (deaths). A potential challenge is the inclusion of time-varying...
I am trying to recreate a PROC GLIMMIX command in R using glmer. Here is a link to the data (from SAS product support GLIMMIX documentation): https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_glimmix_a0000001403.htm The SAS code is proc glimmix data=multicenter; class cen...
Let's say we have a binary classification task, but our dataset contains more fine grained values of how much an examples belongs to the class or not. So the labels are real numbers in $\left[0,1\right]$. I can see two ways to make use of this additional information: Approach this as a classification problem and use t...
Currently I am trying to implement a mortality rate model (Lee-Li), but I am having some trouble with the maximum likelihood procedure of a time series model given by: \begin{align} K_{t+1} &= K_t + \theta + \epsilon_{t+1}\\ \kappa_{t+1} &= a \kappa_{t} + \delta_{t+1} \end{align} Where $E_t := (\delta_t,\epsilon_t)$ a...
I have a (basic) question about recoding some variables that I have in an SPSS file. I am an Honours student and I am looking at students' use of study drugs as part of my thesis. In my survey I have a number of drugs and I would like to create a binary variable (1= User, 0=NonUser) based on whether an individual has u...
How to determine the lag length $q$ in the ARCH-LM test? If I set $q=1$, the result is homoscedastic (failed to reject H0). But if I set $q=4$ for example, the result is heteroskedastic (reject H0). Which one should I use?
Background: A lot of the modern research in the past ~4 years (post alexnet) seems to have moved away from using generative pretraining for neural networks to achieve state of the art classification results. For example, the top results for mnist here include only 2 papers of the top 50 seem to be using generative mod...
Fix a set $\mathfrak{A}$ and a probability distribution $\mathcal{D} : 2^\mathfrak{A} \to [0,1]$ defined over subsets of $\mathfrak{A}$. We can then ask "what is the probability $p(x)$ that a subset of $\mathfrak{A}$ drawn according to $\mathcal{D}$ contains $x$?", and easily compute $$p(x) = \sum_{Y \subseteq \mathfra...
I am trying to finish my thesis, in which I investigated the association between different hospital characteristics and (numerous)patient outcomes, using multivariable regression models. One of the dependent variables was a ratio of the expected to the observed rate of infections. Turns out that the expected rate of in...
Although this question in some form has been asked in many places, I still have yet to read an answer or explanation that grants intuition for when it is appropriate to use larger kernels in a convolutional neural network. It seems like smaller kernels like 3x3 are all the rage these days, and I'll often hear things li...
In his classic paper about Information theory, Claude Shannon provides a formula for entropy which is now widely used. But is there a different formula for entropy that satisfies all the constraints of entropy: H should be continuous in p H should be monotonically increasing in n, when pi are all equal pi = 1/n If a c...
Why many papers when testing different hypothesis with one dataset they tend to separate in different models to analyse? Example Model 1: $y = c + \beta_1 Ctrl1 + \beta_2 Ctrl2 + \beta_3 Expla1 + \beta_4 Expla2 + \beta_5 (Expla1*Expla2) $ Model 2: $y = c + \beta_1 Ctrl1 + \beta_2 Ctrl2 + \beta_3 Expla1 + \beta_4 Expla...
I am going to use the Kolmogorov-Smirnov test to test normality of MYDATA in R. This is an example of what I do ks.test(MYDATA,"pnorm",mean(MYDATA),sd(MYDATA)) Here is the result R gives me: data: MYDATA D = 0.13527, p-value = 0.1721 alternative hypothesis: two-sided Warning message: In ks.test(MYDATA, "pnorm"...
I'm trying to simulate a sample from a t distribution with 4 degrees of freedom. The candidate density I'm using is a normal(0,1) distribution. Although the mean does converge to 0, the variance keeps converging to 1.5 instead of 2 as a t distribution with 4 degrees of freedom should have. It's especially confusing sin...
I quote a part of the 5.9.1 section from "The Elements of Statistical Learning" book as the following: "Notice that since these spaces are orthogonal, all the basis function are orthonormal. In fact, if the domain is discrete with $ N=2^J$ (time) points, this is as far as we can go. There are $2^j$ basis elements at l...
I am estimating several ARIMA(p,1,q) for the logarithm of the realised volatility of the S&P 500, where d = 1 based on KPSS test, even though presence of an unit-root is rejected by the ADF test. As this is a hint of long memory, I am also estimating an Heterogeneous Autoregressive (HAR) model (described in this paper)...
I am training a multiclass classifier (specifically a Random Forest) from consecutively generated data. It is not a time series, but the data could be seen as subsequent events. Some of my features access the labels from all previous data. This makes a cross-validation approach infeasible, because in each fold (apart f...
I have a dataset of 90 individuals with 12 binary variables, divided in three groups of the same size. I want to know if two if these groups have differences with the other one (the control group), which is the best way to do this? Is it correct to use PCA to do simple ANOVA?
I have a time-varying signal $f(t)$. Couple of probes are trying to measure its values across different time intervals: \begin{align} X_1 &= f(t = t_0) + e_1 \\ X_2 &= f(t = t_0+h) + e_2 \end{align} $e_1$ and $e_2$ are two independent random variables with zero mean and variance = $\sigma^2$. Goal is to estimate the r...
I have a random forest model that attempts to classify a binary outcome (either "Good" or "Bad"). I am currently looking at ways in which I can evaluate the performance of the model when it is used on newer data to determine if the model is still performing acceptably. The only performance metrics I can think off are: ...
I am analyzing my data using a generalized linear mixed model in R. My design has three categorical variables: proficiency (three levels: Chinese vs English vs Japanese),a between subject effect, that is, three groups of participants function (two levels: component vs radical), a between-subject effect position (fiv...
I wonder what is the smallest amount of bits a neuron needs? For example for speech recognition / image recognition tasks? Can 4 bits produce as good results as 16 bits, or even 64 bits ? Is it not a waste to use 16 bits ( or 64 bit double-s)? For example spin systems can be encoded with only 1 bit per spin and there ...
Suppose you are measuring $n$ quantities with error. Let $\beta_1,\ldots, \beta_n$ represent the true values and $X_1, \ldots, X_n$ represent the measured values of those quantities. Assume that the errors are centered normal. Let $\sigma_i^2\,, i=1, \ldots, n$ represent the known standard deviation of each measuremen...
just a basic question, but is there a difference between generalized linear model with binomial distribution and binary logistic regression? Or it´s the same?
I'm a little bit confused about this, so any help would be appreciated! Let's say I have a repeated-measures design in which participants take part in a task where they have to rate the attractiveness of 50 different faces in 4 different conditions of facial expression type. Condition A is a baseline with neutral expre...
I have a classification problem which is multi-label with N labels. I would like to know which method would be the better choice? Training N classifiers (1 for each label) or a single classifier which use K-hot encoding. I'm using a neural network for this with a softmax at the last layer. (Is there any chance that the...
NB: I'm not a Stanford student asking for you to do my job, I'm studying online and trying to figure it out by myself. I'm following Stanford's CS224D and I'm having troubles understanding some of the math. In the first assignment's solutions, part II question c, I don't understand this part: 1) Why does the second de...
I have the historic values of economic variables at quarter-ends for around 120 quarters. I wish to quantify how different the economy is at any two given point in time in my dataset (i.e. to produce 120x119 distances). Should I use euclidean distance on scaled data, or would the Mahalanobis distance (between each pai...
I am looking at a summary statistics table in a finance paper, which is from a panel data set. The table is something like this: Variable Mean Median t-stat SR 0.026 0.018 25.210 Size 2715.420 308869 33.840 I want to understand how the t-stats here are calculated. The...
is every covariance matrix 's eigenvector is orthogonal? why symmetric matrix's eigenvector is orthogonal? can you show some example? and the reason? $$\Sigma {\bf U_i} = \lambda_i U_i$$ additional question) why first eigenvalue is the direction of covariance matrix? and second eigenvalue(what is second eigenvalue?) i...
p-curve analyses (http://www.p-curve.com/) use significant p-values to estimate evidential value and effect sizes. To estimate evidential value, p-values are computed for p-values (pp-values), and these are converted to one-tailed, negative z-scores. These z-scores are summed and divided by the square root of the numbe...
Standard Gradient Descent would compute gradient for the entire training dataset. for i in range(nb_epochs): params_grad = evaluate_gradient(loss_function, data, params) params = params - learning_rate * params_grad For a pre-defined number of epochs, we first compute the gradient vector weights_grad of the loss f...