instruction
stringlengths
9
38.7k
I understand how we get 3.5 as the expected value for rolling a fair 6-sided die. But intuitively, I can expect each face with equal chance of 1/6. So shouldn't the expected value of rolling a die be either of the number between 1-6 with equal probability? In other words, when asked the question 'what's the expecte...
Is there a way to find the time it will take a component to fail if we know the average failure time. For example a bulb has a mean failure time of 100 hours but is working even after 200 hours. Can i say at what time it will fail? I dont have any others statistics like distribution etc.
Suppose $X,Y$ are independent $N(1,1)$. How can I calculate $P(2-X<Y<X)$?
I want to find the most statistically distinct phrases in texts across different classes, where the texts have already been classified. Suppose I have ~100,000 short text documents, where each document has a label. Let's say I have 100,000 text messages labeled with the gender of the author (male or female). I want to ...
I am trying to apply log-log in a marketing mix model. The dependent variable is sales, among the independent variables, one is holiday, it is dummy variable, the value is either 1(yes), or 0 (no). Another variable is competitor spend, sometimes, the value is 0. I want to use a log-log model in R. But how can deal wit...
When I read the talk notes by Owen about empirical likelihood, http://www.ms.uky.edu/~mai/sta709/Owen2005.pdf I am confused about the solve of solution when I read the page 24. Let's say we want to get the maximum value of $\sum_{i=1}^n \log(n w_i)$ with the constrained condition, to solve the optimisation problem, we ...
I'm trying to make sense of the following sentence from introduction "Multiple discoveries: Distribution of roots of determinantal equations" http://statweb.stanford.edu/~ckirby/ted/papers/2007_MultipleDiscoveries.pdf "The distribution of the squares of the canonical correlations when the population canonical correlati...
Exactly as the title asks. Suppose I have a discrete distribution of which the only thing I know about it is the mean $\mu$ and variance $\sigma^2$. What would be the notation to describe this? Is there something that is commonly used that is similar to the normal distribution?
I am trying to do sentiment analysis using Naive Bayes and have a doubt regarding log. While calculating posterior probability in Naive Bayes classifier, we apply log to prevent underflows and very small values. My question is that when applying log, $\log(p(x|Y=C)$, do we have to apply log separately to numerator and ...
Let's say we have i.i.d. normal distributions $Z_1, ..., Z_n$. For some nonzero constants $a_1, \cdots, a_n$ and $b_1, \cdots, b_n$, let $$X = a_{1}Z_{1} + \cdots + a_{n}Z_{n}\\ Y = b_{1}Z_{1} + \cdots + b_{n}Z_{n}$$ If $X$, $Y$have covariance zero, are $X$ and $Y$ necessarily independent?
I have a soil nutrient dataset of 60 plots from three different soil types divided per three depths. I did a one way ANOVA for every nutrient at the first depth and I got nice results in which I can see some nutrients changing among soil types and some other no. Now I would like to get a significance value for differe...
I have a chemical engineering background but I have decided to go into the corporate world instead of industry. I now work in payment streams and have been doing data science and optimizations. What I found use of was a distance matrix of entities and then doing clustering. I am now looking for similar matrix operation...
I'm trying to calculate the Mahalanobis Distance (to check for outliers) in SPSS for a scale of 25 items. When I use the Regression function and save the Mahalanobis Distance values, everything seems to run correctly and MOST of my cases will have an MD value of some sort. About 10% of my cases do not (the cells are si...
In a paper from 1936, Harold Hotelling (access on JSTOR) defined the concepts of canonical correlations and canonical variates for two sets of variates. In pages 327 and 328, he precisely derives these two concepts with an algebraic perspective. In page 328, he deduces that if one set has more variables than the other ...
Consider a set of $p$ stationary correlated time signals of identical duration $T$. I would like to de-correlate them by projection on an orthogonal basis but preserving stationarity. Without the stationarity constraint, a principal component analysis would produce the desired basis. I figure that a functional principa...
I have a data set of N points, n X variables plus Y variable. $$ (x^{(i)}_1,...,x^{(i)}_n,Y^{(i)}),\,\,\,\,i = 1,...,N $$ generated by a mixture of $k$ linear dependencies; with this, I mean that there exist $k$ vectors of coefficients $$ a(j) = (a(j)_1,...,a(j)_n),\,\,\,\,j = 1,...,k $$ such that for each $i$, there e...
I am trying to get a feel for the relative merits and drawbacks, as well as different application domains of these two MCMC schemes. When would you use which and why? When might one fail but the other not (e.g. where is HMC applicable but SMC not, and vice versa) Could one, very naively granted, put a measure of uti...
I was just recently wondering how to solve this problem: I have a set of experiments which I did by myself and I analyzed the data and ran the statistical tests (Mann-whitney test). Analysing the raw data you can clearly see that there is absolutely no difference between the groups or this difference is so minimal that...
I am using R. I have two data sets. The first one is generated with rnorm(), the second one is created manually. Histogram of the first set is here and Shapiro-Wilk (shapiro.test()) returns p-value 0.189, which is expected. > shapiro.test(d) Shapiro-Wilk normality test data: d W = 0.96785, p-value = 0.189 The ...
I've read what they mean on a technical level, but I'm trying to build intuition related to a specific problem. So I have some data, a set of measurements. It's pretty curvy, looking like a cross between a norma and a gamma maybe. I do a qqplot of it with a normal distribution. The qqplot looks reasonably linear, it ha...
I would like to check the proportionality assumption of a proportional hazards model. The problem is that I am doing multiple imputation. I have checked the assumption in every one of the imputed data set. If the assumption is violated in only one imputation, does it means the assumption is rejected? Is it reasonable t...
I have conducted a research testing the associations between vitamin D, CRP, C3, and insulin resistance. The design was a case-control design. the sample size was 134, of which 67 are cases (obese) and 67 are controls (normal weight). of note, each group contains 35 females and 32 males. The Journal which i intended to...
I’m running a regression to test the stock market in Sweden. In essence, I have made a categorization of two types of buys and two types of Sells. Then I have divided the sample containing all trades over time into small, medium, and large size firms and run the same regression on the different samples. When I regress...
Aren't they both calculated the same way? Is the difference then only that rate looks at past events for a period of time vs. probability predicts the possibility of future events?
Conduct both a parametric and a non-parametric test for the median value of 80. Are the results from both the tests similar? My code is: Ins <- diabetes$Insulin tstat <- median(Ins) f1 <- function() { x <- rnorm(length(Ins), mean = 80, sd = sd(Ins)) return(median(x)) } sdist <- replicate(10000, f1()) plot(d...
I have simple question, what is the difference when you use total and percentages when calculating correlation ? For example I want to calculate correlation between Europeans born in USA in each state every year (here I have total amount of people, and percentage of people) and average number of people who change work ...
I would like to predict a binary output based on borrower's informations in a bank credit demand/file. My problem is that this file can be filled either by a single borrower (celibate) or 2 borrowers (couple) My dataset looks like this: nb_of_B | B1_Info1 | ... | B1_InfoN | B2_Info1 | ... | B2_InfoN (B means Borrowe...
I am visualizing average biological parameters (i.e., weights, lengths, age, condition, etc.) over time (specifically across years) using geom_boxplot in ggplot in R. I have also fit a trend line through each data set using a linear model (specifically using + geom_smooth(method = "lm") and a spline using stat_smooth.A...
How can I get P(B|A) based on P(A) and P(B)?
In understanding the proof of Basu's thereorem, from wikipedia, I could not understand a few steps. Here's the wiki page. The link to the page. I do not understand the following. We are not making any assumptions on the probability density function. Hence, what does $P_\theta$ and $P$ represent individually? This als...
In my study, we investigated the effect of sex and location on fish length taken from 3 different regions: A,B, C. From each site we randomly took 10 females and 10 males. Now I am going to test whether sex and/or region affect fish length. I am not really sure which method should I take to analyse my data. 2 way ANOVA...
The marginal likelihood (or Bayes factor) method to perform model comparison, based on $\Pr(\text{data}|\text{model})$, assumes that the true model is the model set (closed world assumption). What happens when the true model is not in the model set? I assume that the method would report a high Bayes factor aka posterio...
Simple question. I have a rv $X$ whose mean and variance I know but am interested in the true distribution, $P(X \le a)$ which I do not know. So I resort to sampling $X$. I do this $N$ times and create a approximate pmf for $X$. I want to know how "good" this is. How do I quantify this? Okay, more realistically I am i...
If I have data regarding advertising traffic (number of impressions displayed), revenue from these impressions, browser, country, device, etc., what kind of statistical test can I apply? I want to be able to say, for example, that traffic from country a is more valuable than traffic from country b, or traffic from mobi...
I want to see if there is a difference in tenure between low performers and high performers. I am using R and I did an ANOVA to test the difference with this code: fit <- aov(Tenure ~ Perf2016, data=df) summary(fit) Tenure is a continuous variable and Perf2016 is a dichotomous variable. I want to calculate Cohen's D ...
I am working on a hypothesis test and need to separate a group of people into a control and a test group. What is the best way to calculate that, if I have N people?
I have an HMM (picture below), with a single parameter $\theta$ I want to estimate using Baum-Welch. I have a single training example X="HHT", and I start with an arbitrary guess $\theta = 0.8$. I know how to use the forward-backward algorithm to build the $A$ matrix with the expected number of transitions, e.g. $A(Fai...
I'm trying to find a function which describes one data set. I've tried to create a model by function lm() like this: Call: lm(formula = time ~ I(1/nprocs) + I(1/nprocs):ndoms + nDOF:ndoms + I(nDOF^2):ndoms, data = dataFact) Residuals: Min 1Q Median 3Q Max -0.33075 -0.05145 0.00782 0.05...
Background - I'm trying to follow section 7.2.4 in this EM tutorial. Basically the setup is I have a vector with 10 points $x$, and each of them can be assigned ($y$) to either Gaussian 1 or to Gaussian 2, and I want to estimate the parameters $\theta$ = (mean, std) of both Gaussians and assign which point belongs to w...
I have the following data which I am trying to get a nice simple regression fit to it: Looks simple enough, but using R's nls function and trying both a power (ax^b+c) and an exponential (ab^x) fits I get very poor fits (red line is the power regression result and green line is the exponential result): I've tried ...
I'm trying to learn machine learning using the book "Learning From Data". I'm working through the exercises and problems of the book and I got stuck at problem 1.9 on page 37, which is about deriving the Chernoff bound. I got through parts (a) and (b), and worked out the proof for: $u_1, ..., u_N$ iid random variables,...
So, I'm trying to think about how to evaluate models composed of more than one equation in a Bayesian context. For example, consider the following as 'how the world works': $y2_i \sim dpois(\lambda_i)$ $log(\lambda_i) = \beta_0 + \beta_1 * y1_i$ $y1_i \sim dbinom(15, p_i)$ $logit(p_i) = \beta_3 + \beta_4 x1_i$ Now, a...
Here's my data. https://www.dropbox.com/s/puf57efqkdl8zt0/data.csv?dl=0 It's too big, therefore I did not know to use the dput(data) command. I am using a mixed effect model to model response as a function of 8 climate variables. response is derived from yield of 2 crops yld.lc and yld.nc as follows response = (yld....
If we know the pre-truncated distribution follows the standard normal distribution and we know the post-truncated mean and variance, is it possible to calculate the truncated point of the truncated normal? From Wikipedia, it seems like we can express the mean of the truncated normal as (if my derivation is correct) $$ ...
Let me denote a standard normal random variable by $X$ and its outcome (sample) by $x$. My question is about the $\sim$ notation. Should we write \begin{equation} X \sim \mathcal{N}(0, 1) \end{equation} or , \begin{equation} x \sim \mathcal{N}(0, 1). \end{equation} i.e. Does the $\sim$ denote a random variable or a sa...
I have implemented two independent multivariate abundance regressions, both of which use the manyglm function in the mvabund package in R. One regression fits 17 predictors to the abundances of 62 different bird species, while the other regression fits 15 predictors to the abundances of 158 different plant species, wh...
I am just learning Markov Models and HMM. I have a problem on which I am trying to implement them but am not sure which one is appropriate. Following is the problem. The data is time-series. There are 2 states - 1 & 0. When at state 1, observations can take a range of values usually between say 1 to 10000. But when in ...
I am reading a paper that defines $$ \mathcal{T}(x, \mu, \sigma) = A \cdot x \cdot \exp \left \{ - \left[ \frac{x-\mu}{\sigma} + \frac{\sigma}{2 \mu} \right]^2 \right \}.$$ It is introduced in order to have a Gaussian that goes to zero at $x=0$. It says that $A$ has to be chosen such that $\mathcal{T}$ is "unimodular...
I'm looking for the best statistical practice to transform the number of occurrences (of a word in different documents) into a value between 0 and 1, whereby the first occurrence is worth more than the second, which is worth more than the third, etc. The number of occurrences is theoretically unlimited, so the value sh...
The model of interest is $$ y = \alpha + \beta_1 x_1 + \beta_2 x_2 + \epsilon $$ In the population, $E[\epsilon|x_1]\neq 0$ and $E[\epsilon|x_2]\neq 0$, so OLS estimates of $\beta_1$ and $\beta_2$ are biased. Suppose that I know, from theory, that the bias will be downward for $\beta_1$ and upward for $\beta_2$. I...
I can define the sigmoid function in R with: library(tidyverse) s_curve <- function(x) { y <- 1/(1 + exp(1)^-x) return(y) } df <- tibble(x = seq(-3, 3, 0.1)) %>% mutate(y = s_curve(x)) And plot it with: ggplot(df, aes(x, y)) + geom_point() Hight I adjust the function to include hyperparameters that ...
I am confused with metropolis hastings. This is a simple question. In the metropolis hastings, it is assumed that we know the un-normalised posterior, $\pi(x)$. We can obtain the density by normalising $\pi(x)$. No doubt, if you have a closed-form expression of $\pi(x)$, this can be difficult because you still evaluate...
I am about to start a project in ABC methods and I need to first of all study ABC since I know nothing about it. I spent quite a bit looking for on-line tutorials and notes but I found nothing apart for some videos. Can you please suggest me some notes or even a textbook? Not to difficult since I do not really need to ...
For simplicity, let's consider an AR(1). The model I want to fit is \begin{align*} Y_{t} = \mu + \beta X + \phi Y_{t-1} + \epsilon_t \end{align*} where $X$ does not vary with time. So how is $\beta$ even identifiable? Well, I have $K$ replicates of these time series, each at different levels of $X$, so ultimately I hav...
What i know about sufficient statistics is that the conditional distribution of sample obtained given for particular statistic must be independent of parameter.. but how does this relate to the containing all information regarding parameter in sample..... Elaborate plz .and is sufficient statistic unique
I'm developing a code to perform Mie scattering corrections and, while reading a paper regarding this [1], I found this sentence: Prior to approximation by PCA, the matrix $M$ is orthogonalized with respect to the reference spectrum $Z_{ref}$ where $Z_{ref}$ is a vector of data. The matrix $M$ has a spectrum of dat...
I'm new to reinforcement learning (and machine learning in general) and have attempted to recreate the k-armed bandit experiment in section 2.2, Action-value methods, of "Reinforcement Learning: An Introduction" by Sutton & Barto. The expected graph is supposed to look like this: However, mine looks like this I would l...
I did a simple regression where the independent variable was the educational background of the mother. The dependent variable was the language skills score of the child. I switched them around and did another regression to see which coefficients change and which didn't. The t-test of the gradient was the same for bot...
Suppose I have an $n \times p$ matrix of data, $X$, and a $p \times p$ matrix of coefficients $\beta$. I'm interested in the folllowing: $$ \min_{B} \Bigg\{ \lVert XB - X \lVert_2^2 + \lambda \sum_{j = 1}^p \lVert B_{\cdot , j} \rVert_2 \Bigg\}$$ A couple of thoughts here: $B_{\cdot , j}$ is the $j^{th}$ row of $B$ ...
$\newcommand{\Cov}{\operatorname{Cov}}$I am getting hung up on what is probably a very basic point. We know that covariance is defined as $$\Cov(X,Y) = E(XY)-E(X)E(Y)$$ Now if we look at the definition of expected value, assuming $X,Y$ are discrete with mean 0 $$\Cov(X,Y) = \sum_{(x_i,y_i)}x_iy_iP(X=x_i,Y=y_i)$$ Now,...
I ran a three-way ANOVA to find effect of insecticide (2 levels), species (2 levels) and location (2 levels) on body condition of turtles. I did not find any three-way interaction. However, I found an interaction between insecticide and species! I am not familiar with three-way ANOVA and I dont know how should I interp...
I am trying to analysis a dataset with survival data, I am new to cox model and I am not sure how to interpret covariate factors. I have read the survival R package documentation and online examples but I am still very confused. The covariate I am trying to understand is frailty and contains three levels: frail, pre-fr...
In randomized trials with non-compliance among the treatment group, a common estimator is the Complier Average Causal Effect (also called the Local Average Treatment Effect), which (conditional on a number of assumptions) provides an unbiased estimate of the causal effect of the treatment. The idea is that both the int...
I have data that I have used the R package twang with multinomial propensity scoring, to assign caseweights based on an ATT model. Once these caseweights have been assigned, they are typically used with a survey procedure. In R, there is the survey package which contains svycoxph, but this can also be done using the su...
I want to test for efficacy of an intervention. I have pre- and post-intervention data and I used auto.arima to find the best fit for the two data sets. I'm stuck in the actual use of these models now. What do I do with the auto.arima fit? Can I graph it and test for statistically significant differences in the coeffic...
The definition of differential privacy says that an algorithm $M$ is $(\epsilon,\delta)$-differentially private if $$P(M(x \in D) \in S)\leq e^\epsilon P(M(x \in D')\in S) + \delta$$ where $D,D'$ differ by one row and $\delta$ is $\text{negligible}$ in the number of database rows, so $\delta< \frac{1}{p(n)}$ with $n$...
I was thinking about using PCA to deal with issues of multicollinearity on my dataset. I was wondering how appropriate it is to run PCA on only subsets of variables that seem to have issues of collinearity. For example, if I had a dataset with 10 independent variables, and 5 of them seemed to suffer from multicollinea...
I would like to test if one procedure yields a significantly different success rate than the other. In procedure A, I have 2 successes and 19 failures. In procedure B, I have 2 successes and 38 failures. What kind of test can I use here because it appears that I don't have a large enough sample size for t-test for prop...
I have two distributions of continuous, unpaired measurements. I would like to visualize the two distributions with a pair of histograms, counting measurements that fall over a bin's interval. Are there ways to rescale or process the smaller of the two sets, so that when I make two histograms (or other visualizations,...
I'm trying to understand fraction of unexplained variance on wikipedia: https://en.wikipedia.org/wiki/Fraction_of_variance_unexplained $$\text{unexplained variance} (y, \hat y) =\frac{\operatorname{Var}\{y-\hat y\}}{\operatorname{Var}\{y\}}$$ Correct me if I'm wrong, it's basically find out the variance between the di...
I remember recently seeing or reading a paper about a new type of recurrent neural network that enabled long term memory over sequences by having only part of the neurons active at any given timestep. The timestep unrolled connections looked something like this (possibly not exactly like this) This was done to model t...
Here's a question from my problem sheet. For the normal linear model, verify that the MLEs $\boldsymbol{\hat{\beta}}$ and $\tilde{\sigma}^2$ are maximal values for $\ell(\beta, \sigma^2;\mathbf{y})$ with respect to $\beta$ and $\sigma$, where $\ell$ denotes the log likelihood. What is the maximum value of the likeliho...
The NIST website's description of the partial residual plot says that it plots $$ \text{Res}+\hat\beta_iX_i\text{ versus } X_i $$ where $\text{Res}$ = residuals from the full model $\hat\beta_i$ = regression coefficient of $X_i$ $X_i$ = the $i$th independent variable in the full model This decription is clear enough ...
If I have n IID normal random variables, and I sum their squares, what does the resulting cummulative distribution (cdf) look like? This is where I've gotten so far: $Y = \sum_{i=1}^nX_i^2$ where $X_i \sim \mathcal{N}(\mu, \sigma^2)$ $Y = \sigma^2\sum_{i=1}^n\frac{X_i^2}{\sigma^2}$ $Y = \sigma^2\sum_{i=1}^nZ_i^2$ whe...
I'm trying to understand this answer on Earth Mover's Distance, especially the first sentence (below), without having deep statistical knowledge. I think the word "marginals" is the biggest stumbling block. I can generally only find definitions for it as an adjective, and Andrew Gelman notes that the statistical use of...
How can we show that weight decay produces a positive effect on the performance of a neural network? Specifically, a network that classifies images? One way would be to add noise to the images in the dataset, and compare the performance of training with weight decay and without. What kind of noise would be best for ima...
I am a intermediate level programmer, interested in ML generally. RE: Decision Tree Classifier with iris data. In R this is so easy .. I inspect the raw data in the .csv file and THEN upload to R dataframe for preprocessing, etc. In Python with sklearn this is just hellishly DIFFICULT ! I do NOT want to just use iris =...
My question: I usually don't have much trouble with deriving the MLE from the log-likelihood, but I am a little stumped on an example I found in "In All Likelihood" [1] pg.75. Could someone show the steps from the log-likelihood to the MLE? What the book says: Discrete data are usually presented in grouped form. For ...
I have Type I CD protein data which consists of 27 Enzymes and 217 non-enzymes. I want to determine if there is a significant difference in the length of enzymes versus non-enzyme. What type of non-parametric test should I use if there is a huge difference between the sample size of enzymes versus non-enzyme?
I'm reading a paper, where they measure the pressure of patients before and after a treatment. Here are the quoted values for pre, post, and difference: Pre (n=43): 40.5 +- 7.6 (SD) Post (n=43): 17.8 +- 3.4 (SD) Delta (n=43): 22.7 +- 3.2 (SD) I want to estimate the implied correlation, within patients, between pre ...
My sample population includes elderly men and women (age 60-90 years) with information about the prevalence of HBP. I want to make a contingency table showing the distribution of HBP (column variable) across the age groups (60-69, 70-79, 80-90). X2 tests in SPSS, STATA, Rcmdr are able to calculate the percentages(some ...
I have some data with a binary outcome and a categorical predictor. I would like to perform something like a chi-square test to test for associations, but some of my data is repeated. I am not interested in change over time, I just would like to use all the data. Is there a form of mixed model analysis I can use to do ...
For predictors $X_1$ and $X_2$, and a response $Y$, two models are fit: Model 1: Linear regression with $Y$ as response and $X_1$ and $X_2$ as predictors (only the linear terms). Model 2: A linear regression model is fit with $Y$ as response and $X_1$ as a predictor. Using the residuals $R$ for this model, another mode...
Assume I predicted the probability for samples to be in the positive class using logistic regression for binary targets. The samples come in groups of 5 but I'm predicting individually and I would like to ensure that the sum of probabilites for the positive class in one group sum up to one. For example the following r...
I have paired data. I do not have the individual data points - solely the means and standard deviations at measurement 1 (m1, sd1), at measurement 2 (m2, sd2), and also the correlation coefficient between the values obtained at measurement 1 and those obtained at measurement 2 (r). I would like to find the mean and t...
For an assignment that asked "Compute the likelihood function when $Y=10$", I had written: $$ L(\theta|n=30, y=10) = {30 \choose 10} \theta^{10} (1-\theta)^{20} ; \theta \in \left[0, \tfrac{1}{5}, \tfrac{2}{5}, \ldots, \tfrac{5}{5}\right] $$ I will omit the context of the problem since my question is not about that. My...
I have a general question about factor loadings of items in Confirmatory and Exploratory Factor Analysis. Fitting a CFA model to a data set based on factor loadings (e. g. cfa() of the lavaan package) of an exploratory factor analysis will result in a CFA model. The output gives me estimates of factor loadings of all i...
I have trouble understanding how do I compare multiple groups in a single survival analysis. When I only have two groups of patients, I simply perform the Kaplan-Meier estimator. However, if there are more than 2 exposure levels, the inference is not so straightforward. If you look at the colon data (available in R, su...
I have been given the following AR(2) process: $X_t + \phi_1 X_{t-1} + \phi_2 X_{t-2} = \epsilon_t$ and I need to figure out for which values of $\phi_2$ the process is stationary, when I have been given that $\phi_1=-1/3$. I hope that someone can maybe help me with this, since I have no idea about where to start.
Suppose that I have an EGARCH(1,1) model, an APARCH(1,1) model and a GJR-GARCH(1,1) model all with GED errors. Are the following three measures for assessing the magnitude of news impact on volatility correct for all three models? a) Intensity of Positive Shocks: α1+γ1 b) Intensity of Negative Shocks: −α1+γ1 c) Degree...
How many records (at least) should I have for my correlation (pearson/canonical) to be significant.
My impression is that beta1 and beta2 affects how much the adam optimizer 'remember' it's previous movements, and my guess is that if the training isn't performing well, these values should be decreased, am I right? However, what is the general intuition one should have when deciding whether to tweak these parameters o...
I got data of the speech length distribution (number of words per speech) of a Speaker in a tv series per episode in my table. E.g.: Length Episode1 Episode2 Episode3 | Episode4 Episode5... 1 14 12 68 | 10 8 2 7 61 58 | 22 23 3 14 42 6 ...
I am new to graph theory and I have some questioning. First of all, how can I determine the significant of two different degree centrality means and two different closeness centrality means? For example, I have a network of international organizations which are public or private, but I don't know how to determine if t...
I am using k-means clustering for a problem of market segmentation. My variables are gender, age and other categorical data. I first standardise age and then make all the rest dummy. The other categorical variables take approximately tens of different values, and the dataset is quite small (approx ten thousand). Then I...
I'm wondering whether the following expectation has a known form: $$\text{E}_{\beta}\left\{ \log \Phi(x^T \beta)\right\},$$ where $\Phi$ is the standard normal distribution function, $x$ is a fixed vector ($p \times 1$) and $\beta$ is a ($p \times 1$) random vector such that $\beta_j \overset{ind}\sim \mathcal{N}(\mu_j...
I encounter such an exercise question as below and have no clue so far. Consider using decision trees/forests to implement Boolean functions, i.e. classifiers from {0,1}n to{0,1}. 1) Give a good upper bound for the VC-dimension of decision trees with l leaves. 2) What is a good upper bound for the VC-dimension of a...
I have multiple years of data from students rating their courses (Unacceptable, Adequate, Good, Excellent). The data covers about 10 courses and I have data from the past 6 years. Charting the data, it seems that some years, classes were just more negative overall. Is there any way to "normalize" or de-trend ordinal da...
I have asked this question before in another fashion on other stackexchanges, so sorry for the somewhat repost. I have asked my professor and a couple of PhD students about, without a definitive answer. I will first state the problem, then my potential solution and the problem with my solution, so sorry for the wall of...
I'm trying to train a cGAN network on Tensorflow and have all the summaries of the Discriminator, but I'm having difficulty understanding what they mean... There are currently 5 layers in the Discriminator and the distributions are like below: I'm using the LSGAN loss for training the network and the 5 Conv layers...