instruction
stringlengths
9
38.7k
My question is about the 1-nearest neighbor classifier and is about a statement made in the excellent book The Elements of Statistical Learning, by Hastie, Tibshirani and Friedman. The statement is "For k nearest neighbours the model complexity is controlled by k." "Also as model complexity is increased low bias and h...
Given a dataset of very large dimension > 1000, what would be the suitable classification algorithm that can handle such large dimensionality of data, assuming dimensionality reduction is not allowed in my dataset? Thank you
(1.19) is saying that a markov chain in moving from state x to some state x+1 requires taking into consideration the possible states that may occur during this transition of state and the associated probability. Between equation (1.19) and (1.20), the author rearranged the terms to obtain $p(h(x+1)-h(x)) = q(h(x)-h(x-...
Are Bayes estimators immune to selection bias? Most papers that discuss estimation in high dimension, e.g., whole genome sequence data, will often raise the issue of selection bias. Selection bias arises from the fact that, though we have thousands of potential predictors only few will be selected and inference is done...
I have two groups (control and experimental) with 16 subjects each. Their pre-test scores are statistically different from a normal distribution so I opted to do nonparametric tests. I need to compare the learning gains of the students (post test score minus pre test score) but don't know what nonparametric test to use...
I am trying to understand Kalman filter from a highly recommended pdf by Welch and Bishop https://www.cs.unc.edu/~welch/media/pdf/kalman_intro.pdf. I am highly confused with one terminilogy x_k. There are three of such kinds x_k, x_cap_k and x_cap_minus_k. He says x_cap_minus_k is the a priori estimated state at time s...
When reading the help page of tf.nn.sparse_softmax_cross_entropy_with_logits, I came across the term soft classes. I read that soft classes have ground truth labels which are a probability distribution on their one hot encodings. How do you intuitively interpret the information a soft class label provides (the probabil...
I want to test with the chi-squared test if there is a difference between the number of stars of a hotel for each country and the gender of a booker. An example of my dataset, bookings, is: country gender numbofStars Germany male 0 Netherlands female 0 Belgium male 5 Ne...
I have a table of 288 rows and 4 columns where each row corresponds to a tumour sample, and each column is a gene. All of the values are 0 or 1, to indicate whether there's a mutation in a particular gene for a particular sample, but obviously each sample can have more than one mutation. I want to test for correlations...
**If we consider a model of stock price ** where the prices at time $t=1,2$ are $S(t,\omega)=S(0)(\frac{1}{2}+t\omega), \omega\in\Omega=[0,1]$. please click here for the figure of $S_1,S_2$ A derivative security pays $\max\{0,K-S(2,\omega)\}$, only if $S(1,\omega)\ge B$ where $K, B$ are arbitrary real numbers such th...
This is is my first post on this forum - I hope it's in the right place! I am currently working on the analysis for a piece of coursework and was looking for some help with statistical test choice, please. I have all my study data in a table. Am analysing the data using R/R Studio. Background: The study is looking at...
My company uses an inventory model (call it IM) to order parts. I have two years of data (Jan 2016 to Dec 2017) that show how many parts were actually ordered and as well as a forecast from Jan-Dec 2017 that shows how many parts the IM model said to order. I calculated the MASE for the (a) IM Model, (b) Mean, and (c...
Let us consider the following Bayesian model: $f(x|\mu, \theta)$ the observation model, $\pi(\mu, \theta)$ the joint prior distribution, $\pi(\mu, \theta|x)$ the posterior distribution. It is possible to obtain the posterior distribution with a MCMC sampler. Then the posterior distributions can be plotted. Using Pyth...
Let $f(x)$ be concave, $X_1$ a random variable and $X_2$ a mean-preserving spread of $X_1$. The entry on wikipedia defines mean-preserving spread as any $X_2$ such that $$x_{2} \; {\overset {d}{=}}\; (x_{1}+z)$$ where $E[Z | x_1] = 0$ for all values of $x_1$. (Check the comment below for what seems to be an alternativ...
My knowledge of principal component analysis is only conceptual; I know nothing about the nuts and bolts of how it works. I learned about it from its use in sociolinguistics, as in Horvath & D. Sankoff (1987), and what I gather from their description is that PCA is basically an automated method of determining which fac...
Use backward elimination procedure to decide which predictor variables can be dropped from the regression model. Control the type I error at = . 10 at each stage In using backward elimination procedure how to control for type I error? In backward elimination, one variable gets dropped at each stage. This coul...
I was trying to teach myself the math behind what produces the slope and intercept of a segmented variable in the segmented package using the plant data set. My plan was to run a model through the segmented package, produce the slopes and intercept using the slope and intercept commands and compare to summary output t...
"Conduct hypotheses tests at a 5% significance level on the intercept and slope coefficient to see if the intercept is significantly different from zero and the slope coefficient is significantly different from one " Does this mean i have 2 different hypotheses tests, or 1 that compares both? As i've carried out a hypo...
I have data consisting of irregular event times and at each event there is either a binary positive or negative result (with approximate probability of a negative result ~5%). The aim is to assess whether the rate of negative results is changing over time. One option I've thought of, and probably the most common app...
I calcaulate the RMSE values of n-times repeated 10-fold cross-validation (i.e. $n \times 10$ RMSE values) for two different models. Then, I perform a paired t-test on the RMSE values in order to determine if the mean RMSE of the models are different. However, depening on n, I can always come up with a significant dif...
I am interested in learning more about Monte Carlo simulations and in particular refining my ability to take a simulation approach to complex examples. An exemplar would be Peter Norvig's Python notebook on an economics simulation that was making the rounds recently. Any resource (textbook/online) with many more such...
I have a large dataset in which only Y and one of the independent variables are continuous. There are 12 binary independent variables and 2 other categorical independent variables (each with 8 categories). I want to use the ACE algorithm to find the transformations. Should I consider all the independent variables for A...
I want to fit the following model where the response variable draws a binomial distribution. I have two group level predictors (g1 and f1) that I want to use to model the intercept and slope Model: Pr (yi=1)=aj+bj∗x1 aj=γ0+γ1∗g1 bj=ƞ0+ ƞ1∗f1 Can anybody tell me how to write it using glmer?
I am looking to run multiple t-tests on a dataset but I am unsure if the types of tests I am running would necessitate a multiple comparison correction or not. Below are essentially the tests I will be running: Is profit margin for big customers is less than for smaller customers Same as 1 but just US customers Is pro...
I have two CNN versions which are distinguished by a sigmoid layer. CNN | last two layers: CONV + SIGMOID CNN | last layer: CONV My output range of my ground truth values is [0,1] The loss function I use is the L2 loss. When I train both networks the second one outperforms the first one by far. For example: 1. At the...
I hope the title accurately reflects my question. I have an independent event, with a 98% chance of occurring. Now, I observe and record the outcome of this event 100 times. What is the probability that there is a single run of 17 consecutive occurrences? Put another way that I don't think changes the question, given a...
I have data where there are two groups, there is only a single observation for one of the groups, but lots of observations for the second group. There are quite a few zero and one values for the second group (the measurement is a ratio out of 1). Doing a normal wilcox gives the error regarding too many ties however t...
I have 4 data points which I am using to interpolate a query point using bilinear interpolation. Each of the 4 data points is obtained from the average of several observations (typically 10-16 for each data point). So each has its own standard deviation as well. I am currently estimating the standard deviation of the i...
I'm trying to calculate the probability Pr(X>=x) where X ~ BINOMIAL(N,p1). x is defined by N*p2 (p1, p2 are two assumed proportions) Below is my R code: prob <- function(N,p1,p2){ q <- round(N*p2) return(pbinom(q,N,p1,lower.tail = FALSE)) } Run the function for N=50:300 where p1=0.375, p2=0.25, and plot calcul...
I have a sequence of non negative variables $X_n$ such as: $$E(X_n|C_n)=\frac{C_n}{n^2}$$ where $C_n$ is a sequence of random variables converging almost surely to $1$. Can I conclude $X_n$ tends to 0 almost surely? Note: you can replace $\frac{1}{n^2}$ by any sequence with finite sum. The question remains essentially ...
I'm working on marine fish ecological data, on an irregular time scale with data only for 1993,1994,2006,2007,2009,2014,2016 and 2017. For each year, I have computed several taxonomic and functionnal diversity indices over my study area. I would to determine if there are trends in my data series, but I'm not very confi...
I am learning neural networks and i have set goal to train NN to detect persons on camera/video. I understand basic concept of NN. What i am not sure is how should i approach this goal. If i wanted to train NN to recognize human it would be classification problem - its either human or not, i would put training data set...
I need to determine a statistically sound methodology for creating training and validation datasets for a churn model. Testing sets and model selection aren't a problem. The data spans 4 years of business trading. Customers have 12 month contracts. When contracts are up for renewal customers either renew for 12 month...
I'm using a Wilcoxon signed-rank test to compare two related samples of non-normally-distributed data. The data contains some ties, so when I run the test in R, I get this warning: wilcox.test(data$valueA, data$valueB, paired=T) Wilcoxon signed rank test with continuity correction data: isnapRequests$fullMean an...
I have sales data for different locations. My outcome variable is making a sale (1,0) and my IVs are about 200 different locations, handling time etc.. I ran a logistic regression using the class statement for locations in SAS. Some of the locations appear to be significant others don’t. My problem is that with the cla...
I have a data set of 145 images that I divide in to 96 images for training and 49 others for test. I have three classes which are imbalanced in Training set as well as in test set. In training set: class one:16 images; class two:56 images and class three: 24 images. I used matlab to implement the multi-class (SVM) one ...
I'm really sorry if this question is too basic, but I've been looking for a while and haven't been able to find a convincing response. My statistics background is rather poor. Geometric distribution is defined as the probability distribution of the number X of Bernoulli trials needed to get one success (or the number o...
Apologies if this is more of a statistical question. I am currently dealing with a multiple imputation problem that I am attempting to address in Stata. After the imputation stage, I would like to estimate $E(Y, X, Z | C=1)$ where $Y$ and $Z$ are complete and $X$ and $C$ are both incomplete variables whose missing val...
In a negative binomial regression (daily number of cases of a disease over time), after controlling for several factors and experimenting with several functional forms, my results still don't look good, but I think I have found the reason. Here are the residuals plotted versus time stratified according to day-of-week: ...
I am attempting to test some sets of data for normality. I have 64 groups to test. Each group has n=8 samples. [[I am aware of the problems with low n in regard to normality testing]] My end goal is to be able to test these groups against one another with a t.test() (or similar) to determine if they are significantly ...
I have in my study a variable that follows a beta distribution. In this case, it is: length of the thorax / wing length in a Drosophila species. My model involves two fixed cross variables and one random variable: model <- glmmTMB(RV ~ V1 * V2 + (1 | RANDOM), data, family = list(family = "beta", link = "logit")) As...
I have a rather large dataset (200,000 rows x 85 cols) and I am trying to assess the cluster tendency prior to doing any cluster analyses. I have taken a subset of my data so I could run in R ( 6000 rows x 85 cols) and I am getting a very low Hopkins statistic value 0.05. I keep reading contradictory information on Hop...
In the lmer package in R, it contains terminology for coding in random effects and mixed effects for a linear model. I am wondering if there exists a manual or resource online where they compare both the code and the actual corresponding statistical model write-up side-by-side?
I'm having a difficult time understanding the difference between target population and sampled population using stratified sampling. For example, say I want to run some statistics on university students in the UK -- in particular, I want to know specifically about the first-year students. However, let's say the male/f...
I work on a binary classification problem with proteomic data, where the goal is to select the best subset of proteins which contribute to better classification (AUC). However, the problem is that some proteins are missing, and the complete-case analysis results in substantially shrunk data set. Assuming that the data ...
I'm using glm with family=Gamma(link=identity) for gamma distributed data, where I am comparing variance across groups and their interaction (data are balanced as it's a repeated design). I'm then doing a posthoc test as follows: lsmeans(model,pairwise ~ group1*group2,adjust="tukey") My question is: does such a model ...
We are considering a simple linear model $Y = \beta_0 + \beta_1X + \epsilon$. I am given the following quantities. $\bar{X}$, $\bar{Y}$, $s_x$, $s_y$, $\rho_{xy}$, and $n$ the sample size. I am asked to compute all of the following: $\hat{\beta_0}$, $\hat{\beta_1}$, $s_{\beta_1}$. $s_{\beta_0}$, and all the values in t...
Definition for expected value: $\mu= \sum_{k=0}^{\infty}kp_{k}$ In a text, the author mentioned that for a time n-1 where the offspring is $X_{n-1}=m$, the mean number of offsprings at time n is $m\mu$ Would someone give me why this is the case?
I am using SVM classifier to classify my audio data (instrument strokes). I am using LDA as a feature reduction technique to reduce feature dimensions. After applying classifier the results I am getting is very low (only 45% accuracy). With the same data without any feature reduction and using PCA I am able to get mor...
I hope someone would be able to shed some light as to why equation 1.33 is the way it is from first principles. It looks a lot like the case where the initial state is randomised but the final state to which the Markov chain is, is fixed. From the expression, there are two probability terms which isn't clear to me why...
I'm performing a multiple linear regression about the price of alcohol. Two of the predictors are the categorical variable 'type of alcohol', the levels being 'beer', 'wine', 'spirits' and the numerical variable 'alcohol percentage', so there is an obvious relationship between the two predictors (for example, spirits w...
Related to previous post for speeding up GAMM. After fitting a GAM with mgcv, the autocorrelation (acf) and partial-autocorrelation (pacf) of the residuals reveal very clear AR8 behaviors (pacf sharp drop-off after lag-8, acf goes to 0 more slowly at lag-16). I tried to add this with the argument correlation=corARMA(fo...
According to Yale: Categorical variables represent types of data which may be divided into groups (Lacey M, 1997) To me, dates do not fit this definition. They are ordinal, as one date is bigger than the date before it. It is also quantitative as it can added, subtracted...etc. I am interested in correlating these...
I'm facing the following problem: I have done a logistical regression and the point on the x-axis, where both possible outcomes are equally likely (50%) is very important for my research. Getting this point wasn’t a problem. I’m offering two methods below. Now I’d like to get a confidence interval around this x-value ...
I would like to ask you about how to compute a circuit basis of a design matrix in software R. Let me explain: I have found a software, named Macaulay2, that calculates some algebraic tools, and one of them is circuits. In this program, first of all I load the package FourTiTwo, then I define a matrix and finally throu...
All things being perfect, if we want to know if a set of coinage (all coins with the same bias) is biased, and to what degree, we would just use the outcomes and confidence intervals of the binomial distribution and be done with it. Unfortunately, things are rarely that simple in real life. Indeed, this question aros...
I have a question concerning the use of the dual space in the cases of linearSVC classifier. Documentation advises to set dual = false when n_samples > n_features, and true otherwise. In the particular case where n_features is highly > n_samples (82 instances for 55000 features, and when using PCA in pipeline before l...
I have a large number of samples (say $N$) from a multimodal joint probability distribution, for example: a b c d e f 0.01 5.37 2.87 3.22 1.93 5.38 0.07 5.24 2.99 3.56 2.02 6.01 ... I want to find the values $(a,b,c,d,e,f)$ at which the joint probability density function attains its maxi...
I am conducting a meta-analysis on the diet of predators. This diet is expressed as the proportion of aquatic vs terrestrial prey. I have a value (% of aquatic prey) for each species for each site of each study. I can't find any satisfying way to calculate an effect size. Any advice ? Thanks Denis
I am currently working on a classification problem using tf-idf and Naive Bayes for two classes A and B. I have randomly shuffle the dataset before implementation, and I was experimenting with the following parameters: Training - 90% , Testing - 10% Training - 80% , Testing - 20% Training - 30% , Testing - 70% The re...
Convergence in probability is weaker than almost sure convergence. I wonder if the property "$X_n$ converges to $0$ in probability" can be expressed as: "For almost all $\omega$, the sequence $X_n(\omega)$ has a certain property (to determine)" In other words, what are the consequences of convergence in probability th...
I need to compare two series of accidents counts from two cities. The comparison should establish whether the two series change at a similar rate. My way to answer this would be to calculate for every two consecutive years the rate of change for each series. Then I will create a new series of the ratio of their rate of...
If $X$ has a Wishart distribution $W_p(n,\Sigma)$ , what's the distribution for $cX$ where $c>0$ ? I know that for a $\chi^2_n (x)$ distribution with $n$ degrees of freedom, $c\chi^2 $ follows $\Gamma(x;\frac{n}{2},2c)$ for the scaling property of gamma distribution so the answer should not be so obvious. This question...
What statistical method would you apply to determine if treatments are statistically different. For one treatment I have 26 samples all with 4 measurements. Those measurements are then averaged for each sample and then added for a total value. This total value is then compared to the other treatments' total values. ...
I'd like to know how can I test for inequality of estimates in a lavaan::sem() fitted model (using R)? Also, is there a known way to control for the fact that some estimates come from reverse scored scales? The example model I work with is specified as: model <- ' # measurement model opp =~ FTP1 + FTP2 + FTP3 + F...
I have a setting in which I want to compare the rate of two count quantities under two different conditions. This can be achieved in two ways: either using a Poisson test, comparing the cases and using the controls as offset (T argument in R poisson.test()), or using Fisher's test (or equivalently a logistic regression...
Interesting problem from the auto industry. Wondering if anyone has suggestions on a good approach. Auto manufacturer sells cars to independent dealers who sells to end-customers. When cars break down, the dealer fixes them and orders parts from the manufacturer but seldom gives them info on which car was fixed or even...
So my situation is that I have a large set of events, each of which contains many variables (e.g. mass, length, momentum, colour...). This set of events can be divided into two categorys according to the colour variable, all the events are either "red" or "blue". I want to use these events to train a neural net and th...
Let $\boldsymbol X \sim \mathcal N_d(\boldsymbol\mu, \boldsymbol\Sigma)$ and let $f_{\boldsymbol X}(\boldsymbol x)$ be its PDF. The CDF is $$ F_{\boldsymbol X}(\boldsymbol q) = \int_{-\infty}^{q_1} \dots \int_{-\infty}^{q_d} f_{\boldsymbol X}(\boldsymbol x)\ dx_d \dots dx_1. $$ How do I compute $\partial F_{\boldsymbol...
Hi I have excel sheet with following like data of shoppers and money they used: CUSTOMER MONEY USED teen 5 pensioner 15 teen 9 adult 35 teen 2 pensioner 5 adult 17 ... Now I need to find value ranges to make guess is shopper teen, adult or pensioner based on mone...
In many papers that consider treatments and outcomes, I see tables (usually "table 1") of what might be called nuisance variables (often demographics, sometimes medical conditions) with tests of significance and text such as "the groups were broadly similar, there were no significant differences on XXXXX, see Table". ...
I am meta-analyzing with multiple effect sizes from each study. The studies included in my meta-analysis measured the effects of participants REPEATDLY with MULTIPLE TESTS. I am trying to deal with dependent effect sizes using three-level meta-analysis. I see, some people use three level meta-analysis without specifyi...
After reading ISL and several questions here, below I summarize a step-by-step guide for estimating linear regression. I would appreciate your comments on steps which might be incorrect or which might appear good in theory but are not used in practice: Notation: $[x_{1}, x_{2}, .., x_{n}]^{T}$ where $x_{i}$ refers to...
I wanted assistance on interpreting SPSS output that I made for my Group Project regarding Eating Habits. We basically made a survey related to eating habits and wrote down the score of each participant in SPSS. We also compared these scores to another group's survey that was related to stress and their scores. We have...
Consider the time series of 2 variables $x_1$ and $x_2$, put together $y=(x_1,x_2)$: $$ y_t = \begin{bmatrix} v_1\\ v_2 \end{bmatrix} +\begin{bmatrix} c & d\\ e & f \end{bmatrix}y_{t-1} + u_t. $$ The fixed, nonsingular covaraince matrix is: $\Sigma_u = \begin{bmatrix} \sigma_1^{2} & 0\\ 0 & \sigma_2^{2} \end{bmatrix}...
I am new to this issue and am trying to get my head around how Bayes Factors work. I think that when using a Bayesian approach to estimate parameters in a model, we use the formula: P(theta|data) = P(data|theta) x P(theta) / P(data) Now, suppose I want to use a Bayesian approach to test the hypothesis that theta = 0 (...
Cross posted at https://datascience.stackexchange.com/questions/28926/predictive-models-to-predict-disease-at-a-future-time-t-1-given-the-predict, declaring it respecting the guidelines: We've $N$ number of subjects (patients) measured TWO times, $t=t_0$ and $t=t_1, t_1 \gt t_0$, with the predictor and output variables...
Is there a closed form solution to $\int_0^1 \Phi^{-1}(u)\cdot \phi(\frac{u-y}{\sigma})du$, where $\phi$ is the pdf of a standard normal distribution and $\Phi^{-1}$ the inverse of its cdf? For context: I am trying to find the posterior mean for a prior $x\sim\mathcal{N}(\mu,\omega^2)$ and likelihood $y\sim\mathcal{N}(...
I'm reading Bishop books on Statistical Learning, and ran into the Gaussian density function for LDA when p > 1. $$P(x|k)=\frac{1}{\sqrt{(2\pi)^p|\boldsymbol\Sigma|}} \exp\left(-\frac{1}{2}({x'}-{\mu_k'})^T{\boldsymbol\Sigma}^{-1}({x'}-{\mu_k'}) \right)$$ But I am wondering how can this terms be multiplied? I am under...
I am trying to predict an output dependent variable $Y$ for a feature set of 4 independent variables - $X_1, \dots,X_4$ using regression. Here is a scatter plot of each of the dependent variables against the dependent variable $Y$. Linear regression of the features $X_1, \dots, X_4$ was not able to predict $Y$ well. T...
I have been trying to model with lm in R. I have several variables: Initial cell concentration $(X1)$, macroscopic appearance $(X2, X3, X4, X5)$, microscopic appearance $(X6,X7,X8)$, % of cells moving fast, slow or not moving $(X9, X10, X11)$, % of cells with microscopic features $(X12, X13,...X18)$, etc. The final ali...
Background. I am reading the paper (Kupiec, 1995). On the Exhibit 4, you can see the minimum (incorrectly called maximal in the paper) sample size ($n$) for which the null hypothesis $p=p^*$ is reject by proportion of failures (PF) test at level $.05$. I need compute two values in red boxs ($240$ and $49$) from the...
Let's say I have linear regression model, and assume $\beta$ is the parameter. Assume the design matrix $X = (x_0,x_1,x_2,...x_n)$ If I split the data alternatively, like this: $$ X^{(0)} = (x_0,x_2,x_4,...x_{2k}) $$ $$ X^{(1)} = (x_1,x_3,x_5,...x_{2k+1}) $$ and then fit the model using $X^{(0)}$, $X^{(1)}$ by solving ...
I'm just starting out in statistics and my textbook has given me some confusion. I'm currently working on basic linear regression with bivariate data. Going by the textbook residuals were determined from N-point moving averages. Also the regression line was taken from the N-point moving averages. Later on in the chapte...
My experiment is looking into visual long-term memory - specifically, does the level of categorical interference affect memory? One sub-section of the analyses involves looking at whether participant's reaction time (to press the left/right arrow key) was significantly influenced by the level of categorical interferenc...
In Statistics, High Variance represents that: Overall, elements of dataset are widely dispersed/different/spread out from the mean and from each other. In Machine Learning, it represents: Our parameters have over-fitted on the dataset and so we will get unnecessary curves and will not be able to predict on unseen data....
I'm trying to prove the theorem below. If $E(|X|^n)<\infty$ for some positive integer $n$, then $E(|X^k|)<\infty$ for every positive integer $k$ such that $k<n$ Here's what I've tried. ref1) Proof that if higher moment exists then lower moment also exists ref2) Probability and Statistical Inference, 2nd Edition Rober...
Given that ${E(X)=\frac{5\mu}{9}}$, check if ${\mu}$(hat)$=\frac{4}{7}x-1$ is an unbiased estimator I am having trouble understanding this topic and I have no idea what to do with this. I have tried searching on how to solve this but I cant find a proper explanaion on how to solve this. [edit]: I know that I have to sh...
I sequentially sample values from a distribution, say normal distribution. so I have: x_1, x_2, x_3, ... , x_t, ... as iid sequence. However, I keep record of only the samples that are higher than the average samples I've kept on record. y_1 = x_i1, y_2=x_i2, ..., y_n =y_in, ... obviously i1 = 1 and y_k >= mean(y_1,...
Is it possible to use the difference (D) of the natural logarithms of variables when checking for cointegration?
The Feller-Pareto distribution was originally is defined in terms of a transformed beta distribution. If $Y\sim \beta(\gamma_1, \gamma_2)$ then $W=\mu + \sigma\left(\left(1/Y\right) - 1\right)^\gamma=W(\mu, \sigma, \gamma_1, \gamma_2, \gamma)$ is the five-parameter Feller-Pareto. In a number of places it is asserted t...
Suppose you have two instances of a distribution that are parameterized differently, and for one of them a certain restriction on the parameter values of the pdf or CDF results (perhaps after some algebraic manipulation) in a closed-form expression for the pdf or CDF (respectively) of another named distribution with on...
How does one calculate a mean function in Functional Principal Component Analysis (FPCA) given a data set with an unknown distribution? (A theoretical approach if possible) I am wanting to implement R's fpca.sc function in MATLAB and/or python. Does anyone know how to do this? $$ $$ https://en.wikipedia.org/wiki/Functi...
Consider the following, $$ \begin{alignedat}{1} \operatorname{Var}(X)&=E((X-E(X))^2)\\&=E(X^2)-(E(X))^2. \end{alignedat} $$ Since the expectation of a random variable is no longer random, let $c = E(X)$: $$ \begin{alignedat}{1} \operatorname{Var}(X)&=E(X^2)-c^2\\&=E(X^2-c^2)\\&=E((X+c)(X-c))\\&=E((X+E(X))(X-E(X))). \en...
I'm trying to work on a project in code that asks this question. I'm currently able to get the right answer by breaking it up, but I'm wondering if there's a mathematical formula I can address this problem to as I'm actually facing computational resource limitations. For example, the amount of combinations for 50 dice...
I have an assignment question that I just cannot crack. Show that $$P(A \cap B) \ge 1-P(\overline{A}) - P(\overline{B})$$ By using the following elementary properties of probabilities: $P(A) + P(\overline{A}) = 1 \tag{1}$ $P(A) \le 1 \tag{2}$ $P(A \cup B) = P(A) + P(B) - P(A \cap B) \tag{3}$ My progress so far: Using...
The instructor of a Chemistry Laboratory Class, which is composed of 10 students, asked each individual to record the time it took for a certain chemical to change its color after the third trial. The data (in minutes) were as follows: 5.18, 9.02, 13.35, 10.91, 8.57, 9.24, 10.16, 8.01, 9.33, and 11.28. What is the marg...
I have a set of data points $f(x_i)$ for some instances $x_i$, $i\leq N$. Also, I was able to fit the curve asymptotically due to prior knowledge, i.e. I was able to fit the data to functional forms $f(x\ll x_0), f(x\gg x_0)$. How can I proceed in order to connect the two regions smoothly to fit the entire data points ...
I have a dataset where of socio-demographic features of a population (expressed as percentages over the total population of the municipality: e.g. 12% of freelancers, 5% of unemployed etc.), each observation is a municipality of the city. My goal is to politically classify each municipality in left/right (roughly). I c...
Have a look at this Excel graph: The 'common sense' line-of-best-fit would appear be an almost vertical line straight through the center of the points (edited by hand in red). However the linear trend line as decided by Excel is the diagonal black line shown. Why has Excel produced something that (to the human eye) a...