descriptive statistics – Change in mean, median, variance, and mode of a modified sample

Consider a set of N observations consisting of $ k distinct values, each frequency $ f_ {1}, f_ {2}, …, f_ {k} $. What precedes $ k observations once each is added to obtain a modified sample of $ N + k $ observations with frequency$ f_ {i} + $ 1.

What would be the change in mean, median, mode and variance?

I understand that the mode will remain the same. For the average, I visualized that the frequency curve of the modified sample would be shifted one point vertically. Can I say that the new average will be lower than or equal to the original average? and this median will be greater than or equal to the initial median. I've also taken some observations, 1,2,2,4,4 (originally) to check my claim. Am I right?

What is the best way to make such problems?

8 – In the code, create a revision only if a field is modified

I have a customizable reviewable entity with a few dozen fields. I'm importing data about the entity on a periodic basis. If the entity has changed, I would like to save it and create a new revision.

$ dogs =  Drupal :: entityTypeManager ()
-> getStorage (& # 39; my_entity & # 39;)
-> loadByProperties (['my_entity_id' => $my_entity_id])

$ dog = reset ($ dogs);

$ dog-> set (& # 39; name, $ record['TheName'])
$ dog-> set ($ birth_date, $ record['Dog Birth Date'])
// much more -> set is happening here.
$ dog-> set ('notes', $ record['Notes'])
if ($ dog-> someMagicComparisonFunction ()) {
$ dog-> setNewRevision (TRUE);
$ dog-> save ();

I looked for the someMagicComparisonFunction but did not find it. Does it exist?

Modified geographical target of my blog on the Google Search Console, how long will it take to see the results?

Changing the geographical targeting of my unlisted blog to my country about a month ago, but so far, I have seen no results, I have seen no effect of the change. How long will it take to see the effects of change?

The settings modified by CSS, JS and PHP only work after installing a caching plugin.


I have modified the CSS, JS and PHP files in our wordpress template. Interestingly, when I do not install a caching plug-in, it does not work, but when I install Autoptimize, all my changes work well.

What's causing this?

search – The modified Twitter user name. Still in Twitter searches

If my Twitter account was @johnsmith and I had to change it to @johndoe, I would expect that searches done in the Twitter search entry for the old user name now show no connection to the new name.

On the contrary, if I change the nickname, wait a few days, then look for the old name, I see the many responses of other users tweeted on the old, and some of them – but curiously not all – have the new name. added to them now (they show as tweeted both the old and the new name, despite being dated before the new name exists).

Why would it be? Can it be avoided?

lightbox – Can a Brightcove video player be modified by plug-ins so that the one-line link (and not the embedded code) opens a modal window?

The goal is that a link to a video player Brightcove opens in a modal window style "lightbox". Since Brightcove video players can accept .js and .css plug-ins as URLs to privately hosted files, this seems possible, but perhaps only when the code is used. Reader's page integration is used – you are not sure. Can any one confirm if this can work only with the 1 line link option and, if so, suggest an implementation path?

wp query – checks if a form has been modified after sending

I have a form, the user selects options and entries, and then clicks submit. after sending, the user will see the requested messages (depending on how he / she filled the form);
the problem is that when it goes to the next page, if the user changes the form and clicks submit, he / she will see the corresponding message, but on the same page as the last form.
if I could understand if the form is verified. everything was fine.
Thank you so much.

unit – The modified public variable in the script is not stored in the read mode

I have a public variable float x in script Foo.cs. I have a Bar.cs script with a function like this:

bar () {
Foo foo = FindObjectOfType();
foo.x = 1f;

And a custom editor who calls bar() when a button is pressed. All of this works well in the editor, my float x is changed to 1but when i enter play mode, the value changes itself. If I manually change it in the inspector, it also works. So for example:

  • I put X manually in the inspector for ten.
  • I'm entering game mode, X is still ten.
  • I leave the game mode and call the bar() a function.
  • X has changed to 1 in the inspector.
  • After clicking on "Play" X amounts to ten.

How can I fix this?

document library – Green Star next to the modified column in SharePoint O365 (not the new icon)

I have an apparent problem with a particular Word document in a SharePoint Online modern document library. This is not a new document (its version up to version 20 was created 3 days ago).

The user has had what seems to be problems with simultaneous editing. She is editing the document in Word (the client is not Word Online) and has received errors while backing up.

The only thing I can see at the bottom of its Word client is a prompt with the message "Pending Updates". And then we have a word that does not respond to a failure through the backup process.

This is a large Word document (47 MB) for a submission.

The only thing I can tell from my point of view is a green star next to the modified column of the library, which I had never seen before. The screen capture shows the star. These are not the "new" eyelashes, which normally appear next to the file name.

I suspect this might indicate contradictory changes (she is changing it in the client and may have left the word version online open too … just a guess)

Everyone has an idea of ​​what the green star shaped icon indicates … I can feel it trying to tell me something !!! Enjoy your help.

enter the description of the image here

android – How and where does Google Photos store original and modified photos?

The following items are also applicable to smart home or digital phones, tablets and cameras with: WiFi, sync and use of the Android operating system; all the way through, I'll use the word "phone" only.

On your phone, photos are stored in the / storage / emulated / 0 / DCIM / directory, this information is available by opening a photo, clicking on the menu and choosing "info". Some third-party "camera applications" use their own storage directory.

The edition, with Android Oreo and any recent version, is carried out using the "Edit" menu which allows you to choose an application to edit your photo. Each application stores the results of editing, but some can overwrite the original. save the edited versions in their own directories.

If you enable synchronization on your device, the contents of your phone can be stored in a memory provided by the manufacturer of your phone, by a 3rd party (or 4th?) Or most often on the authors' servers. Android at Google.

Go to to view the photos Google has stored for you from each device. Click on the menu at the top left and go to Settings.

Google Photos Settings

Choose "Original" and, on each device, configure "Save and Synchronize" correctly.

In the upper right corner, you can use this menu to create a new album. You can create an album called "Edited" and copy an original photo. edit this photo and not the original.

Whatever you do on this website (and on any device on which Sync is enabled and with an internet connection) will affects everything everywhere. There is only one copy on all your devices. So make a backup of your synced photos (do not think that synchronized photos are a "backup", think of them as your only copy).

You can name your originals "photo_org". Unmodified copies ("photo_copy_1") and modified versions of the copy ("photo_edited_1"). You only have one copy of each photo / video after syncing each device.