instruction
stringlengths
9
38.7k
Does anyone know if there is a difference between K nearest neighbor (KNN) and nearest neighbor algorithm (NN)? And if they are how are they different? So far all I know is that NN is unsupervised learning while KNN is supervised learning.
So I have some data of 16 patients who were subjected to a test a different number of times (some only once, some as many as 7 times). The response variable is definitely nominal (I wasn't involved in the experimental design or in conducting the tests at all), and this is high dimensional data because there are at leas...
When we estimate parameters with the maximum likelihood method, then we can estimate the standard error with the Hessian. The code below tries to estimate this for the case of the question: How to compute the standard error of the variable $- \frac{\hat{\beta}_0}{\hat{\beta}_1}$ of a logistic regression? I did this, be...
I'm working with some survival probabilities, and i've gotten kind of confused. For simplicity, the death rate ( mu(x) ), where x is age in years, are considered constant in intervals of 1 year. In my assignment, the probability of surviving 1 year at age x is given as: p(x,1) = e^(-integral[0,1] mu(x,1) ds). Since mu ...
I study the triggering of the difficult form (ineffective two treatments) in patients with joint disease. In this retrospective study, we have collected the dataset of ~150 patients diagnosed with this difficult form and 200 patients with remission (good effectivity of the treatment) – as control. Selected patients wer...
Can you please explain to me how to calculate a minimum sample size (rated subjects) for Fleiss Kappa? I cannot find neither calculators to do this, nor some reference values. Thank you very much. G
I follow a procedure as described in this paper (https://www.mdpi.com/2076-3417/12/13/6681). Thus, I calculate separate SHAP values for the training and test sets within each outer fold across multiple data partitions in a nested cross-validation scheme. Then, these SHAP values are averaged across outer folds and data ...
I did a k-means cluster on a data set which looks at how well individuals scored on a test (y variable) given varying difficulty (x variable). I then started looking at the demographics of the individuals. These demographics were not considered in the cluster analysis--think location, age, gender. I started researching...
Does anyone know if it is possible to use the MCMC implementation emcee in python with only a single walker given 15 parameters? Or do I have to use a different implementation? I want to do this as I only need a single sample from the resulting posterior distribution and computation time is the biggest concern for me ...
I have generated a dataset with two covariates x1 and x2 and have fitted a gam model with k=5. The R code is as follows: library(mgcv) set.seed(123) n <- 30 x1 <- runif(n,0,1) x2 <- runif(n,0,1) noise <- rnorm(n, 0,1) y <- sin(2*pi*x1)+0.5*x2+noise model <- gam(y ~ s(x1, k=5) + s(x2,k=5), family = gaussian()) summ...
TLDR: I can't find a way to calculate the effect size needed to be inputted to Power Analysis to get the minimum sample size needed to 90% statistical significance as I can't calculate standard deviation Hello everybody, I'm stuck with the following dilemma: I'd like to do an AB test for digital marketing activities a...
I am running a RBS with 5 knots and I have 2 difficulties. I get only 5 estimates: 1 for the intercept, one for the linear term, and 3 for the knots. However, since I have 5 knots I should have 4 estimates and I don't understand why I get only 3. This is the first time I run the analysis and I am a bit struggling to ...
I'm a student, and I need to compare how different perform in a binary classification. I can freely choose any dataset for my work, but the specifications include to make A LOT of computing: many algorytms (logistic regression, networks, random forest, gbm, svm), stepwise for variable selection, repeated cross validati...
I am currently working on variable selection and came accross many methods which i tested. I tried one which i thought of, but never read about it. I would be curious if you know anything about it: What is commonly used is PCR: You use the projections of the individuals on the new dimensions which were calculated from ...
I am looking at weekly sales data and see that sales last week dropped by x%. I see that weekly sales do fluctuate quite a bit so not sure if this is indeed a problem. What statistical methods can I use to determine if the observed change is something I should worry about. One option could be to plot the pct change for...
Let $X_t$ be a stationary process with spectral representation $$X_t = \int_{\left[-\frac12 , \frac 12\right]}e^{2 i \pi f t}\,dZ(f).$$ Assume that $E\lvert dZ(f)\lvert^2=\lvert G(f) \rvert^2\,dF(f)$ where $F$ is a distributional function. Show that $$Y_t =\int_{\left[-\frac12 , \frac 12\right]}\frac{e^{2 i \pi f t}}{G...
I am wondering what statistical significance test I can use for the following use case but I cannot find one. The data consists of more than two groups of unequal size where multiple samples in a group can come from the same individual and the outcome variable is non-normally distributed for every group but an individu...
I've learnt basic stats but I'm a bit confused on how I should so this, I'm gonna try and explain it as best as I could. So I had participants doing a driving simulation which includes two different alerts inserted at different times throughout, and I have 3 different programs to counterbalance the order of the alerts....
I have a glmer (library lme4) logit model that I conducted in R. I have very basic knowledge in stats and glmm models are completely new to me. My Models in R basically are like this: mylogit_inst <- glmer(success_1 ~ inst + (1|fish_ID), data = results, family = "binomial") mylogit_s <- glmer(success_1 ~ inst_diff_1 ...
The Montacaro simulation method is used to solve the control limit of the control chart, how to determine the randomly generated data streams, and whether it needs to be generated according to the observed historical data; Further, why did you choose 5000 points, and are any other values of any size acceptable. When I...
Are there any recommendations on procedures to identify relevant variables for a partial correlation between $r(X, Y)$? To me, it appears most reasonable to only include those $Z_1, Z_2,\ldots,Z_n$ as covariates that are correlated with both $X$ and $Y$.
I've fitted an ordinal logistic regression model in R using MASS::polr and I am looking to compute confidence intervals for the fitted coefficients. Here is the (cropped) model output: polr(formula = response ~ group, data = df, Hess = TRUE, method = "logistic") Coefficients: Value Std. Error t valu...
This may be a dumb question but will ask here: We launched an experiment that has 3 groups Treatment A vs Treatment B vs Control measuring a metric clicks per user. We did our power analysis before we launched to calculate our sample size required, however, due to a lot of things that happened, we've had to alter our m...
I am trying to solve for the posterior of two parameters $\theta_1$ and $\theta_2$. I have priors $N(\mu_1, \sigma_1^2)$ and $N(\mu_2, \sigma_2^2)$ for $\theta_1$ and $\theta_2$ respectively, where $\mathrm{Corr}[\theta_1,\theta_2] = \rho$ (i.e., $(\theta_1, \theta_2)$ is a bivariate normal with correlation $\rho$). I ...
In machine learning we are taught to always do validation of some sort, for instance by creating a hold out validation set that is used to test the performance of the model. However, in some use cases we are interested in understanding the underlying relationship between variables. If we take a linear regression for in...
He's the situation, say we have n data points. There are two treatments A and B. If treatment A was better than treatment B we give a score of 1, in the opposite case we give a -1, and if there is no perceived difference we give a 0. How to then test if one treatment is "better" than the other? I've looked into Mann...
I'm employing a nearest neighbor algorithm to find a real NFL game that is the most similar to my projected stats. Not all statistics have the same predictive-importance when projecting the outcome of an NFL game (e.g. total passing yards will predict the final score more than, say, number of penalties), so I want to w...
Chose hopefully a catchy title :-) I am looking for a simple algorithm to detect outliers caused by measurement errors So assune I have given a multivariate sample (30 dimensions) and I want to detect outliers univariately, so I don't want to say that the whole 30-dimensional observation is an outlier but I want to say...
I am working on a binary predictive model using logistic regression and XGBoost and had a dataset with mirrored training sets. For example take these two dataframes df_1 = pd.DataFrame([[1, 2, 1 ], [1, 3, 0 ], [4, 6, 1 ]], columns=['Diff_Average_Running Time', 'Diff_Average_Max_Speed', 'Result']) df_2 = pd.DataFrame([...
I have a lasso-like bayesian graphical model where we try to estimate precision matrices between two conditions (0 and 1), $\Sigma_0^{-1}$ and $\Sigma_1^{-1}$, respectively. The model can be summarized as a multivariate linear model with J outcomes. Thus, we want to estimate diagonal elements ($s_{jj}$) and off-diagona...
Assume I have a random variable $Y=X_1+X_2$. I want to estimate the distribution $f$ of $Y$ given a sample $y_1,\ldots,y_N$. If this was all that is known about $Y$ the best way would probably be to use some type of kernel density estimator. However, also assume that $X_1\sim g_\theta$ for some known family of distribu...
I am currently working on a Recommendation Model. Which takes a Job Openings and Computer Science students and recommend students to the job. Which Model should I use or any suggestions you can give? Students Have Following Features. CGPA, Marks in 9 Technical Subjects, Skills rating in 10 different programming languag...
I'm doing ANOVA analysis on a dataset that looks like: ID cluster gender description country age 124 1 F SMALL US 32 324 1 M MEDIUM CA 12 82 5 F SMALL US 45 453 2 F LARGE AU 34 ... ... ... ... ... ... 473 3 M SMALL DK 32 172 4 M LARGE US 62 23 4 F LARGE US 23 This dataset is a summary of the d...
Background: Hello, I'm creating a GAN with an RMSProp optimizer for both discriminator & generator. The generator model has half the learning rate of the discriminator (1e-4) and half the decay of the discriminator (3e-8). Question: Keras > 2.3 no longer has the 'decay' parameter. Is the following the correct way to tr...
I’m new to graph embeddings, and I have some trouble formulating a solution Suppose that I have a generic node classification dataset that tell the directed edge links between each node along with its weight. Each node has an identification sequence such as “123456”, or “ab2681”. The problem arise when the edge link is...
I am interested in a continuous time system with $n$ observable factors $s_1(t),\ldots,s_n(t)$ and a discrete process $z(\tau_i)\in\{0,1\}$ with random emission times $\tau_1,\ldots,\tau_m$. The observable factors are believed to have a relationship with the emission value and/or likelihood of emission at a given time....
The dropout paper states that: With unlimited computation, the best way to regularize a fixed-sized model is to average the predictions of all possible settings of the parameters, weighting each setting by its posterior probability given the training data. This can sometimes be approximated quite well for simple or sm...
I want to make financial inclusion by using PCA. Before I did PCA, I had done a logarithmic transformation on the data because my data was positive and highly skewed (I saw this from Jolliffe's book and this website: https://en.proft.me/2016/11/15/principal-component-analysis-pca-r/) Now I want to use the PCA Score to ...
I'm trying to calculate a scaled odds ratio and convert them into percentages for an analysis I am doing. I have just one independent variable in the model, SAT score. Dependent variable is college acceptance. The SAT score is in 1-point increments, so odds ratio calculated was for 1-point change. However, I want to ma...
To my knowledge there are two types of learning curves, those that show the progression of the performance as the amount of epochs progresses, and those that show the performance progression as the amount of training data increases. I am referring to the second type. Here is the plot, as made with sklearn.model_selecti...
I've following problem/toy-example: every week I sample data describing users (one row is one user) I want to predict that in next three weeks user will be a fraud 1 or not 0, so basically binary classification, but regression setting is also possible I can't make connections between users across weeks (anonymity), bu...
I'm writing my thesis on the effects of tobacco control policies on tobacco cognitions. One of the cognitions is pro-smoking health beliefs and is a dependent variable in a binary generlized estmimation equation. Descriptives Over time, that is after policy implementation, the percentage of people reporting pro-tobacco...
I am trying to model claim severities for 2 types of insurance, and I want to determine if I should model large claims seperately or not. I am having a difficult time to interpret the mean excess plots. I get that for example, if mean excess increases liniarly with the threshold in the beginning, and the points are ve...
I am working on a personal project and I've been wondering about something. I'm basically taking some loan data from kaggle, analysing/cleaning it, then trying to apply machine/deep learning models to it. One of the models I want to try to use and get LGD estimates is quantile regression. From what I've been reading qu...
I am trying to write a paper for IEEE and would like to know if for MSE, which can have any units, it correct to write "MSE (error^2)" in its formula (i.e. MSE (error^2) = ) and in a plot axis. I am making price predictions and thus, for my context, MSE would have "US Dollars squared" as units. I would really appreciat...
I have done a varimax rotated PCA on my "test" dataset. I would like to use this PCA (i.e. the varimax rotated PCA) on a new dataset and predict the scores. This function predicted<-predict(PCA_test_data,new_data) doesn't allow me to do this because it doesn't incorporate the rotation step. PCA_test_data refers to the ...
I have developed four RNNs (LSTM, GRU, BiLSTM and BiGRU). All of these models give residual errors with non-normal distribution. Is this acceptable? I know that for linear regression problems, we need residuals with normal distribution. But what about RNNs?
I'm trying to make a sales prediction using the column X = item_amount and y = item_price_total, I'm confused whether it's okay to normalize data on the dependent variable using minmaxscalar? With the data that I have more or less like this: | date | item_amount | item_price_total | | :--------: | :-------...
There are two formulas commonly used in the z-test: one involving the standard error (se) and the other involving the standard deviation (std) of the population. The formulas are as follows: z = (x - μ) / se z = (x - μ) / std In these formulas, x represents the observed mean, μ is the hypothesized mean, se is the stan...
Let $(X_j)_{j\in \mathbb Z}$ be an strictly stationary sequence of random variables with: $$E[X_j]=0, \quad E[X_j^2] < \infty$$ I want to show that for each positive $\varepsilon$: $$ \sum_{n=1}^\infty \mathbb P\left(\max_{1\leq j\leq 2^n}\lvert X_j\rvert>2^{n/2}\varepsilon\right)<\infty. $$ Note that: $$ \mathbb P\lef...
I'm working on a semantic segmentation system using aerial imagery. To make this question concise, I'll present a toy version of the problem I want to solve. Assume we are trying to produce a semantic segmentation for a large rectangular region $M$. We want to classify each pixel in $M$ into one of three classes from t...
For a projet, I have to analyse NDVI trends over times (between 2001 and 2020). My teacher asked me to use the same method as presented by Leroux et al. (2017) ( https://doi.org/10.1016/j.rse.2017.01.014). I have the linear model : iNDVI = a + b*Time and know I have to test the consitency of the trends, it can be done ...
The problem I am trying to solve goes like this: Consider the points $(1, 1)$, $(2, 2)$ and $(3, 3)$, of class $1$, and the points $(4, 5)$, $(5, 7)$, $(6, 5)$ and $(7, 7)$, of class $-1$. Find the support vectors for a hard-margin SVM. I have to solve this problem without any compute help, and also quite fast. First I...
I am working on a project about data which containing the chlorine levels measured at different points in the city, presence of foreign waterbody and the total number of cases of water borne diseases found at those points in the city. My task is to find if the number of water borne diseases in the city has any relation...
For those who had a hard time to study and understand classical estimation and detection algorithms, and unfortunately realized that these algorithms are simply ignored by many packages that have the same focus, e.g., scikit-learn, scipy, Keras/tensorflow, etc... Just to list some of such "classical estimation and dete...
The common CMT (continuous mapping theorem) claim that: If $X_n \overset{p}{\rightarrow} X$, and $g$ is some continuous function, then \begin{align} g(X_n) \overset{p}{\rightarrow} g(X) \end{align} However, when I read an article, I saw the following application of CMT: Suppose $\{X_n\}$ is a sequence of random variabl...
Is there a good expository account that explains and justifies Stevens's classification of "levels of measurement" into nominal, ordinal, interval, and ratio, that is comprehensible to all mathematicians?
Covariance matrices are symmetric positive definite matrices. The 'Symmetric' part of this means that the strict upper elements are redundant with the strict lower elements, i.e $M_{i,j} = M_{j,i}$. Thus, a covariance matrix has $\frac{n*(n+1)}{2}$ non-repeated elements. In the case of an autocovariance matrix for a 2D...
If $X$ is distributed as Beta distribution and $Y$ as Chi-Squared, does the distribution of $Z = X Y$ have a name? For instance if $X\sim \text{Beta}\left(\frac{1}{2},1\right)$ and $Y\sim \chi^2(1)$, I see the following values for pdf $f(x)$ and moment generating function $g(t)$. Curious how this relates to known distr...
I am working with Luminex data and have a question regarding the treatment of negative values after subtracting the background average. Specifically, I would like to know if these negative values need to be addressed before conducting statistical analyses such as non-parametric tests or correlations. If so, I am curiou...
I work in trauma research. We use a injury grading system that is fairly unique. Using a system developed in the 60s-70s - the Abbreviated Injury Scale - injuries are graded for six distinct body regions - head, face, chest, abdomen, extremities, and external. The ranges for each region differ a bit with a lower score ...
Let $X_1, ..., X_n$ be a sample from the continuous density $C~exp(-(x-\theta)^4)$ (for $ -\infty < x < \infty$) with $\theta$ as unknown parameter. Show that the minimal sufficient statistic is incomplete. By factorization theorem we see that $T = [\sum_i^n x_i, \sum_i^n x_i^2, \sum_i^n x_i^3]$. We also can find that ...
Given a sampler from a uniform distribution $U(0,1)$ and the target Bernoulli distribution $b(p)$ with two targets $+1,0$ , what kind of sampling technique is: Sample $u_n\sim U(0,1)$ If $u_n<p$: Accept the sample $+1$ I need to know the sampling technique used above. My initial guess is Rejection Sampling since the...
Homophones Indian Surnames List English last names Can machine learning, Natural Language Processing (NLP), Artificial intelligence assist in classifying , interpreting and specifying the differences homophones in Indian Surnames?
I have a model that uses XGBoost to predict a binary classification. However I am getting probability outputs for my model prediction on certain datasets that are quite unrealistic: probabilities that are close to 100%, that I know for a fact should not make sense with domain knowledge. Is this often a sign of overfitt...
I am working on my thesis about the Environmental Kuznets Curve for Latin America and Southeast Asia, with a pannel data with fixed and random effects. I am using logarithmics and robust standard errors. I would to assess the difference in the effects between the two regions. I obtain the results attached in the pictur...
I'm reading papers about randomization in clinical trials. I'm curious why we use the term "arm" such as in "two-arm trials" to express "treatment and control groups". I Googled this question, but I didn't find related answers.
Suppose I have a dataset labeled by multiple analysts. I assume that each analyst has some bias in his labeling. Is there any literature on reducing the bias effect on the general model by using the analyst name?
I have RNAseq data from various tumors, many of which were extracted from the same patients. These tumors are classified with categorical values, and my objective is to compare gene expression across each category. However, a challenge arises when conducting PCA analysis, as the gene expression of the tumors leads to p...
I am using nested cross validation to tune and validate a random forest classifier before doing a final evaluation by fitting the model on my entire dataset. I would like to use validation curves to show how changes in my hyperparameters effect my score. My question is whether it is correct to plot learning curves afte...
I was looking at the prediction error variance of an MA(1) process and we saw the following derivation for the prediction error variance. I understand the first part of this derivation but I am wondering why we take the unconditional variance of the e-term. This e is white noise, so it has an unconditional variance eq...
Can we have any sample size if one of the sample proportions is 0. I mean even the slightest difference detected between the two groups would be because of the treatment in this case, and hence I do not see any reason why the power analysis should be done. For example, in the calculator here, if I enter group1 sample p...
I have a feature categorical ordinal variable (i.e. consumer credit score), that I use to predict a target (i.e., apply for a mortage or not) I have two options: process it as categorical, or encode as integer. Process it as simple categorical variable reduces the predictive potential of the variable, as assumes same ...
I have a time series consisting of a mean, a cosine harmonic wave, and seasonal ARIMA errors, and the seasonality period of both is 7 days: $$ \begin{align} x_t &= \mu + h_t + u_t \\ h_t &= Amp\cdot \cos(\omega_s t - \varphi) \; \;\;\text{with}\;\; \omega_s = \frac{2\pi}{7}\\ u_t &= SARIMA(1,0,1)(1,0,0)[7] \end{align} ...
Assume we observe a $MA(1)$ process for which it is known that the mean is zero. Based on a series of length $3$ , we observe $Y_1 = 0, Y_2 = 1$ and $Y_3 = 0.5$. Find the least-squares estimate of $\theta$. We know that $$Y_t=\varepsilon_t+ \theta \varepsilon_{t-1}$$ so $$0=\varepsilon_1+ \theta \varepsilon_0 $$ $$1=\...
I've got 19 independent plant observations that consist of roughly 300 binary (dichotomous) genetic marker sightings at particular loci and 30 continuous concentrations of different types of flavonoids. My task is to map the genomic data with the flavonoid concentrations and learn the association between those two sets...
Why in Shrinkage, due to an overfitted prediction model, do we tend to overestimate risk for "high risk" subjects and to underestimate risk for "low risk" subjects ? Intuitively I would expect an error in both directions due to poor calibration for the model overfitted on data.
I am running pooled regression for 67 group my dependent variable is gini disposable and independent variable is women empowerment (economic,social,political) and institutional quality ( government stability,democratic accountability,law & order) When I run regression without interaction term women empowerment and inst...
Basically, the title of the question is all there is. quoting from bishop's pattern recognition and machine learning: In both the Bayesian and frequentist paradigms, the likelihood functions $p(D/w)$ plays a central role. However, the manner in which it is used is fundamentally different in the two approaches. In a fr...
I was training a simple NN with 1 hidden layer for binary classification for a simple dataset (XOR). Later, I found that the loss goes down, plateaus then goes down again. Same goes with accuracy, it goes up, plateaus, then goes up again. Here is the loss and accuracy: I experimented with different number of hidden la...
I have a dataset with: ID, years, $Y$ (dependent variable), treatment, a matching-group variable and a control variable $X$. I have created the matching-group variable using $X$, the idea is to compare only comparable treated and control individuals (the control group is individuals with a higher or just a bit smaller ...
I am trying to analyze the cost and risk implied by an insurance for occupational disability. I know that for people in their 30s the probability of attaining some degree of occupational disability is 42%. What I would like to know is, how to calculate the monthly probability of an event happening that causes me to be ...
I am writing with a question about understanding difference-in-differences estimates. I am using a DID approach for my Bachelor's thesis to measure the impact of TBTF reforms on SRISK of G-SIBs in the EU (the substance is not really important though, I need help with the technical part of my model), however, I have not...
The problem: It has been said that it is difficult to distinguish Coke and Pepsi by taste alone, without the visual cue of the bottle or can. In an experiment that I did in a class at Stanford, 10 cups were filled at random with either Coke or Pepsi. A student volunteer tasted each of the 10 cups and correctly named th...
Let's assume we have an ODE $\dot{x}=F(x)$ where $F: \mathbb{R}^n \rightarrow \mathbb{R}^n$ is a vector field. And we observe a trajectory $\gamma: [t_0,t_1] \rightarrow \mathbb{R}^n$ from this ODE but just a finite number of data points $\{x_0,x_1,...,x_N\}$. These data points might have some noise. My goal is to esti...
i'm doing a project with a non-stationary time series. i used BoxCox trasformation and differences to make it stationary selling_boxcox<-BoxCox(selling,lambda=2) selling_stationary<-diff(diff(selling_boxcox,lag=12,differences=1),differences=1) and i've made this ARIMA model: model<-arima(selling_stationary,order=c(1,1...
In SPSS, you can calculate means for cases that responded to a minimum number of questions. Some example SPSS syntax would be: COMPUTE variable_new = MEAN.4(x1, x2, x3, x4, x5, x6, x7). This generates a new variable (i.e., variable_new) only for cases that had a value present for 4 or more of the array x1 - x7. That's ...
I have a dataset of 10 columns and approx 4,5k rows, each row representing a sampling point. As sampling points share some common features, a categorical variable with 27 levels were created to address some random effects. The columns contain information related to the sex ratio at birth (SRB; number of sons/number of ...
I have mortality data for municipalities in my country and I would like to know if an approach such as modelling with a Linear Regression and if the assumptions like normality, equal variance and more specially, the spatial independence of residuals are not met, I should try a global model like Spatial Lag or Spatial E...
Say you have measured three conditions (x, y, and z) together and at three separate times (three replicates). These raw values are normally distributed and in a linear space. You use those three measurements to determine a mean value of x, y, and z and then express the fold change of y and z compared to x; otherwise kn...
I am following the paper https://axon.cs.byu.edu/Dan/678/miscellaneous/SVM.example.pdf and trying to solve the SVM on paper using mathematical equations. When I try to solve them, I get different set of w and b.. My doubt is : how do I know the w and b that I get from equation is optimal one? α1Φ(s1) · Φ(s1) + α2Φ(s2) ...
I'm a physics undergrad who started becoming curious about this question after exam season. After any exam, we're typically given the following parameters: Min, max, mean, median, std. deviation, and the total number of students who took the test. Clearly this isn't enough information to determine the distribution of...
It seems to be a common method in deep learning papers to measure the similarity of features coming from the backbone using cosine similarity. However, in my opinion, since in most cases, the features coming from the backbone are put into the fc (fully connected) layer and applied to various downstream tasks, measuring...
I'm not sure if this is a question for StackOverflow or CrossValidated, as the question relates both to coding and statistics. I have a panel data with information about sewage and water privatization in 82 municipalities between 1998 and 2020. For each year and municipality, I have the hospitalization per inhabitants ...
I got the answer as $\lambda^2e^{-\lambda t}s(t-s)$ using the properties like independent increment and stationary increments. But I can't seem to understand the steps in the solution of the book. For reference, the definition followed in the book is, let $\eta_1,\eta_2,\ldots$ be a sequence of independent random vari...
Consider the beta-binomial model (beta prior, binomial likelihood). So we have$$ \begin{align} P(\theta)&\sim \text{Beta}(\theta|\hat a,\hat b) \propto \theta^{\hat a-1}(1-\theta)^{\hat b-1}\\ P(Y|\theta) &\propto \theta^{N_1}(1-\theta)^{N_0} \end{align} $$ where $N_1, N_0$ are the usual empirical counts for the likeli...
I am trying to estimate the costs required for hosting a fine tuned large language model for real time inference. There will be 100s of users querying the endpoint concurrently for multiple use cases like classification or text generation. How to determine AWS EC2 instance type, memory requirements (both GPU and RAM) a...
Say we have a stochastic process from which we take finite samples to build up some sample probability distribution. As we include more time steps, the sample distribution converges to that of the "true" underlying distribution. I'm curious about the nature of this convergence, particularly how it scales with the total...
I have a report of a machine in which it is documented how many parts it has produced each day in the last year. From this I could calculate the mean with its standard deviation in [parts/day]. However, I need the mean and the standard deviation in [days/part], so mathematically "1/x". Normally, I would first convert a...
I'm modelling a process for which the probability of the event (stop) not happening before time $t$ is $e^{-\lambda\cdot t }|\lambda>0$. When the event happens, the process stops running for a constant time $\kappa > 0$. After this time has passed, the process restarts. For a time horizon, $\tau > 0$, using $N = \left\...